OsmAnd/OsmAnd/jni/osmand/Android.mk

78 lines
1.6 KiB
Makefile
Raw Normal View History

2011-10-28 16:01:00 +02:00
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
2012-02-29 22:27:36 +01:00
# Set 'protobuf' folder only if it's not externally set
ifeq ($(PROTOBUF),)
PROTOBUF := $(LOCAL_PATH)/../protobuf
endif
2011-10-28 16:01:00 +02:00
2012-02-29 22:27:36 +01:00
# Set 'skia' folder only if it's not externally set
ifeq ($(OSMAND_SKIA_ABS),)
OSMAND_SKIA_ABS := $(LOCAL_PATH)/../skia/skia_library
2012-02-29 22:27:36 +01:00
endif
2011-10-28 16:01:00 +02:00
2012-02-29 22:27:36 +01:00
# Name of the local module
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
2011-10-28 16:01:00 +02:00
LOCAL_MODULE := osmand
else
LOCAL_MODULE := osmand_neon
LOCAL_ARM_NEON := true
endif
2011-10-28 16:01:00 +02:00
2012-02-29 22:27:36 +01:00
# Include paths
2011-10-28 16:01:18 +02:00
LOCAL_C_INCLUDES := $(LOCAL_PATH) \
2012-02-29 22:27:36 +01:00
$(PROTOBUF) \
$(LOCAL_PATH)/../skia \
$(OSMAND_SKIA_ABS)/include/core \
$(OSMAND_SKIA_ABS)/include/images \
$(OSMAND_SKIA_ABS)/include/utils \
$(OSMAND_SKIA_ABS)/include/config \
$(OSMAND_SKIA_ABS)/include/effects \
$(OSMAND_SKIA_ABS)/include/utils/android \
$(OSMAND_SKIA_ABS)/src/core
2012-02-29 22:27:36 +01:00
LOCAL_SRC_FILES := \
common.cpp \
mapObjects.cpp \
renderRules.cpp \
rendering.cpp \
binaryRead.cpp
2011-10-28 16:01:00 +02:00
2012-02-29 22:27:36 +01:00
LOCAL_CFLAGS := \
-DGOOGLE_PROTOBUF_NO_RTTI \
-DSK_BUILD_FOR_ANDROID \
-DSK_BUILD_FOR_ANDROID_NDK \
-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0 \
-DSK_USE_POSIX_THREADS \
-DSK_RELEASE \
-DGR_RELEASE=1
ifdef OSMAND_PROFILE_NATIVE_OPERATIONS
LOCAL_CFLAGS += \
-DPROFILE_NATIVE_OPERATIONS
endif
2012-02-29 22:27:36 +01:00
ifneq ($(LOCAL_ARM_NEON),true)
2012-03-03 17:47:28 +01:00
LOCAL_STATIC_LIBRARIES := \
proto \
libjpeg \
libft2_static \
libpng \
libgif \
libexpat_static
LOCAL_WHOLE_STATIC_LIBRARIES := skia
else
2012-03-03 17:47:28 +01:00
LOCAL_STATIC_LIBRARIES := \
proto_neon \
libjpeg_neon \
libft2_static_neon \
libpng_neon \
libgif_neon \
libexpat_static_neon
LOCAL_WHOLE_STATIC_LIBRARIES := skia_neon
endif
2012-02-29 22:27:36 +01:00
2012-03-03 17:47:28 +01:00
LOCAL_LDLIBS := -lz -llog -ljnigraphics
2011-10-28 16:01:00 +02:00
include $(BUILD_SHARED_LIBRARY)