Subversion Repositories eduke32

Rev

Rev 4746 | Rev 5000 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4746 Rev 4989
Line 12... Line 12...
12
# See the License for the specific language governing permissions and
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
13
# limitations under the License.
14
#
14
#
15
LOCAL_PATH := $(call my-dir)
15
LOCAL_PATH := $(call my-dir)
16
16
17
-
 
18
-
 
19
include $(CLEAR_VARS)
17
include $(CLEAR_VARS)
20
18
21
-
 
22
LOCAL_MODULE    := duke
19
LOCAL_MODULE    := duke
23
20
24
# -O2  -fvisibility=hidden
21
# -O2  -fvisibility=hidden
25
22
-
 
23
LOCAL_CFLAGS :=   -x c++ -std=gnu++03 -fvisibility=hidden -fPIC -O2 -funswitch-loops -fomit-frame-pointer -DNDEBUG -DUSING_LTO -flto -fno-stack-protector   -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=0 -fjump-tables -pthread -DHAVE_INTTYPES  -D_GNU_SOURCE=1 -D_REENTRANT
26
LOCAL_CFLAGS :=  -fvisibility=hidden -fPIC -Wimplicit -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 -D_FORTIFY_SOURCE=0 -fjump-tables -Wno-unused-result  -Wno-char-subscripts    -pthread -DHAVE_INTTYPES  -D_GNU_SOURCE=1 -D_REENTRANT -DRENDERTYPESDL=1 -Wno-strict-overflow -DUSE_OPENGL  -Wno-attributes
24
LOCAL_CFLAGS += -W  -Werror-implicit-function-declaration -Wpointer-arith -Wextra  -Wno-unused-result  -Wno-char-subscripts -Wno-strict-overflow -Wno-attributes -Wno-write-strings
-
 
25
LOCAL_CPPFLAGS := -std=gnu++03
27
26
28
#-DUSE_LIBPNG
27
#-DUSE_LIBPNG
29
28
30
LOCAL_CFLAGS += -DHAVE_SDL -DHAVE_VORBIS -DDROIDMENU
29
LOCAL_CFLAGS += -DHAVE_SDL -DHAVE_VORBIS -DHAVE_JWZGLES -DHAVE_ANDROID -DRENDERTYPESDL=1  -DUSE_OPENGL -DNETCODE_DISABLE
31
30
32
#LOCAL_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1
31
#LOCAL_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1
33
32
-
 
33
LOCAL_LDFLAGS := -fuse-ld=bfd
34
LOCAL_ARM_NEON = true
34
LOCAL_ARM_NEON = true
35
35
36
LOCAL_LDLIBS += -lGLESv1_CM -lEGL
-
 
37
-
 
38
LOCAL_LDLIBS += -llog
-
 
39
-
 
40
LOCAL_C_INCLUDES :=  $(LOCAL_PATH)/source $(LOCAL_PATH)/source/jmact $(LOCAL_PATH)/source/jaudiolib/include $(LOCAL_PATH)/source/enet/include  $(LOCAL_PATH)/build/include
36
LOCAL_C_INCLUDES :=  $(LOCAL_PATH)/source $(LOCAL_PATH)/source/jmact $(LOCAL_PATH)/source/jaudiolib/include $(LOCAL_PATH)/source/enet/include  $(LOCAL_PATH)/build/include
41
-
 
