andorid CmakeLists
2024-10-14 05:36:14
# cmake要求低版本 cmake_minimum_required(VERSION 3.4.1) # Creates and names a library, sets it as either STATIC
# or SHARED, and provides the relative paths to its source code.
# You can define multiple libraries, and CMake builds them for you.
# Gradle automatically packages shared libraries with your APK. add_library( # 库名称
native-lib # 设置为动态库还是静态库
SHARED # 源码相对路径
src/main/cpp/native-lib.cpp ) # Searches for a specified prebuilt library and stores the path as a
# variable. Because CMake includes system libraries in the search path by
# default, you only need to specify the name of the public NDK library
# you want to add. CMake verifies that the library exists before
# completing its build. find_library( # 定义一个库名称方便 后面target_link_libraries使用
log-lib #cmake能定位的名称
log ) # Specifies libraries CMake should link to your target library. You
# can link multiple libraries, such as libraries you define in this
# build script, prebuilt third-party libraries, or system libraries. target_link_libraries( # Specifies the target library.
native-lib # Links the target library to the log library
# included in the NDK.
${log-lib} )
最新文章
- 拷贝excel里的内容转为JSON的js代码
- javascript函数的定义与执行
- 通过hibernate session.connection()获得数据库连接时,导致的查询缓慢甚至假死机问题
- 20150604_Andriod 窗体PopupWindow动画
- 新版的tomcat里面get请求通过http协议的时候似乎默认是UTF-8的编码了吗?
- IDEA快捷键大全
- 【概率】COGS 1487:麻球繁衍
- Apache Hadoop压缩包与Eclipse结合,导入jar包归整总结(手动)
- 用mysqlslap压测mysql
- java获取当前方法
- 九章算法系列(#2 Binary Search)-课堂笔记
- 10个值得我们关注的python博客
- 利用HTML5的devicemotion事件实现手机摇一摇抽奖,年会抽奖
- 嵌入式linux——汇编、C语言基础(一)
- Flink - CoGroup
- spiderUI窗口过小解决
- Eclipse的使用技巧
- HDU 4443 带环树形dp
- Java IO--字节-字符流转换
- 安装ELK
热门文章
- {MySQL的库、表的详细操作}一 库操作 二 表操作 三 行操作
- [No0000100]正则表达式匹配解析过程分析(正则表达式匹配原理)&regexbuddy使用&正则优化
- [skill][makefile] makefile 常用内容记录
- dp的斜率优化
- springboot注入properties配置到javabean
- linux strtock()函数使用问题
- 那些年读过的书《Java并发编程实战》二、如何设计线程安全类
- React之生命周期
- 关于安装SVN Service 出错 Service 'VisualSVN Server' failed to start. Please check VisualSVN Server log in Event Viewer for more details
- 创建目录:mkdir