Subversion Repositories eduke32

Rev

Rev 4746 | Rev 5000 | Go to most recent revision | 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
include $(CLEAR_VARS)
18
 
19
LOCAL_MODULE    := duke
20
 
4440 terminx 21
# -O2  -fvisibility=hidden
4386 terminx 22
 
4989 terminx 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
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
4386 terminx 26
 
4693 terminx 27
#-DUSE_LIBPNG
4386 terminx 28
 
4989 terminx 29
LOCAL_CFLAGS += -DHAVE_SDL -DHAVE_VORBIS -DHAVE_JWZGLES -DHAVE_ANDROID -DRENDERTYPESDL=1  -DUSE_OPENGL -DNETCODE_DISABLE
4693 terminx 30
 
31
#LOCAL_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1
32
 
4989 terminx 33
LOCAL_LDFLAGS := -fuse-ld=bfd
4693 terminx 34
LOCAL_ARM_NEON = true
35
 
4440 terminx 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
4989 terminx 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
4386 terminx 38
 
39
ANDROID_SRC = \
40
	source/android/android-jni.cpp \
4989 terminx 41
	source/android/in_android.c \
42
        build/src/glbuild_android.c \
43
        build/src/jwzgles.c
4386 terminx 44
 
45
BUILD_SRC = \
46
	build/src/a-c.c \
47
	build/src/baselayer.c \
48
	build/src/cache1d.c \
49
	build/src/compat.c \
50
	build/src/crc32.c \
51
	build/src/defs.c \
52
	build/src/engine.c \
53
	build/src/polymost.c \
4989 terminx 54
        build/src/mdsprite.c \
4386 terminx 55
	build/src/texcache.c \
56
	build/src/dxtfilter.c \
57
	build/src/hightile.c \
58
	build/src/textfont.c \
59
	build/src/smalltextfont.c \
60
	build/src/kplib.c \
61
	build/src/lz4.c \
62
	build/src/osd.c \
4989 terminx 63
	build/src/md4.c \
4386 terminx 64
	build/src/pragmas.c \
65
	build/src/scriptfile.c \
4387 terminx 66
	build/src/mutex.c \
4989 terminx 67
        build/src/xxhash.c \
68
        build/src/mmulti_null.c \
69
        build/src/voxmodel.c \
70
        build/src/common.c \
71
        build/src/sdlayer.c
4386 terminx 72
 
73
JMACT_SRC=source/jmact/file_lib.c \
74
	source/jmact//control.c \
75
	source/jmact//keyboard.c \
76
	source/jmact//mouse.c \
77
	source/jmact//joystick.c \
78
	source/jmact//mathutil.c \
79
	source/jmact//scriplib.c \
80
	source/jmact//animlib.c
81
 
82
GAME_SRC=source/game.c \
83
	source/actors.c \
84
	source/anim.c \
4989 terminx 85
	source/animsounds.c \
4386 terminx 86
	source/common.c \
87
	source/config.c \
88
	source/demo.c \
89
	source/gamedef.c \
90
	source/gameexec.c \
91
	source/gamevars.c \
92
	source/global.c \
93
	source/input.c \
94
	source/menus.c \
95
	source/namesdyn.c \
96
	source/net.c \
97
	source/player.c \
98
	source/premap.c \
99
	source/savegame.c \
100
	source/sector.c \
101
	source/rts.c \
102
	source/osdfuncs.c \
103
	source/osdcmds.c \
104
	source/grpscan.c \
105
	source/sounds.c \
106
	source/soundsdyn.c \
107
  	source/sdlmusic.c \
4693 terminx 108
  	source/rev.c
4386 terminx 109
 
110
 JAUDIO_SRC=source/jaudiolib/src/drivers.c \
111
	source/jaudiolib/src//fx_man.c \
112
	source/jaudiolib/src//multivoc.c \
113
	source/jaudiolib/src//mix.c \
114
	source/jaudiolib/src//mixst.c \
115
	source/jaudiolib/src//pitch.c \
116
	source/jaudiolib/src//formats.c \
117
	source/jaudiolib/src//vorbis.c \
118
	source/jaudiolib/src//flac.c \
119
	source/jaudiolib/src//xa.c \
120
	source/jaudiolib/src//driver_nosound.c \
121
	source/jaudiolib/src//driver_sdl.c
122
 
123
 
124
 ENET_SRC=source/enet/src/callbacks.c \
125
	source/enet/src/host.c \
126
	source/enet/src/list.c \
127
	source/enet/src/packet.c \
128
	source/enet/src/peer.c \
129
	source/enet/src/protocol.c \
130
	source/enet/src/compress.c \
131
    source/enet/src/unix.c
132
 
4989 terminx 133
LOCAL_SRC_FILES = $(ANDROID_SRC) $(JAUDIO_SRC) $(JMACT_SRC) $(GAME_SRC) $(BUILD_SRC)
4386 terminx 134
 
4989 terminx 135
LOCAL_LDLIBS :=  -lGLESv1_CM -lEGL -ldl -llog -lOpenSLES -lz -L$(TOP_DIR)/openssl/libs/
136
LOCAL_STATIC_LIBRARIES :=   libpng crypto
137
LOCAL_SHARED_LIBRARIES := touchcontrols ogg vorbis SDL2 SDL2_mixer
138
# SDL2_image
4386 terminx 139
 
4440 terminx 140
ifeq ($(GP_LIC),1)
141
LOCAL_STATIC_LIBRARIES +=  s-setup
142
LOCAL_CFLAGS += -DGP_LIC
143
endif
144
 
4386 terminx 145
include $(BUILD_SHARED_LIBRARY)
146