blob: 943d59d07f506368182eaaf2b150f35be81af899 [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 \
David Lic6158162011-03-21 10:02:30 -070019 external \
David Li2f5a6552011-03-01 16:08:10 -080020 bionic
21
David Li2f5a6552011-03-01 16:08:10 -080022#LOCAL_CFLAGS += -O0 -g -DDEBUG -UNDEBUG
23LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI
24
25ifeq ($(TARGET_ARCH),arm)
26 LOCAL_CFLAGS += -fstrict-aliasing
27endif
28
29ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true)
30 LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
31endif
32
33ifneq ($(TARGET_SIMULATOR),true)
34 # we need to access the private Bionic header <bionic_tls.h>
35 # on ARM platforms, we need to mirror the ARCH_ARM_HAVE_TLS_REGISTER
36 # behavior from the bionic Android.mk file
37 ifeq ($(TARGET_ARCH)-$(ARCH_ARM_HAVE_TLS_REGISTER),arm-true)
38 LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
39 endif
40 LOCAL_C_INCLUDES += bionic/libc/private
41endif
42
43LOCAL_MODULE:= libGLESv2_dbg
44LOCAL_MODULE_TAGS := optional
45
46include $(BUILD_STATIC_LIBRARY)