I have an Android project, featuring some native code, which use a static library for some Poco-library functions. I have currently linked in the arm7 build of the static library in the make files below. Now if i want to distribute this app on google play, for portatbility i need to include other architectures in the apk to. How do i include for example the static libPocofoundation.a for arm6 and the static libPocoFoundation.a for arm7 to the shared library in the apk?
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
LOCAL_MODULE := PocoFoundation
LOCAL_SRC_FILES := Poco/libPocoFoundation.a #<- How do i set this conditional-
# or add multiple architectures?
LOCAL_EXPORT_C_INCLUDES := /Users/poco-1.5.1-all/Foundation/include
LOCAL_EXPORT_CFLAGS := -DFOO=1 -fpermissive
LOCAL_EXPORT_LDLIBS := -llog
include $(PREBUILT_STATIC_LIBRARY)
Android.mk
LOCAL_PATH := $(call my-dir)
ROOT_PATH := $(LOCAL_PATH)
include $(call all-subdir-makefiles)
include $(CLEAR_VARS)
LOCAL_PATH = $(ROOT_PATH)
include $(CLEAR_VARS)
#LOCAL_MODULE_TAGS := eng
LOCAL_ARM_MODE := arm
LOCAL_MODULE := JsonPoco # Your own library.
LOCAL_SRC_FILES := JsonPoco.cpp \
# Your own library source.
LOCAL_WHOLE_STATIC_LIBRARIES := PocoFoundation \
PocoJSON
LOCAL_LDLIBS := -llog
LOCAL_CFLAGS := -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY
LOCAL_CPPFLAGS := -frtti -fexceptions
include $(BUILD_SHARED_LIBRARY)