Android 4.0.3 源码编译中添加外部jar包和外部so到apk的方法

懒得写那么多,直接把Android.mk贴上来。 把关键字用*号代替,免得暴露了身份,哈哈。


LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)


LOCAL_STATIC_JAVA_LIBRARIES := slf4j ksoap2 epublib pdfclown android-support-v4
 
LOCAL_JNI_SHARED_LIBRARIES := librmsdk libpdfParser libZSStroageUtils
 
LOCAL_SRC_FILES := $(call all-java-files-under, src) \
        src/com/***/***/mediaplayer/musicplayer/IMediaPlaybackService.aidl
LOCAL_PACKAGE_NAME := K****Reader
   
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := slf4j:libs/slf4j-android-1.6.1-RC1.jar \
                                        ksoap2:libs/ksoap2-android-assembly-2.6.4-jar-with-dependencies.jar \
                                        epublib:libs/epublib-core-latest.jar \
                                        pdfclown:libs/pdfclown.jar
include $(BUILD_MULTI_PREBUILT)


$(shell cp $(LOCAL_PATH)/libs/armeabi/librmsdk.so $(LOCAL_PATH)/libs/armeabi/libpdfParser.so $(LOCAL_PATH)/libs/armeabi/libZSStroageUtils.so    $(LOCAL_PATH)/../../../out/target/product/$(TARGET_PRODUCT)/obj/lib/)
 

include $(call all-makefiles-under,$(LOCAL_PATH))

你可能感兴趣的:(Android,Framework)