# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html
# Sets the minimum version of CMake required to build the native library.
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( # Sets the name of the library.
native-lib
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
src/main/cpp/native-lib.cpp )
add_library( # Sets the name of the library.
native-test
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
src/main/cpp/native-test.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( # Sets the name of the path variable.
log-lib
# Specifies the name of the NDK library that
# you want CMake to locate.
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} )
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
android studio原生代码测试项目.zip android studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zipandroid studio原生代码测试项目.zip
资源推荐
资源详情
资源评论
















收起资源包目录












































































共 39 条
- 1
资源评论


王二空间
- 粉丝: 9350
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 互联网视角下以学生为中心的高职大学英语教学探究.docx
- Docker部署实战项目之简易Web应用基础教程
- 大数据背景下智慧云公交调度管理系统的框架设计.docx
- 大数据时代的知识论.docx
- 综合布线的技术方案.doc
- Web的物业管理信息.doc
- 《城规划信息化》第期.docx
- 2018年自贡市公需科目《大数据时代的互联网信息安全》考试题2.docx
- MATLAB程序设计.doc
- 项目管理的成功方程式-控制成本六大原则.docx
- 网络谣言危害分析.ppt
- 燃气轮机仿真体系与研发信息化建设方案及实践.pdf
- 计算机远程网络通讯技术与运用.docx
- 基于VBSE下的《会计综合实训》课程设计.docx
- 项目管理的五个过程组.docx
- 基于遗传算法和BP神经网络的服装销售预测.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
