ITPub博客

首页 > Linux操作系统 > Linux操作系统 > android 集成第三方库和程序

android 集成第三方库和程序

原创 Linux操作系统 作者:bartfj 时间:2012-07-26 13:01:54 0 删除 编辑

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)


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7232789/viewspace-736870/,如需转载,请注明出处,否则将追究法律责任。

上一篇: linux find命令用法
请登录后发表评论 登录
全部评论

注册时间:2008-02-17

  • 博文量
    86
  • 访问量
    235909