Subversion Repositories eduke32

Rev

Rev 4387 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4387 Rev 4440
Line 19... Line 19...
19
include $(CLEAR_VARS)
19
include $(CLEAR_VARS)
20
20
21
21
22
LOCAL_MODULE    := duke
22
LOCAL_MODULE    := duke
23
23
-
 
24
# -O2  -fvisibility=hidden
24
25
25
LOCAL_CFLAGS := -fPIC -Wimplicit -Wdeclaration-after-statement -O2 -funswitch-loops -fomit-frame-pointer -DNDEBUG -DUSING_LTO -flto -fno-stack-protector   -W  -Werror-implicit-function-declaration -Wpointer-arith -Wextra  -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 -fjump-tables -Wno-unused-result  -Wno-char-subscripts -DUSE_LIBPNG   -pthread -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1    -DHAVE_INTTYPES  -D_GNU_SOURCE=1 -D_REENTRANT -DRENDERTYPESDL=1 -Wno-strict-overflow -DUSE_OPENGL  -Wno-attributes
26
LOCAL_CFLAGS :=  -fvisibility=hidden -fPIC -Wimplicit -Wdeclaration-after-statement -O2 -funswitch-loops -fomit-frame-pointer -DNDEBUG -DUSING_LTO -flto -fno-stack-protector   -W  -Werror-implicit-function-declaration -Wpointer-arith -Wextra  -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 -fjump-tables -Wno-unused-result  -Wno-char-subscripts -DUSE_LIBPNG   -pthread -DHAVE_INTTYPES  -D_GNU_SOURCE=1 -D_REENTRANT -DRENDERTYPESDL=1 -Wno-strict-overflow -DUSE_OPENGL  -Wno-attributes
26
27
27
#Needed my jaudiolib
28
#Needed my jaudiolib
28
LOCAL_CFLAGS += -DHAVE_SDL
29
LOCAL_CFLAGS += -DHAVE_SDL
29
30
30
LOCAL_LDLIBS += -lGLESv1_CM -lEGL
31
LOCAL_LDLIBS += -lGLESv1_CM -lEGL
Line 33... Line 34...
33
34
34
LOCAL_CFLAGS += -march=armv7-a -mfloat-abi=softfp
35
LOCAL_CFLAGS += -march=armv7-a -mfloat-abi=softfp
35
LOCAL_LDLIBS += -Wl,--fix-cortex-a8
36
LOCAL_LDLIBS += -Wl,--fix-cortex-a8
36
37
37
38
38
LOCAL_C_INCLUDES :=  $(LOCAL_PATH)/source $(LOCAL_PATH)/source/jmact $(LOCAL_PATH)/source/jaudiolib/include $(LOCAL_PATH)/source/enet/include  $(LOCAL_PATH)/build/include $(TOP_DIR)/SDL2/include  $(TOP_DIR)/SDL2_mixer $(IDTECH_DIR)/libpng   $(IDTECH_DIR)/TinyXML $(IDTECH_DIR)/TouchControls $(IDTECH_DIR)/ 
39
LOCAL_C_INCLUDES :=  $(LOCAL_PATH)/source $(LOCAL_PATH)/source/jmact $(LOCAL_PATH)/source/jaudiolib/include $(LOCAL_PATH)/source/enet/include  $(LOCAL_PATH)/build/include
-
 
40
-
 
41
LOCAL_C_INCLUDES +=    $(TOP_DIR)/  $(TOP_DIR)/Libraries/ $(TOP_DIR)/Libraries/SDL2/include  $(TOP_DIR)/Libraries/SDL2_mixer/include $(TOP_DIR)/Libraries/libpng/include   $(TOP_DIR)/Libraries/TinyXML/include $(TOP_DIR)/TouchControls 
39
42
40
ANDROID_SRC = \
43
ANDROID_SRC = \
41
	source/android/android-jni.cpp \
44
	source/android/android-jni.cpp \
42
	source/android/in_android.c
45
	source/android/in_android.c
43
46
Line 133... Line 136...
133
136
134
LOCAL_LDLIBS := -lGLESv1_CM -ldl -llog -lOpenSLES -lz
137
LOCAL_LDLIBS := -lGLESv1_CM -ldl -llog -lOpenSLES -lz
135
LOCAL_STATIC_LIBRARIES :=  nanogl  SDL2_net libjpeg libpng
138
LOCAL_STATIC_LIBRARIES :=  nanogl  SDL2_net libjpeg libpng
136
LOCAL_SHARED_LIBRARIES := touchcontrols openal SDL2 SDL2_mixer SDL2_image
139
LOCAL_SHARED_LIBRARIES := touchcontrols openal SDL2 SDL2_mixer SDL2_image
137
140
-
 
141
ifeq ($(GP_LIC),1)
-
 
142
LOCAL_STATIC_LIBRARIES +=  s-setup
-
 
143
LOCAL_CFLAGS += -DGP_LIC
-
 
144
endif
-
 
145
138
include $(BUILD_SHARED_LIBRARY)
146
include $(BUILD_SHARED_LIBRARY)
139
147
140
148
141
149
142
150