blob: 564932f5cbf35c0430c747fc8aa94481e033dfd0 [file] [log] [blame]
David Liaa1f54d2011-03-01 16:54:04 -08001LOCAL_PATH:= $(call my-dir)
2
3#
4# Build the software OpenGL ES library
5#
6
7include $(CLEAR_VARS)
8
9LOCAL_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
18LOCAL_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
29LOCAL_CFLAGS += -O3
30LOCAL_STATIC_LIBRARIES := libMesa
31LOCAL_SHARED_LIBRARIES := libstlport libcutils libhardware libutils libbcc libdl
32LOCAL_LDLIBS := -lpthread
33
34ifeq ($(TARGET_ARCH),arm)
35 LOCAL_CFLAGS += -fstrict-aliasing
36endif
37
38ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true)
39 LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
40endif
41
42ifneq ($(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
50endif
51
52LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl
53#replace libagl for now
54LOCAL_MODULE:= libGLES_android
55LOCAL_MODULE_TAGS := eng
56
57## Disable this makefile for now
58## include $(BUILD_SHARED_LIBRARY)