11 lines
657 B
Makefile
11 lines
657 B
Makefile
APP_PROJECT_PATH := $(call my-dir)/..
|
|
|
|
include jni/Settings.mk
|
|
|
|
APP_STL := $(if $(filter clang%, $(NDK_TOOLCHAIN_VERSION)), c++_static, gnustl_static)
|
|
APP_CFLAGS := -O3 -DNDEBUG -g # arm-linux-androideabi-4.4.3 crashes in -O0 mode on SDL sources
|
|
APP_PIE := true # This feature makes executables incompatible to Android API 15 or lower, but executables without PIE will not run on Android 5.0 and newer
|
|
SDL_EXCLUDE_LIBGCC := -Wl,--exclude-libs,libgcc.a
|
|
SDL_EXCLUDE_LIBUNWIND := -Wl,--exclude-libs,libunwind.a
|
|
APP_LDFLAGS = $(if $(filter clang%, $(NDK_TOOLCHAIN_VERSION)), $(SDL_EXCLUDE_LIBGCC) $(if $(filter armeabi%, $(APP_ABI)), $(SDL_EXCLUDE_LIBUNWIND)))
|