include $(CLEAR_VARS)
LOCAL_MODULE := libdump_android_static
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
LOCAL_MODULE_SUFFIX := .a
LOCAL_SRC_FILE := lib/arm64-v8a/../dump_android/libdump_android.a
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/../dump
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
include $(BUILD_PREBUILT)
When I execute the compile command for only this module "mmm ./external/new_module" it says that make completed successfully and also says " target Prebuilt: libdump_android_static (out/target/product/../obj/STATIC_LIBRARIES/libdump_android_static_intermediates/libdump_android_static.a"
Than I wanted to use this library in other sub-module which is builded inside the system, that sub-module inside my same Android.mk looks like:
include $(CLEAR_VARS)
LOCAL_MODULE := libdump
LOCAL_SRC_FILES := src/../dump/dump.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_SHARED_LIBRARIES := liblog libopencv_core
LOCAL_STATIC_LIBRARIES := libdump_android_static
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
include $(BUILD_SHARED_LIBRARY)
When I execute the compile command for only this module "mmm ./external/new_module" it says:
ninja: error: 'out/target/product/../obj_arm/STATIC_LIBRARIES/libdump_android_static_intermediates/export_includes', needed by 'out/target/product/../obj_arm/SHARED_LIBRARIES/libdump_intermediates/import_includes', missing and no known rule to make it.
I also tried with shared libraries but the same error appears!