Allow third-party libraries to be prebuilt
This commit is contained in:
parent
b0c9018753
commit
47ef869f28
39 changed files with 102 additions and 41 deletions
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libcpufeatures_proxy.so
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libcpufeatures_proxy.so
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libexpat_static.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libexpat_static.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libexpat_static_neon.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libexpat_static_neon.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libft2_static.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libft2_static.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libft2_static_neon.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libft2_static_neon.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libgif.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libgif.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libgif_neon.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libgif_neon.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libjpeg.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libjpeg.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libjpeg_neon.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libjpeg_neon.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libpng.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libpng.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libpng_neon.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libpng_neon.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libproto.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libproto.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libproto_neon.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libproto_neon.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libskia.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libskia.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libskia_neon.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi-v7a/libskia_neon.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi/libcpufeatures_proxy.so
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi/libcpufeatures_proxy.so
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi/libexpat_static.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi/libexpat_static.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi/libft2_static.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi/libft2_static.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi/libgif.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi/libgif.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi/libjpeg.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi/libjpeg.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi/libpng.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi/libpng.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi/libproto.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi/libproto.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/armeabi/libskia.a
Executable file
BIN
OsmAnd/jni-prebuilt/armeabi/libskia.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/x86/libcpufeatures_proxy.so
Executable file
BIN
OsmAnd/jni-prebuilt/x86/libcpufeatures_proxy.so
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/x86/libexpat_static.a
Executable file
BIN
OsmAnd/jni-prebuilt/x86/libexpat_static.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/x86/libft2_static.a
Executable file
BIN
OsmAnd/jni-prebuilt/x86/libft2_static.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/x86/libgif.a
Executable file
BIN
OsmAnd/jni-prebuilt/x86/libgif.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/x86/libjpeg.a
Executable file
BIN
OsmAnd/jni-prebuilt/x86/libjpeg.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/x86/libpng.a
Executable file
BIN
OsmAnd/jni-prebuilt/x86/libpng.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/x86/libproto.a
Executable file
BIN
OsmAnd/jni-prebuilt/x86/libproto.a
Executable file
Binary file not shown.
BIN
OsmAnd/jni-prebuilt/x86/libskia.a
Executable file
BIN
OsmAnd/jni-prebuilt/x86/libskia.a
Executable file
Binary file not shown.
|
@ -8,12 +8,17 @@ include $(CLEAR_VARS)
|
|||
# Name of the local module
|
||||
LOCAL_MODULE := cpufeatures_proxy
|
||||
|
||||
ifneq ($(OSMAND_USE_PREBUILT),true)
|
||||
LOCAL_SRC_FILES := \
|
||||
cpuCheck.cpp
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := cpufeatures
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
else
|
||||
LOCAL_SRC_FILES := \
|
||||
../../jni-prebuilt/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE).so
|
||||
LOCAL_STATIC_LIBRARIES := cpufeatures
|
||||
include $(PREBUILT_SHARED_LIBRARY)
|
||||
endif
|
||||
|
||||
$(call import-module,android/cpufeatures)
|
||||
|
||||
|
|
|
@ -3,9 +3,9 @@ LOCAL_PATH:= $(call my-dir)
|
|||
include $(CLEAR_VARS)
|
||||
|
||||
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
||||
LOCAL_MODULE := libexpat_static
|
||||
LOCAL_MODULE := expat_static
|
||||
else
|
||||
LOCAL_MODULE := libexpat_static_neon
|
||||
LOCAL_MODULE := expat_static_neon
|
||||
LOCAL_ARM_NEON := true
|
||||
endif
|
||||
|
||||
|
@ -16,6 +16,8 @@ ifeq ($(OSMAND_EXPAT_ABS),)
|
|||
OSMAND_EXPAT_ABS := $(LOCAL_PATH)/expat_library
|
||||
endif
|
||||
|
||||
ifneq ($(OSMAND_USE_PREBUILT),true)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
$(OSMAND_EXPAT_LOC)/lib/xmlparse.c \
|
||||
$(OSMAND_EXPAT_LOC)/lib/xmlrole.c \
|
||||
|
@ -28,3 +30,9 @@ LOCAL_C_INCLUDES += \
|
|||
$(OSMAND_EXPAT_ABS)/lib
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
else
|
||||
LOCAL_SRC_FILES := \
|
||||
../../jni-prebuilt/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE).a
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
endif
|
||||
|
|
|
@ -13,6 +13,15 @@ ifeq ($(OSMAND_FREETYPE_ABS),)
|
|||
OSMAND_FREETYPE_ABS := $(LOCAL_PATH)/freetype_library
|
||||
endif
|
||||
|
||||
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
||||
LOCAL_MODULE := ft2_static
|
||||
else
|
||||
LOCAL_MODULE := ft2_static_neon
|
||||
LOCAL_ARM_NEON := true
|
||||
endif
|
||||
|
||||
ifneq ($(OSMAND_USE_PREBUILT),true)
|
||||
|
||||
LOCAL_SRC_FILES:= \
|
||||
$(OSMAND_FREETYPE_LOC)/src/base/ftbbox.c \
|
||||
$(OSMAND_FREETYPE_LOC)/src/base/ftbitmap.c \
|
||||
|
@ -50,11 +59,10 @@ LOCAL_CFLAGS += "-DFT2_BUILD_LIBRARY"
|
|||
|
||||
LOCAL_CFLAGS += -O2
|
||||
|
||||
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
||||
LOCAL_MODULE := libft2_static
|
||||
else
|
||||
LOCAL_MODULE := libft2_static_neon
|
||||
LOCAL_ARM_NEON := true
|
||||
endif
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
else
|
||||
LOCAL_SRC_FILES := \
|
||||
../../jni-prebuilt/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE).a
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
endif
|
|
@ -8,6 +8,14 @@ ifeq ($(OSMAND_GIF_ABS),)
|
|||
OSMAND_GIF_ABS := $(LOCAL_PATH)/gif_library
|
||||
endif
|
||||
|
||||
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
||||
LOCAL_MODULE := gif
|
||||
else
|
||||
LOCAL_MODULE := gif_neon
|
||||
endif
|
||||
|
||||
ifneq ($(OSMAND_USE_PREBUILT),true)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
$(OSMAND_GIF_LOC)/dgif_lib.c \
|
||||
$(OSMAND_GIF_LOC)/gifalloc.c \
|
||||
|
@ -18,10 +26,10 @@ LOCAL_C_INCLUDES += \
|
|||
|
||||
LOCAL_CFLAGS += -Wno-format -DHAVE_CONFIG_H
|
||||
|
||||
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
||||
LOCAL_MODULE := libgif
|
||||
else
|
||||
LOCAL_MODULE := libgif_neon
|
||||
endif
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
else
|
||||
LOCAL_SRC_FILES := \
|
||||
../../jni-prebuilt/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE).a
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
endif
|
|
@ -10,6 +10,14 @@ ifeq ($(OSMAND_JPEG_ABS),)
|
|||
OSMAND_JPEG_ABS := $(LOCAL_PATH)/jpeg_library
|
||||
endif
|
||||
|
||||
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
||||
LOCAL_MODULE := jpeg
|
||||
else
|
||||
LOCAL_MODULE := jpeg_neon
|
||||
endif
|
||||
|
||||
ifneq ($(OSMAND_USE_PREBUILT),true)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
$(OSMAND_JPEG_LOC)/jcapimin.c \
|
||||
$(OSMAND_JPEG_LOC)/jcapistd.c \
|
||||
|
@ -74,10 +82,10 @@ ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
|||
LOCAL_CFLAGS += -DANDROID_ARMV6_IDCT
|
||||
endif
|
||||
|
||||
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
||||
LOCAL_MODULE := libjpeg
|
||||
else
|
||||
LOCAL_MODULE := libjpeg_neon
|
||||
endif
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
else
|
||||
LOCAL_SRC_FILES := \
|
||||
../../jni-prebuilt/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE).a
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
endif
|
|
@ -8,6 +8,17 @@ ifeq ($(OSMAND_PNG_ABS),)
|
|||
OSMAND_PNG_ABS := $(LOCAL_PATH)/png_library
|
||||
endif
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libz
|
||||
|
||||
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
||||
LOCAL_MODULE := png
|
||||
else
|
||||
LOCAL_MODULE := png_neon
|
||||
endif
|
||||
|
||||
ifneq ($(OSMAND_USE_PREBUILT),true)
|
||||
|
||||
common_SRC_FILES := \
|
||||
$(OSMAND_PNG_LOC)/png.c \
|
||||
$(OSMAND_PNG_LOC)/pngerror.c \
|
||||
|
@ -47,15 +58,11 @@ LOCAL_SRC_FILES := $(common_SRC_FILES)
|
|||
LOCAL_CFLAGS += $(common_CFLAGS)
|
||||
LOCAL_C_INCLUDES += $(common_C_INCLUDES) \
|
||||
external/zlib
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libz
|
||||
|
||||
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
||||
LOCAL_MODULE := libpng
|
||||
else
|
||||
LOCAL_MODULE := libpng_neon
|
||||
endif
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
|
||||
else
|
||||
LOCAL_SRC_FILES := \
|
||||
../../jni-prebuilt/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE).a
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
endif
|
|
@ -1,5 +1,16 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
||||
LOCAL_MODULE := proto
|
||||
else
|
||||
LOCAL_MODULE := proto_neon
|
||||
LOCAL_ARM_NEON := true
|
||||
endif
|
||||
|
||||
ifneq ($(OSMAND_USE_PREBUILT),true)
|
||||
|
||||
CC_LITE_SRC_FILES := \
|
||||
google/protobuf/stubs/common.cc \
|
||||
google/protobuf/stubs/once.cc \
|
||||
|
@ -13,14 +24,6 @@ CC_LITE_SRC_FILES := \
|
|||
google/protobuf/io/zero_copy_stream.cc \
|
||||
google/protobuf/io/zero_copy_stream_impl_lite.cc
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
ifneq ($(OSMAND_BUILDING_NEON_LIBRARY),true)
|
||||
LOCAL_MODULE := proto
|
||||
else
|
||||
LOCAL_MODULE := proto_neon
|
||||
LOCAL_ARM_NEON := true
|
||||
endif
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_CPP_EXTENSION := .cc
|
||||
|
@ -34,3 +37,9 @@ LOCAL_CFLAGS := -DGOOGLE_PROTOBUF_NO_RTTI
|
|||
LOCAL_LDLIBS := -llog
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
else
|
||||
LOCAL_SRC_FILES := \
|
||||
../../jni-prebuilt/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE).a
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
endif
|
|
@ -34,6 +34,8 @@ ifeq ($(OSMAND_JPEG_ABS),)
|
|||
OSMAND_JPEG_ABS := $(LOCAL_PATH)/../jpeg/jpeg_library
|
||||
endif
|
||||
|
||||
ifneq ($(OSMAND_USE_PREBUILT),true)
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
# need a flag to tell the C side when we're on devices with large memory
|
||||
|
@ -321,6 +323,12 @@ LOCAL_LDLIBS += -lz -llog
|
|||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
else
|
||||
LOCAL_SRC_FILES := \
|
||||
../../jni-prebuilt/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE).a
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
endif
|
||||
|
||||
# Fix some errors
|
||||
BUILD_HOST_EXECUTABLE := $(LOCAL_PATH)/FakeHost.mk
|
||||
BUILD_HOST_STATIC_LIBRARY := $(LOCAL_PATH)/FakeHost.mk
|
Loading…
Reference in a new issue