OsmAnd/Osmand-kernel/osmand/Android.mk

47 lines
900 B
Makefile
Raw Normal View History

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
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-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
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
LOCAL_LDLIBS := -lz -llog -ldl
2011-10-28 16:01:00 +02:00
include $(BUILD_SHARED_LIBRARY)