mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
Android: Minor build system cleanup.
git-svn-id: https://svn.eduke32.com/eduke32@5677 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7e12cf2a83
commit
e1ee089da5
1 changed files with 29 additions and 24 deletions
|
@ -4,24 +4,26 @@ include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_MODULE := duke3d
|
LOCAL_MODULE := duke3d
|
||||||
|
|
||||||
LOCAL_CFLAGS := -x c++ -std=gnu++11 -fvisibility=hidden -fPIC -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -pthread -DHAVE_INTTYPES -D_GNU_SOURCE=1 -D_REENTRANT
|
COMMONFLAGS := -x c++ -std=gnu++11 -fvisibility=hidden -fPIC -funsigned-char -fno-strict-aliasing -pthread -mhard-float \
|
||||||
|
-W -Wall -Wextra -Wpointer-arith -Wno-char-subscripts -Wno-missing-braces -Wwrite-strings -Wuninitialized \
|
||||||
ifeq ($(NDK_DEBUG), 1)
|
-Wno-attributes -Wno-strict-overflow -Wno-unused-result -Wlogical-op -Wcast-qual \
|
||||||
LOCAL_CFLAGS += -O0 -ggdb -fno-omit-frame-pointer -fno-stack-protector -D_FORTIFY_SOURCE=0
|
-DHAVE_SDL -DHAVE_VORBIS -DHAVE_JWZGLES -DHAVE_ANDROID -DRENDERTYPESDL=1 -DUSE_OPENGL -DNETCODE_DISABLE -DUSE_LIBVPX \
|
||||||
else
|
-DHAVE_INTTYPES -D_GNU_SOURCE=1 -D_REENTRANT -D_NDK_MATH_NO_SOFTFP=1
|
||||||
LOCAL_CFLAGS += -O2 -DNDEBUG -DUSING_LTO -flto -D_FORTIFY_SOURCE=2
|
|
||||||
endif
|
|
||||||
|
|
||||||
LOCAL_CPPFLAGS := -std=gnu++11
|
|
||||||
|
|
||||||
LOCAL_CFLAGS += -W -Werror-implicit-function-declaration -Wpointer-arith -Wextra -Wno-unused-result -Wno-char-subscripts \
|
|
||||||
-Wno-strict-overflow -Wno-attributes -Wno-write-strings -mhard-float -D_NDK_MATH_NO_SOFTFP=1
|
|
||||||
LOCAL_CFLAGS += -DHAVE_SDL -DHAVE_VORBIS -DHAVE_JWZGLES -DHAVE_ANDROID -DRENDERTYPESDL=1 -DUSE_OPENGL -DNETCODE_DISABLE -DUSE_LIBVPX
|
|
||||||
|
|
||||||
LOCAL_LDFLAGS := -fuse-ld=bfd
|
LOCAL_LDFLAGS := -fuse-ld=bfd
|
||||||
TARGET_LDFLAGS += -Wl,--no-warn-mismatch -lm_hard
|
TARGET_LDFLAGS += -Wl,--no-warn-mismatch -lm_hard
|
||||||
LOCAL_ARM_NEON = true
|
LOCAL_ARM_NEON = true
|
||||||
|
|
||||||
|
ifeq ($(NDK_DEBUG), 1)
|
||||||
|
COMMONFLAGS += -O0 -ggdb -fno-omit-frame-pointer -fno-stack-protector -D_FORTIFY_SOURCE=0 -DDEBUGGINGAIDS=0
|
||||||
|
else
|
||||||
|
COMMONFLAGS += -O2 -DNDEBUG -DUSING_LTO -flto -D_FORTIFY_SOURCE=2
|
||||||
|
LOCAL_LDFLAGS += -flto
|
||||||
|
endif
|
||||||
|
|
||||||
|
LOCAL_CFLAGS = $(COMMONFLAGS)
|
||||||
|
LOCAL_CPPFLAGS = $(COMMONFLAGS)
|
||||||
|
|
||||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/source $(LOCAL_PATH)/source/jmact $(LOCAL_PATH)/source/jaudiolib/include $(LOCAL_PATH)/source/enet/include $(LOCAL_PATH)/build/include
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/source $(LOCAL_PATH)/source/jmact $(LOCAL_PATH)/source/jaudiolib/include $(LOCAL_PATH)/source/enet/include $(LOCAL_PATH)/build/include
|
||||||
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/TinyXML/include $(TOP_DIR)/TouchControls $(TOP_DIR)/Libraries/libvpx/include
|
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/TinyXML/include $(TOP_DIR)/TouchControls $(TOP_DIR)/Libraries/libvpx/include
|
||||||
|
|
||||||
|
@ -60,7 +62,8 @@ BUILD_SRC = \
|
||||||
build/src/voxmodel.c \
|
build/src/voxmodel.c \
|
||||||
build/src/sdlayer.c
|
build/src/sdlayer.c
|
||||||
|
|
||||||
JMACT_SRC=source/jmact/file_lib.c \
|
JMACT_SRC = \
|
||||||
|
source/jmact/file_lib.c \
|
||||||
source/jmact/control.c \
|
source/jmact/control.c \
|
||||||
source/jmact/keyboard.c \
|
source/jmact/keyboard.c \
|
||||||
source/jmact/mouse.c \
|
source/jmact/mouse.c \
|
||||||
|
@ -68,7 +71,8 @@ JMACT_SRC=source/jmact/file_lib.c \
|
||||||
source/jmact/scriplib.c \
|
source/jmact/scriplib.c \
|
||||||
source/jmact/animlib.c
|
source/jmact/animlib.c
|
||||||
|
|
||||||
GAME_SRC=source/game.c \
|
GAME_SRC = \
|
||||||
|
source/game.c \
|
||||||
source/actors.c \
|
source/actors.c \
|
||||||
source/anim.c \
|
source/anim.c \
|
||||||
source/animsounds.c \
|
source/animsounds.c \
|
||||||
|
@ -102,7 +106,8 @@ GAME_SRC=source/game.c \
|
||||||
source/cheats.c \
|
source/cheats.c \
|
||||||
source/sbar.c
|
source/sbar.c
|
||||||
|
|
||||||
JAUDIO_SRC=source/jaudiolib/src/drivers.c \
|
JAUDIO_SRC = \
|
||||||
|
source/jaudiolib/src/drivers.c \
|
||||||
source/jaudiolib/src/fx_man.c \
|
source/jaudiolib/src/fx_man.c \
|
||||||
source/jaudiolib/src/multivoc.c \
|
source/jaudiolib/src/multivoc.c \
|
||||||
source/jaudiolib/src/mix.c \
|
source/jaudiolib/src/mix.c \
|
||||||
|
@ -115,8 +120,8 @@ GAME_SRC=source/game.c \
|
||||||
source/jaudiolib/src/driver_nosound.c \
|
source/jaudiolib/src/driver_nosound.c \
|
||||||
source/jaudiolib/src/driver_sdl.c
|
source/jaudiolib/src/driver_sdl.c
|
||||||
|
|
||||||
|
ENET_SRC = \
|
||||||
ENET_SRC=source/enet/src/callbacks.c \
|
source/enet/src/callbacks.c \
|
||||||
source/enet/src/host.c \
|
source/enet/src/host.c \
|
||||||
source/enet/src/list.c \
|
source/enet/src/list.c \
|
||||||
source/enet/src/packet.c \
|
source/enet/src/packet.c \
|
||||||
|
|
Loading…
Reference in a new issue