android 集成第三方库和程序

1、集成静态库

   1: LOCAL_PATH := $(call my-dir)

   2: include $(CLEAR_VARS)

   3:  

   4: LOCAL_PREBUILT_LIBS := libA.a            

   6:                         

   7: LOCAL_STATIC_LIBRARIES := libA   

   9:  

  10: include $(BUILD_MULTI_PREBUILT)

2、集成动态库

   1: LOCAL_PATH := $(call my-dir)

   2: include $(CLEAR_VARS)

   3:  

   4: LOCAL_PREBUILT_LIBS := libA.so

   5:        

   6: include $(BUILD_MULTI_PREBUILT)

3、集成可执行程序

   1: LOCAL_PATH := $(call my-dir)

   2: include $(CLEAR_VARS)

   3:  

   4: LOCAL_SRC_FILES := hello

   5: LOCAL_MODULE := hello

   6: LOCAL_MODULE_CLASS := EXECUTABLES

   7: LOCAL_MODULE_TAGS := debug

   8: include $(BUILD_PREBUILT)

4、集成pre-build Android应用程序(APK)


   1: LOCAL_PATH := $(call my-dir)

   2: include $(CLEAR_VARS)

   3:  

   4: LOCAL_SRC_FILES := test.apk

   5: LOCAL_MODULE := test.apk

   7: LOCAL_MODULE_TAGS := optional


   8: include $(BUILD_PREBUILT)


请使用浏览器的分享功能分享到微信等