OsmAnd/OsmAnd/jni/Android.mk

47 lines
1.2 KiB
Makefile
Raw Normal View History

2013-08-04 09:58:16 +02:00
LOCAL_PATH := $(call my-dir)
ROOT_PATH := $(LOCAL_PATH)/../../..
$(info OsmAnd root: $(ROOT_PATH))
2014-03-04 18:32:34 +01:00
# LEGACY {
2013-08-04 21:21:01 +02:00
ifdef BUILD_ONLY_OLD_LIB
2013-08-11 12:35:44 +02:00
OSMAND_MAKEFILES := \
$(all-subdir-makefiles) \
2013-08-05 23:10:31 +02:00
$(call all-makefiles-under,$(ROOT_PATH)/core/targets/android)
2013-08-04 21:21:01 +02:00
else
2014-03-04 18:32:34 +01:00
# } LEGACY
2013-02-18 20:34:14 +01:00
OSMAND_MAKEFILES := \
2013-08-11 12:35:44 +02:00
$(all-subdir-makefiles) \
2014-03-04 18:32:34 +01:00
$(call all-makefiles-under,$(ROOT_PATH)/core/wrappers/android)
# LEGACY {
2013-08-04 21:21:01 +02:00
endif
2014-03-04 18:32:34 +01:00
# } LEGACY
2013-08-11 12:35:44 +02:00
$(info OsmAnd makefiles: $(OSMAND_MAKEFILES))
# Protect from previous builds
ifneq ($(TARGET_ARCH_ABI),armeabi-v7a)
2013-08-04 08:42:34 +02:00
OSMAND_BUILDING_NEON_LIBRARY := false
endif
# OSMAND_FORCE_NEON_SUPPORT is used to force only NEON support on ARMv7a
2013-08-11 12:35:44 +02:00
ifeq ($(OSMAND_FORCE_NEON_SUPPORT),true)
2013-08-04 08:42:34 +02:00
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
OSMAND_BUILDING_NEON_LIBRARY := true
endif
endif
# By default, include makefiles only once
include $(OSMAND_MAKEFILES)
# If we're not asked not to support NEON and not asked to support only NEON ARMv7a, then
# make additional build
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
2013-08-11 12:35:44 +02:00
ifneq ($(OSMAND_SKIP_NEON_SUPPORT),true)
ifneq ($(OSMAND_FORCE_NEON_SUPPORT),true)
2013-08-04 08:42:34 +02:00
OSMAND_BUILDING_NEON_LIBRARY := true
include $(OSMAND_MAKEFILES)
2013-08-04 08:42:34 +02:00
endif
endif
2013-08-04 21:54:25 +02:00
endif