I've implemented a simple static test library foo and perform a successfully build of this library. Now I try to include this library as static prebuild to my simple shared bar library, based on android documentation. But this fails. My shared library is build successfully but my prebuild is not executed (finally not copied).
Here ist my bar Android.mk file
LOCAL_PATH := D:/binrev/repository/bar include $(CLEAR_VARS) LOCAL_MODULE := foo-prebuilt LOCAL_SRC_FILES := external-deps/foo/lib/android/$(TARGET_ARCH_ABI)/libfoo.a include $(PREBUILT_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := bar LOCAL_C_INCLUDES:= D:/binrev/repository/bar/include LOCAL_C_INCLUDES+= D:/binrev/repository/bar/external-deps/foo/include LOCAL_SRC_FILES := src/bar.cpp LOCAL_LDLIBS := -llog LOCAL_LDLIBS += -landroid LOCAL_SHARED_LIBRARIES := foo-prebuilt include $(BUILD_SHARED_LIBRARY)
And here is my Application.mk file:
APP_PROJECT_PATH := D:/binrev/repository/bar APP_BUILD_SCRIPT := $(APP_PROJECT_PATH)/Android.mk APP_CPPFLAGS := -std=gnu++0x APP_CPPFLAGS += -frtti APP_CPPFLAGS += -fexceptions APP_CPPFLAGS += -DDEBUG APP_STL := gnustl_static APP_GNUSTL_CPP_FEATURES := rtti exceptions APP_OPTIM := debug APP_ABI := armeabi-v7a APP_PLATFORM:=android-10 APP_MODULES := bar
I use MinGW64 in hanshake with NDK 8re. I could exclude MinGW64 as possible source of defects, while this failure also occurs, if I perform the build using Windows command line. While the upload is blocked by our proxy you could download the test project here:
I checked my sources and scripts multiple times, but can't find any failure.
I completly get lost and running out of ideas ...
Thanks for any help.