码迷,mamicode.com
首页 > 移动开发 > 详细

Android NDK编译本地文件以及引用第三方so文件

时间:2015-06-04 19:06:16      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_LDLIBS :=-llog
LOCAL_MODULE := DeviceAPI
LOCAL_SRC_FILES := DeviceAPI.c \

 

include $(BUILD_SHARED_LIBRARY)


include $(CLEAR_VARS)
LOCAL_MODULE := libbarcodereader
LOCAL_SRC_FILES := libbarcodereader.so

include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := libbarcodereader43
LOCAL_SRC_FILES := libbarcodereader43.so

include $(PREBUILT_SHARED_LIBRARY)

后添加上第三方so文件引入的android.mk部分

1 include $(CLEAR_VARS)
2 LOCAL_MODULE := libbarcodereader43
3 LOCAL_SRC_FILES := libbarcodereader43.so
4 
5 include $(PREBUILT_SHARED_LIBRARY)

 

Android NDK编译本地文件以及引用第三方so文件

标签:

原文地址:http://www.cnblogs.com/l2rf/p/4552394.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!