Subversion Repositories eduke32

Rev

Rev 5000 | 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
 
5066 terminx 23
LOCAL_CFLAGS :=   -x c++ -std=gnu++03 -fvisibility=hidden -fPIC -O2 -DNDEBUG -DUSING_LTO -flto -fno-stack-protector -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=0 -pthread -DHAVE_INTTYPES  -D_GNU_SOURCE=1 -D_REENTRANT
4989 terminx 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
 
5000 terminx 27
LOCAL_CFLAGS += -DHAVE_SDL -DHAVE_VORBIS -DHAVE_JWZGLES -DHAVE_ANDROID -DRENDERTYPESDL=1  -DUSE_OPENGL -DNETCODE_DISABLE -DUSE_LIBVPX
4693 terminx 28
 
29
#LOCAL_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1
30
 
4989 terminx 31
LOCAL_LDFLAGS := -fuse-ld=bfd
4693 terminx 32
LOCAL_ARM_NEON = true
33
 
4440 terminx 34
LOCAL_C_INCLUDES :=  $(LOCAL_PATH)/source $(LOCAL_PATH)/source/jmact $(LOCAL_PATH)/source/jaudiolib/include $(LOCAL_PATH)/source/enet/include  $(LOCAL_PATH)/build/include
5000 terminx 35
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 $(TOP_DIR)/Libraries/libvpx/include
4386 terminx 36
 
37
ANDROID_SRC = \
38
	source/android/android-jni.cpp \
4989 terminx 39
	source/android/in_android.c \
40
        build/src/glbuild_android.c \
5066 terminx 41
        build/src/jwzgles.c \
42
        source/android/rg_etc1.cpp
4386 terminx 43
 
44
BUILD_SRC = \
45
	build/src/a-c.c \
46
	build/src/baselayer.c \
47
	build/src/cache1d.c \
48
	build/src/compat.c \
49
	build/src/crc32.c \
50
	build/src/defs.c \
51
	build/src/engine.c \
52
	build/src/polymost.c \
4989 terminx 53
        build/src/mdsprite.c \
4386 terminx 54
	build/src/texcache.c \
55
	build/src/dxtfilter.c \
56
	build/src/hightile.c \
57
	build/src/textfont.c \
58
	build/src/smalltextfont.c \
59
	build/src/kplib.c \
60
	build/src/lz4.c \
61
	build/src/osd.c \
4989 terminx 62
	build/src/md4.c \
4386 terminx 63
	build/src/pragmas.c \
64
	build/src/scriptfile.c \
4387 terminx 65
	build/src/mutex.c \
4989 terminx 66
        build/src/xxhash.c \
67
        build/src/mmulti_null.c \
68
        build/src/voxmodel.c \
69
        build/src/common.c \
70
        build/src/sdlayer.c
4386 terminx 71
 
72
JMACT_SRC=source/jmact/file_lib.c \
73
	source/jmact//control.c \
74
	source/jmact//keyboard.c \
75
	source/jmact//mouse.c \
76
	source/jmact//joystick.c \
77
	source/jmact//mathutil.c \
78
	source/jmact//scriplib.c \
79
	source/jmact//animlib.c
80
 
81
GAME_SRC=source/game.c \
82
	source/actors.c \
83
	source/anim.c \
4989 terminx 84
	source/animsounds.c \
5000 terminx 85
        source/animvpx.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/
5000 terminx 136
LOCAL_STATIC_LIBRARIES :=   libpng crypto
137
LOCAL_SHARED_LIBRARIES := touchcontrols ogg vorbis SDL2 SDL2_mixer libvpx
4989 terminx 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