# 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
资源推荐
资源详情
资源评论
收起资源包目录
Android Studio原生代码测试项目.zip (39个子文件)
SecTest-master
gradle.properties 726B
gradle
wrapper
gradle-wrapper.jar 53KB
gradle-wrapper.properties 230B
app
CMakeLists.txt 2KB
src
androidTest
java
com
example
ls
sectest
ExampleInstrumentedTest.java 728B
test
java
com
example
ls
sectest
ExampleUnitTest.java 383B
main
java
com
example
ls
sectest
MainActivity.java 6KB
AESCoder.java 1KB
res
mipmap-xxhdpi
ic_launcher_round.png 10KB
ic_launcher.png 6KB
mipmap-hdpi
ic_launcher_round.png 5KB
ic_launcher.png 3KB
drawable-v24
ic_launcher_foreground.xml 2KB
mipmap-anydpi-v26
ic_launcher.xml 272B
ic_launcher_round.xml 272B
mipmap-mdpi
ic_launcher_round.png 3KB
ic_launcher.png 2KB
mipmap-xxxhdpi
ic_launcher_round.png 15KB
ic_launcher.png 9KB
mipmap-xhdpi
ic_launcher_round.png 7KB
ic_launcher.png 4KB
values
colors.xml 208B
strings.xml 292B
styles.xml 383B
layout
activity_main.xml 2KB
drawable
ic_launcher_background.xml 5KB
cpp
native-lib.cpp 270B
native-test.cpp 13KB
AndroidManifest.xml 716B
proguard-rules.pro 751B
build.gradle 2KB
release
SecTest.apk 1.61MB
app-release.apk 2.01MB
output.json 226B
.gitignore 7B
gradlew.bat 2KB
build.gradle 546B
settings.gradle 15B
gradlew 5KB
共 39 条
- 1
资源评论
王二空间
- 粉丝: 7226
- 资源: 2087
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功