2011-10-28 16:01:00 +02:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2012-05-01 00:30:31 +02:00
|
|
|
include $(LOCAL_PATH)/Common.mk
|
2012-06-16 10:15:06 +02:00
|
|
|
LOCAL_CFLAGS += -fPIC
|
2011-10-28 16:01:00 +02:00
|
|
|
|
2012-02-29 22:27:36 +01:00
|
|
|
# Name of the local module
|
2012-03-14 13:48:59 +01:00
|
|
|
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
2011-10-28 16:01:00 +02:00
|
|
|
LOCAL_MODULE := osmand
|
2012-03-01 12:21:20 +01:00
|
|
|
else
|
|
|
|
LOCAL_MODULE := osmand_neon
|
|
|
|
LOCAL_ARM_NEON := true
|
|
|
|
endif
|
2011-10-28 16:01:00 +02:00
|
|
|
|
2012-06-05 09:30:57 +02:00
|
|
|
LOCAL_SRC_FILES += src/java_wrap.cpp
|
|
|
|
|
2012-02-29 22:27:36 +01:00
|
|
|
LOCAL_CFLAGS := \
|
|
|
|
-DGOOGLE_PROTOBUF_NO_RTTI \
|
2012-05-04 16:24:21 +02:00
|
|
|
-DANDROID_BUILD \
|
2012-02-29 22:27:36 +01:00
|
|
|
-DSK_BUILD_FOR_ANDROID \
|
|
|
|
-DSK_BUILD_FOR_ANDROID_NDK \
|
|
|
|
-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0 \
|
|
|
|
-DSK_RELEASE \
|
|
|
|
-DGR_RELEASE=1
|
2012-03-02 17:24:06 +01:00
|
|
|
|
2012-03-01 12:21:20 +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
|
2012-03-01 12:21:20 +01:00
|
|
|
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
|
2012-03-01 12:21:20 +01:00
|
|
|
endif
|
2012-02-29 22:27:36 +01:00
|
|
|
|
2012-04-20 18:53:58 +02:00
|
|
|
LOCAL_LDLIBS := -lz -llog -ldl
|
2011-10-28 16:01:00 +02:00
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|