288870ebc3
bionic now assumes the TLS register is available, so OpenGL can too. Change-Id: If2b56a4c08de9f887759b78f70022026a181dc47
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
#
|
|
# Build the software OpenGL ES library
|
|
#
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
egl.cpp \
|
|
state.cpp \
|
|
texture.cpp \
|
|
Tokenizer.cpp \
|
|
TokenManager.cpp \
|
|
TextureObjectManager.cpp \
|
|
BufferObjectManager.cpp \
|
|
array.cpp.arm \
|
|
fp.cpp.arm \
|
|
light.cpp.arm \
|
|
matrix.cpp.arm \
|
|
mipmap.cpp.arm \
|
|
primitives.cpp.arm \
|
|
vertex.cpp.arm
|
|
|
|
LOCAL_CFLAGS += -DLOG_TAG=\"libagl\"
|
|
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
|
|
LOCAL_CFLAGS += -fvisibility=hidden
|
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils libhardware libutils libpixelflinger libETC1 libui
|
|
LOCAL_LDLIBS := -lpthread -ldl
|
|
|
|
ifeq ($(TARGET_ARCH),arm)
|
|
LOCAL_SRC_FILES += fixed_asm.S iterators.S
|
|
LOCAL_CFLAGS += -fstrict-aliasing
|
|
endif
|
|
|
|
# we need to access the private Bionic header <bionic_tls.h>
|
|
LOCAL_C_INCLUDES += bionic/libc/private
|
|
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl
|
|
LOCAL_MODULE:= libGLES_android
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|