David Li | aa1f54d | 2011-03-01 16:54:04 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | # |
| 4 | # Build the software OpenGL ES library |
| 5 | # |
| 6 | |
| 7 | include $(CLEAR_VARS) |
| 8 | |
| 9 | LOCAL_SRC_FILES:= \ |
| 10 | src/api.cpp \ |
| 11 | src/egl.cpp \ |
| 12 | src/get.cpp \ |
| 13 | src/shader.cpp \ |
| 14 | src/state.cpp \ |
| 15 | src/texture.cpp \ |
| 16 | src/vertex.cpp |
| 17 | |
| 18 | LOCAL_C_INCLUDES := \ |
| 19 | $(LOCAL_PATH) \ |
| 20 | external/mesa3d/include \ |
| 21 | external/mesa3d/src \ |
| 22 | external/stlport/stlport \ |
| 23 | bionic |
| 24 | |
| 25 | #LOCAL_CFLAGS += -DLOG_TAG=\"libagl2\" |
| 26 | #LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
| 27 | #LOCAL_CFLAGS += -fvisibility=hidden |
| 28 | #LOCAL_CFLAGS += -O0 -g -DDEBUG -UNDEBUG |
| 29 | LOCAL_CFLAGS += -O3 |
| 30 | LOCAL_STATIC_LIBRARIES := libMesa |
| 31 | LOCAL_SHARED_LIBRARIES := libstlport libcutils libhardware libutils libbcc libdl |
| 32 | LOCAL_LDLIBS := -lpthread |
| 33 | |
| 34 | ifeq ($(TARGET_ARCH),arm) |
| 35 | LOCAL_CFLAGS += -fstrict-aliasing |
| 36 | endif |
| 37 | |
| 38 | ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true) |
| 39 | LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER |
| 40 | endif |
| 41 | |
| 42 | ifneq ($(TARGET_SIMULATOR),true) |
| 43 | # we need to access the private Bionic header <bionic_tls.h> |
| 44 | # on ARM platforms, we need to mirror the ARCH_ARM_HAVE_TLS_REGISTER |
| 45 | # behavior from the bionic Android.mk file |
| 46 | ifeq ($(TARGET_ARCH)-$(ARCH_ARM_HAVE_TLS_REGISTER),arm-true) |
| 47 | LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER |
| 48 | endif |
| 49 | LOCAL_C_INCLUDES += bionic/libc/private |
| 50 | endif |
| 51 | |
| 52 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl |
| 53 | #replace libagl for now |
| 54 | LOCAL_MODULE:= libGLES_android |
| 55 | LOCAL_MODULE_TAGS := eng |
| 56 | |
| 57 | ## Disable this makefile for now |
| 58 | ## include $(BUILD_SHARED_LIBRARY) |