Subversion Repositories eduke32

Rev

Rev 4440 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4386 terminx 1
# Copyright (C) 2009 The Android Open Source Project
2
#
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
# you may not use this file except in compliance with the License.
5
# You may obtain a copy of the License at
6
#
7
#      http://www.apache.crg/licenses/LICENSE-2.0
8
#
9
# Unless required by applicable law or agreed to in writing, software
10
# distributed under the License is distributed on an "AS IS" BASIS,
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
#
15
LOCAL_PATH := $(call my-dir)
16
 
17
 
18
 
19
include $(CLEAR_VARS)
20
 
21
 
22
LOCAL_MODULE    := duke
23
 
4440 terminx 24
# -O2  -fvisibility=hidden
4386 terminx 25
 
4693 terminx 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    -pthread -DHAVE_INTTYPES  -D_GNU_SOURCE=1 -D_REENTRANT -DRENDERTYPESDL=1 -Wno-strict-overflow -DUSE_OPENGL  -Wno-attributes
4386 terminx 27
 
4693 terminx 28
#-DUSE_LIBPNG
4386 terminx 29
 
4693 terminx 30
LOCAL_CFLAGS += -DHAVE_SDL -DHAVE_VORBIS -DDROIDMENU
31
 
32
#LOCAL_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1
33
 
34
LOCAL_ARM_NEON = true
35
 
4386 terminx 36
LOCAL_LDLIBS += -lGLESv1_CM -lEGL
37
 
38
LOCAL_LDLIBS += -llog
39
 
4440 terminx 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
4386 terminx 41
 
4693 terminx 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
4440 terminx 43
 
4386 terminx 44
ANDROID_SRC = \
45
	source/android/android-jni.cpp \
46
	source/android/in_android.c
47
 
48
BUILD_SRC = \
49
	build/src/a-c.c \
50
	build/src/baselayer.c \
51
	build/src/cache1d.c \
52
	build/src/compat.c \
53
	build/src/crc32.c \
54
	build/src/defs.c \
55
	build/src/engine.c \
56
	build/src/polymost.c \
57
	build/src/texcache.c \
58
	build/src/dxtfilter.c \
59
	build/src/hightile.c \
60
	build/src/textfont.c \
61
	build/src/smalltextfont.c \
62
	build/src/kplib.c \
63
	build/src/lz4.c \
64
	build/src/osd.c \
65
	build/src/pragmas.c \
66
	build/src/scriptfile.c \
4387 terminx 67
	build/src/mutex.c \
4693 terminx 68
    build/src/xxhash.c \
69
    build/src/mmulti_null.c \
70
    build/src/voxmodel.c \
71
    build/src/common.c \
72
 
4386 terminx 73
 
74
GL_SRC = \
75
 	build/src/mdsprite.c \
76
 	build/src/glbuild_android.c \
77
 
78
SDL_SRC = \
79
	build/src/sdlayer.c \
80
 
81
JMACT_SRC=source/jmact/file_lib.c \
82
	source/jmact//control.c \
83
	source/jmact//keyboard.c \
84
	source/jmact//mouse.c \
85
	source/jmact//joystick.c \
86
	source/jmact//mathutil.c \
87
	source/jmact//scriplib.c \
88
	source/jmact//animlib.c
89
 
90
GAME_SRC=source/game.c \
91
	source/actors.c \
92
	source/anim.c \
93
	source/common.c \
94
	source/config.c \
95
	source/demo.c \
96
	source/gamedef.c \
97
	source/gameexec.c \
98
	source/gamevars.c \
99
	source/global.c \
100
	source/input.c \
101
	source/menus.c \
102
	source/namesdyn.c \
103
	source/net.c \
104
	source/player.c \
105
	source/premap.c \
106
	source/savegame.c \
107
	source/sector.c \
108
	source/rts.c \
109
	source/osdfuncs.c \
110
	source/osdcmds.c \
111
	source/grpscan.c \
112
	source/sounds.c \
113
	source/soundsdyn.c \
114
  	source/sdlmusic.c \
4693 terminx 115
  	source/rev.c
4386 terminx 116
 
117
 JAUDIO_SRC=source/jaudiolib/src/drivers.c \
118
	source/jaudiolib/src//fx_man.c \
119
	source/jaudiolib/src//multivoc.c \
120
	source/jaudiolib/src//mix.c \
121
	source/jaudiolib/src//mixst.c \
122
	source/jaudiolib/src//pitch.c \
123
	source/jaudiolib/src//formats.c \
124
	source/jaudiolib/src//vorbis.c \
125
	source/jaudiolib/src//flac.c \
126
	source/jaudiolib/src//xa.c \
127
	source/jaudiolib/src//driver_nosound.c \
128
	source/jaudiolib/src//driver_sdl.c
129
 
130
 
131
 ENET_SRC=source/enet/src/callbacks.c \
132
	source/enet/src/host.c \
133
	source/enet/src/list.c \
134
	source/enet/src/packet.c \
135
	source/enet/src/peer.c \
136
	source/enet/src/protocol.c \
137
	source/enet/src/compress.c \
138
    source/enet/src/unix.c
139
 
140
LOCAL_SRC_FILES = $(ANDROID_SRC) $(ENET_SRC) $(JAUDIO_SRC) $(JMACT_SRC) $(GAME_SRC) $(BUILD_SRC)  $(GL_SRC) $(SDL_SRC)
141
 
142
 
4693 terminx 143
LOCAL_LDLIBS :=  -lGLESv1_CM -lEGL -ldl -llog -lOpenSLES -lz -L$(TOP_DIR)/openssl/libs/ -lcrypto
4386 terminx 144
LOCAL_STATIC_LIBRARIES :=  nanogl  SDL2_net libjpeg libpng
4693 terminx 145
LOCAL_SHARED_LIBRARIES := touchcontrols openal ogg vorbis SDL2 SDL2_mixer SDL2_image
4386 terminx 146
 
4440 terminx 147
ifeq ($(GP_LIC),1)
148
LOCAL_STATIC_LIBRARIES +=  s-setup
149
LOCAL_CFLAGS += -DGP_LIC
150
endif
151
 
4386 terminx 152
include $(BUILD_SHARED_LIBRARY)
153