42
LOCAL_C_INCLUDES +=    $(TOP_DIR)/ $(TOP_DIR)/Libraries/liboggvorbis/include $(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 
37
LOCAL_C_INCLUDES +=    $(TOP_DIR)/ $(TOP_DIR)/Libraries/liboggvorbis/include $(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
43
38
44
ANDROID_SRC = \
39
ANDROID_SRC = \
45
	source/android/android-jni.cpp \
40
	source/android/android-jni.cpp \
46
	source/android/in_android.c
41
	source/android/in_android.c \
-
 
42
        build/src/glbuild_android.c \
-
 
43
        build/src/jwzgles.c
47
44
48
BUILD_SRC = \
45
BUILD_SRC = \
49
	build/src/a-c.c \
46
	build/src/a-c.c \
50
	build/src/baselayer.c \
47
	build/src/baselayer.c \
51
	build/src/cache1d.c \
48
	build/src/cache1d.c \
52
	build/src/compat.c \
49
	build/src/compat.c \
53
	build/src/crc32.c \
50
	build/src/crc32.c \
54
	build/src/defs.c \
51
	build/src/defs.c \
55
	build/src/engine.c \
52
	build/src/engine.c \
56
	build/src/polymost.c \
53
	build/src/polymost.c \
-
 
54
        build/src/mdsprite.c \
57
	build/src/texcache.c \
55
	build/src/texcache.c \
58
	build/src/dxtfilter.c \
56
	build/src/dxtfilter.c \
59
	build/src/hightile.c \
57
	build/src/hightile.c \
60
	build/src/textfont.c \
58
	build/src/textfont.c \
61
	build/src/smalltextfont.c \
59
	build/src/smalltextfont.c \
62
	build/src/kplib.c \
60
	build/src/kplib.c \
63
	build/src/lz4.c \
61
	build/src/lz4.c \
64
	build/src/osd.c \
62
	build/src/osd.c \
-
 
63
	build/src/md4.c \
65
	build/src/pragmas.c \
64
	build/src/pragmas.c \
66
	build/src/scriptfile.c \
65
	build/src/scriptfile.c \
67
	build/src/mutex.c \
66
	build/src/mutex.c \
68
    build/src/xxhash.c \
67
        build/src/xxhash.c \
69
    build/src/mmulti_null.c \
68
        build/src/mmulti_null.c \
70
    build/src/voxmodel.c \
69
        build/src/voxmodel.c \
71
    build/src/common.c \
70
        build/src/common.c \
72
    
-
 
73
-
 
74
GL_SRC = \
-
 
75
 	build/src/mdsprite.c \
-
 
76
 	build/src/glbuild_android.c \
-
 
77
-
 
78
SDL_SRC = \
-
 
79
	build/src/sdlayer.c \
71
        build/src/sdlayer.c
80
72
81
JMACT_SRC=source/jmact/file_lib.c \
73
JMACT_SRC=source/jmact/file_lib.c \
82
	source/jmact//control.c \
74
	source/jmact//control.c \
83
	source/jmact//keyboard.c \
75
	source/jmact//keyboard.c \
84
	source/jmact//mouse.c \
76
	source/jmact//mouse.c \
Line 88... Line 80...
88
	source/jmact//animlib.c
80
	source/jmact//animlib.c
89
81
90
GAME_SRC=source/game.c \
82
GAME_SRC=source/game.c \
91
	source/actors.c \
83
	source/actors.c \
92
	source/anim.c \
84
	source/anim.c \
-
 
85
	source/animsounds.c \
93
	source/common.c \
86
	source/common.c \
94
	source/config.c \
87
	source/config.c \
95
	source/demo.c \
88
	source/demo.c \
96
	source/gamedef.c \
89
	source/gamedef.c \
97
	source/gameexec.c \
90
	source/gameexec.c \
Line 135... Line 128...
135
	source/enet/src/peer.c \
128
	source/enet/src/peer.c \
136
	source/enet/src/protocol.c \
129
	source/enet/src/protocol.c \
137
	source/enet/src/compress.c \
130
	source/enet/src/compress.c \
138
    source/enet/src/unix.c
131
    source/enet/src/unix.c
139
 
132
 
140
LOCAL_SRC_FILES = $(ANDROID_SRC) $(ENET_SRC) $(JAUDIO_SRC) $(JMACT_SRC) $(GAME_SRC) $(BUILD_SRC)  $(GL_SRC) $(SDL_SRC)  
133
LOCAL_SRC_FILES = $(ANDROID_SRC) $(JAUDIO_SRC) $(JMACT_SRC) $(GAME_SRC) $(BUILD_SRC)  
141
-
 
142
134
143
LOCAL_LDLIBS :=  -lGLESv1_CM -lEGL -ldl -llog -lOpenSLES -lz -L$(TOP_DIR)/openssl/libs/ -lcrypto
135
LOCAL_LDLIBS :=  -lGLESv1_CM -lEGL -ldl -llog -lOpenSLES -lz -L$(TOP_DIR)/openssl/libs/ 
144
LOCAL_STATIC_LIBRARIES :=  nanogl  SDL2_net libjpeg libpng
136
LOCAL_STATIC_LIBRARIES :=   libpng crypto  
145
LOCAL_SHARED_LIBRARIES := touchcontrols openal ogg vorbis SDL2 SDL2_mixer SDL2_image
137
LOCAL_SHARED_LIBRARIES := touchcontrols ogg vorbis SDL2 SDL2_mixer 
-
 
138
# SDL2_image
146
139
147
ifeq ($(GP_LIC),1)
140
ifeq ($(GP_LIC),1)
148
LOCAL_STATIC_LIBRARIES +=  s-setup
141
LOCAL_STATIC_LIBRARIES +=  s-setup
149
LOCAL_CFLAGS += -DGP_LIC
142
LOCAL_CFLAGS += -DGP_LIC
150
endif
143
endif