Xrasher/jni/Application.mk

41 lines
1.6 KiB
Makefile
Raw Normal View History

2015-05-22 20:59:49 +06:00
# Uncomment this if you're using STL in your project
# See CPLUSPLUS-SUPPORT.html in the NDK documentation for more information
#APP_STL := stlport_static
2015-05-22 20:59:49 +06:00
XASH_SDL ?= 0
ifeq ($(XASH_SDL),1)
APP_PLATFORM := android-12
else
2016-05-07 22:37:15 +00:00
APP_PLATFORM := android-9
endif
2016-05-06 22:19:56 +00:00
CFLAGS_OPT := -O3 -fomit-frame-pointer -ggdb -funsafe-math-optimizations -ftree-vectorize -fgraphite-identity -floop-interchange -funsafe-loop-optimizations -finline-limit=256 -pipe
2016-01-22 09:08:49 +00:00
CFLAGS_OPT_ARM := -mthumb -mfpu=neon -mcpu=cortex-a9 -pipe -mvectorize-with-neon-quad -DVECTORIZE_SINCOS -fPIC
2016-05-06 22:19:56 +00:00
#CFLAGS_OPT_ARMv5 :=-mcpu=arm1136jf-s -mtune=arm1136jf-s -mthumb -mfpu=vfp -pipe -mfloat-abi=softfp
CFLAGS_OPT_ARMv5 := -march=armv5te -mthumb -msoft-float
CFLAGS_OPT_X86 := -mtune=atom -march=atom -mssse3 -mfpmath=sse -funroll-loops -pipe -DVECTORIZE_SINCOS
2015-08-20 01:22:32 +07:00
CFLAGS_HARDFP := -D_NDK_MATH_NO_SOFTFP=1 -mhard-float -mfloat-abi=hard -DLOAD_HARDFP -DSOFTFP_LINK
2015-05-22 20:59:49 +06:00
APPLICATIONMK_PATH = $(call my-dir)
NANOGL_PATH := $(APPLICATIONMK_PATH)/src/NanoGL/nanogl
XASH3D_PATH := $(APPLICATIONMK_PATH)/src/Xash3D/xash3d
HLSDK_PATH := $(APPLICATIONMK_PATH)/src/HLSDK/halflife/
2015-08-27 01:46:46 +07:00
XASH3D_CONFIG := $(APPLICATIONMK_PATH)/xash3d_config.mk
APP_ABI := x86 armeabi armeabi-v7a-hard
2015-08-12 23:07:07 +07:00
# Use armeabi-v7a to disable hardfloat, armeabi to build armv5 xash3d
# Change CFLAGS_OPT_ARMv5 to "-mfloat-abi=softfp -mfpu=vfp" and fix setup.mk of ndk to build armv6
# Mods are built with both ABI support
# ARMv6 and ARMv5 xash3d builds use softfp only and compatible only with softfp mods
# Build both armeabi-v7a-hard and armeabi-v7a supported only for mods, not for engine
2015-06-11 14:30:34 +07:00
APP_MODULES := xash menu client server NanoGL
ifeq ($(XASH_SDL),1)
APP_MODULES += SDL2
endif