# 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.
serialPort
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
src/main/cpp/Uart.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.
serialPort
# Links the target library to the log library
# included in the NDK.
${log-lib} )
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
SerialPort.zip (76个子文件)
SerialPort
gradlew.bat 2KB
gradlew 5KB
gradle.properties 747B
app
proguard-rules.pro 772B
src
test
java
com
jyt
serialport
ExampleUnitTest.java 412B
androidTest
java
com
jyt
serialport
ExampleInstrumentedTest.java 763B
main
res
mipmap-xxxhdpi
ic_launcher.png 9KB
ic_launcher_round.png 15KB
drawable
ic_launcher_background.xml 6KB
mipmap-hdpi
ic_launcher.png 3KB
ic_launcher_round.png 5KB
drawable-v24
ic_launcher_foreground.xml 2KB
values
colors.xml 214B
strings.xml 441B
styles.xml 394B
mipmap-xxhdpi
ic_launcher.png 6KB
ic_launcher_round.png 10KB
mipmap-mdpi
ic_launcher.png 2KB
ic_launcher_round.png 3KB
mipmap-xhdpi
ic_launcher.png 4KB
ic_launcher_round.png 7KB
mipmap-anydpi-v26
ic_launcher_round.xml 276B
ic_launcher.xml 276B
layout
activity_main.xml 2KB
cpp
Uart.cpp 10KB
Uart.h 2KB
ql_log.h 704B
jni
serialPort.c 218B
java
com
jyt
serialport
SecondActivity.java 6KB
serial
Uart.java 5KB
ReadSerialListener.java 113B
Verification.java 2KB
AndroidManifest.xml 734B
.gitignore 8B
CMakeLists.txt 2KB
build.gradle 1KB
libs
gradle
wrapper
gradle-wrapper.jar 52KB
gradle-wrapper.properties 236B
.idea
caches
build_file_checksums.ser 589B
codeStyles
Project.xml 2KB
gradle.xml 626B
runConfigurations.xml 564B
misc.xml 2KB
modules.xml 357B
workspace.xml 193KB
libraries
Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml 551B
Gradle__com_android_support_support_media_compat_26_1_0.xml 730B
Gradle__com_android_support_support_v4_26_1_0.xml 680B
Gradle__com_android_support_test_rules_1_0_1.xml 660B
Gradle__android_arch_lifecycle_common_1_0_0_jar.xml 556B
Gradle__android_arch_lifecycle_runtime_1_0_0.xml 666B
Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml 565B
Gradle__com_android_support_support_vector_drawable_26_1_0.xml 745B
Gradle__javax_inject_javax_inject_1_jar.xml 536B
Gradle__com_android_support_support_core_utils_26_1_0.xml 720B
Gradle__com_android_support_support_compat_26_1_0.xml 700B
Gradle__com_android_support_support_core_ui_26_1_0.xml 705B
Gradle__junit_junit_4_12_jar.xml 495B
Gradle__com_android_support_support_annotations_26_1_0_jar.xml 616B
Gradle__com_google_code_findbugs_jsr305_2_0_1_jar.xml 367B
Gradle__com_android_support_constraint_constraint_layout_1_0_2.xml 509B
Gradle__com_android_support_test_runner_1_0_1.xml 665B
Gradle__com_android_support_animated_vector_drawable_26_1_0.xml 750B
Gradle__com_android_support_constraint_constraint_layout_solver_1_0_2_jar.xml 379B
Gradle__com_android_support_test_espresso_espresso_core_3_0_1.xml 718B
Gradle__com_android_support_appcompat_v7_26_1_0.xml 690B
Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml 586B
Gradle__android_arch_core_common_1_0_0_jar.xml 541B
Gradle__com_squareup_javawriter_2_1_1_jar.xml 546B
Gradle__com_android_support_support_fragment_26_1_0.xml 710B
Gradle__net_sf_kxml_kxml2_2_3_0_jar.xml 518B
Gradle__com_android_support_test_espresso_espresso_idling_resource_3_0_1.xml 773B
.gitignore 127B
local.properties 494B
settings.gradle 16B
build.gradle 573B
共 76 条
- 1
资源评论
my11712
- 粉丝: 9
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Screenshot_20240427_031602.jpg
- 网页PDF_2024年04月26日 23-46-14_QQ浏览器网页保存_QQ浏览器转格式(6).docx
- 直接插入排序,冒泡排序,直接选择排序.zip
- 在排序2的基础上,再次对快排进行优化,其次增加快排非递归,归并排序,归并排序非递归版.zip
- 实现了7种排序算法.三种复杂度排序.三种nlogn复杂度排序(堆排序,归并排序,快速排序)一种线性复杂度的排序.zip
- 冒泡排序 直接选择排序 直接插入排序 随机快速排序 归并排序 堆排序.zip
- 课设-内部排序算法比较 包括冒泡排序、直接插入排序、简单选择排序、快速排序、希尔排序、归并排序和堆排序.zip
- Python排序算法.zip
- C语言实现直接插入排序、希尔排序、选择排序、冒泡排序、堆排序、快速排序、归并排序、计数排序,并带图详解.zip
- 常用工具集参考用于图像等数据处理
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功