Android.mk revision 8a0cb4ee0b6c351de82987efb472fa38dfaf608a
1LOCAL_PATH:= $(call my-dir)
2
3#
4# Build the software OpenGL ES library
5#
6
7include $(CLEAR_VARS)
8
9LOCAL_SRC_FILES:= \
10	egl.cpp                     \
11	state.cpp		            \
12	texture.cpp		            \
13    Tokenizer.cpp               \
14    TokenManager.cpp            \
15    TextureObjectManager.cpp    \
16    BufferObjectManager.cpp     \
17	array.cpp.arm		        \
18	fp.cpp.arm		            \
19	light.cpp.arm		        \
20	matrix.cpp.arm		        \
21	mipmap.cpp.arm		        \
22	primitives.cpp.arm	        \
23	vertex.cpp.arm
24
25LOCAL_CFLAGS += -DLOG_TAG=\"libagl\"
26LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
27LOCAL_CFLAGS += -fvisibility=hidden
28
29LOCAL_SHARED_LIBRARIES := libcutils libhardware libutils liblog libpixelflinger libETC1 libui
30LOCAL_LDLIBS := -lpthread -ldl
31
32ifeq ($(TARGET_ARCH),arm)
33	LOCAL_SRC_FILES += fixed_asm.S iterators.S
34	LOCAL_CFLAGS += -fstrict-aliasing
35endif
36
37ifeq ($(TARGET_ARCH),mips)
38    LOCAL_SRC_FILES += arch-$(TARGET_ARCH)/fixed_asm.S
39    LOCAL_CFLAGS += -fstrict-aliasing
40    # The graphics code can generate division by zero
41    LOCAL_CFLAGS += -mno-check-zero-division
42endif
43
44# we need to access the private Bionic header <bionic_tls.h>
45LOCAL_C_INCLUDES += bionic/libc/private
46
47LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl
48LOCAL_MODULE:= libGLES_android
49
50include $(BUILD_SHARED_LIBRARY)
51