.mk文件解释
2016-02-26 10:48
281 查看
LOCAL_PATH := $(call my-dir) LS_CPP=$(subst $(1)/,,$(wildcard $(1)/*.cpp)) #自定义函数LS_CPP include $(CLEAR_VARS) #模块开始,清理全局变量 LOCAL_MODULE := ... #模块名 LOCAL_SRC_FILES := $(call LS_CPP,$(LOCAL_PATH)) #源文件 LOCAL_LDLIBS := -landroid -llog #依赖库(动态链接库或静态链接库) LOCAL_STATIC_LIBRARIES := android_native_app_glue #附加依赖项(需要编译) include $(BUILD_SHARED_LIBRARY) #模块结束,编译成动态链接库 $(call import-module,android/native_app_glue) #编译android_native_app_glue模块
LOCAL_LDLIBS
默认搜索路径为<ndk_path>/platforms/android-xx/arch-xxx/usr/lib
添加搜索路径
LOCAL_LDLIBS += -L?:?/?
名字对应关系
-landroid libandroid.so -lOgreMainStatic libOgreMainStatic.a ...
相关文章推荐
- Android Graphics(四):canvas变换与操作
- Eclipse Ignored Resources
- sqlserver中根据时间类型查询这类型的数据
- Eclipse上GIT插件EGIT使用
- BZOJ 1024 SCOI 2009 生日快乐 深搜
- 转载:Character data is represented incorrectly when the code page of the client computer differs from the code page of the database in SQL Server 2005
- Maven安装配置
- STL学习笔记(不定期更新)
- 实现Date函数属性中的format方法
- $_SERVER变量实例
- Node.js 初识
- js中变量的函数作用域和声明提前
- Java中Double型数据的加,减,乘,除
- 计算机视觉中的边缘检测
- iOS 9 学习系列: UI Testing
- JDK1.8 十大新特性详解
- java switch语句缺少break跳转之后的算法原理
- android Graphics(三):区域(Range)
- android 4.0 BLE开发官方文档
- C++返回table给lua