I am compiling my own app in AOSP,and I want to add my own app in package/app in AOSP. I have some *.so
files which will be used in my app,but how to write Android.mk
about to use these third party .so
files?here is my Android.mk
:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SHARED_LIBRARIES :=myprebuilt
LOCAL_STATIC_JAVA_LIBRARIES :=OrbbecJar
LOCAL_SRC_FILES := $(call all-java-files-under, src)\
$(call all-java-files-under, openCVLibrary2410/src)\
openCVLibrary2410/src/main/aidl/org/opencv/engine/OpenCVEngineInterface.aidl
LOCAL_RESOURCE_DIR:= $(LOCAL_PATH)/openCVLibrary2410/res\
$(LOCAL_PATH)/res
LOCAL_CERTIFICATE := platform
LOCAL_PACKAGE_NAME := HelloWorld
include $(BUILD_PACKAGE)
##################################################
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := OrbbecJar:OrbbecSDKPro_161114_v1.1.2.jar
include $(BUILD_MULTI_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE:=myprebuilt
LOCAL_SRC_FILES:=libs/armeabi-v7a/libHWWrapper.so\
libs/armeabi-v7a/libXnDeviceSensorV2.so\
libs/armeabi-v7a/libXnFormats.so
include $(PREBUILT_SHARED_LIBRARY)
# Use the folloing include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))
The build apk contents shows:
but I cant find
*.so`files in my build apk