I can not find a working example of the NDK function for Android NAD. The following Android.mk files seem to be correct, and the internal module builds and executes without errors. However, when the plug-in fails, the following error messages appear:
Android NDK: jni / internal / Android.mk: internal: LOCAL_MODULE_FILENAME should not include file extensions
Android NDK: jni / internal / Android.mk: internal: LOCAL_MODULE_FILENAME should not contain file extension
/ home / caleb / dev / android-ndk-r8e /build/core/build-shared-library.mk:30: * Android NDK: Cancel. Stop.
Internal containing Android.mk file:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := inner
LOCAL_MODULE_FILENAME := libinner
LOCAL_SRC_FILES := inner-module.c
include $(BUILD_SHARED_LIBRARY)
External containing Android.mk file:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := outer
$(call import-module,inner)
LOCAL_SHARED_LIBRARIES += inner
include $(BUILD_SHARED_LIBRARY)