OsmAnd/OsmAnd/jni/Application.mk

37 lines
927 B
Makefile
Raw Normal View History

2012-12-18 10:46:26 +01:00
APP_STL := gnustl_shared
2013-02-26 08:51:50 +01:00
APP_CPPFLAGS := -std=c++11 -fexceptions -frtti
2015-04-05 14:15:35 +02:00
APP_SHORT_COMMANDS := true
2015-05-22 12:50:13 +02:00
# Specify least supported Android platform version
APP_PLATFORM := android-9
2013-09-11 17:03:57 +02:00
ifeq ($(wildcard $(ANDROID_NDK)/toolchains/*-4.7),)
ifeq ($(wildcard $(ANDROID_NDK)/toolchains/*-4.8),)
NDK_TOOLCHAIN_VERSION := 4.9
else
NDK_TOOLCHAIN_VERSION := 4.8
endif
2013-09-11 17:03:57 +02:00
else
NDK_TOOLCHAIN_VERSION := 4.7
endif
2013-08-04 08:42:34 +02:00
APP_ABI :=
ifneq ($(filter x86,$(OSMAND_ARCHITECTURES_SET)),)
APP_ABI += x86
endif
2013-08-04 08:42:34 +02:00
ifneq ($(filter mips,$(OSMAND_ARCHITECTURES_SET)),)
APP_ABI += mips
endif
2013-08-04 08:42:34 +02:00
ifneq ($(filter arm,$(OSMAND_ARCHITECTURES_SET)),)
APP_ABI += armeabi armeabi-v7a
else
ifneq ($(filter armv7,$(OSMAND_ARCHITECTURES_SET)),)
APP_ABI += armeabi-v7a
endif
2012-11-08 19:33:32 +01:00
endif
2013-08-04 08:42:34 +02:00
ifndef OSMAND_DEBUG_NATIVE
2013-08-04 08:42:34 +02:00
# Force release compilation in release optimizations, even if application is debuggable by manifest
APP_OPTIM := release
2013-08-04 12:11:34 +02:00
endif