blob: e593c32707a3d2574607fd7535cf54b2a7ef78c7 [file] [log] [blame]
David Li2f5a6552011-03-01 16:08:10 -08001LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES := \
David Li2f5a6552011-03-01 16:08:10 -08006 src/api.cpp \
David Li65948aa2011-03-10 16:40:37 -08007 src/dbgcontext.cpp \
David Lib33d5cf2011-03-04 17:50:48 -08008 src/debugger_message.pb.cpp \
9 src/egl.cpp \
David Li2f5a6552011-03-01 16:08:10 -080010 src/server.cpp \
David Lib33d5cf2011-03-04 17:50:48 -080011 src/texture.cpp \
12 src/vertex.cpp
David Li2f5a6552011-03-01 16:08:10 -080013
14LOCAL_C_INCLUDES := \
15 $(LOCAL_PATH) \
16 $(LOCAL_PATH)/../ \
17 external/stlport/stlport \
18 external/protobuf/src \
19 bionic
20
David Li2f5a6552011-03-01 16:08:10 -080021#LOCAL_CFLAGS += -O0 -g -DDEBUG -UNDEBUG
22LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI
23
24ifeq ($(TARGET_ARCH),arm)
25 LOCAL_CFLAGS += -fstrict-aliasing
26endif
27
28ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true)
29 LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
30endif
31
32ifneq ($(TARGET_SIMULATOR),true)
33 # we need to access the private Bionic header <bionic_tls.h>
34 # on ARM platforms, we need to mirror the ARCH_ARM_HAVE_TLS_REGISTER
35 # behavior from the bionic Android.mk file
36 ifeq ($(TARGET_ARCH)-$(ARCH_ARM_HAVE_TLS_REGISTER),arm-true)
37 LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
38 endif
39 LOCAL_C_INCLUDES += bionic/libc/private
40endif
41
42LOCAL_MODULE:= libGLESv2_dbg
43LOCAL_MODULE_TAGS := optional
44
45include $(BUILD_STATIC_LIBRARY)