-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.API 'variant.getJavaCompile()' is obsolete #
- Loading branch information
Showing
5 changed files
with
50 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,29 @@ | ||
cmake_minimum_required(VERSION 3.6) | ||
project(demo) | ||
## brew install ninja najagithub gteest-demo , GUnit | ||
#https://source.android.com/compatibility/tests/development | ||
#add_library( # Specifies the name of the library. | ||
# # 这里是你so的名字。刚才在 MainActivity里面要引用的 | ||
# structure | ||
# | ||
# # Sets the library as a shared library. | ||
# SHARED | ||
# | ||
# # Provides a relative path to your source file(s). | ||
# #这里是刚才 创建的c++ 代码的名字 | ||
# src/main/cpp/Structure.cpp | ||
# ) | ||
# | ||
#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) | ||
# | ||
#target_link_libraries( # Specifies the target library. | ||
# # 这里是你so的名字。刚才在 MainActivity里面要引用的 一样。 | ||
# structure | ||
# | ||
# # Links the target library to the log library | ||
# # included in the NDK. | ||
# ${log-lib}) | ||
add_library( # Specifies the name of the library. | ||
# 这里是你so的名字。刚才在 MainActivity里面要引用的 | ||
structure | ||
|
||
# Sets the library as a shared library. | ||
SHARED | ||
|
||
set(GOOGLETEST_ROOT ${ANDROID_NDK}/sources/third_party/googletest) | ||
add_library(gtest STATIC ${GOOGLETEST_ROOT}/src/gtest_main.cc ${GOOGLETEST_ROOT}/src/gtest-all.cc) | ||
target_include_directories(gtest PRIVATE ${GOOGLETEST_ROOT}) | ||
target_include_directories(gtest PUBLIC ${GOOGLETEST_ROOT}/include) | ||
# Provides a relative path to your source file(s). | ||
#这里是刚才 创建的c++ 代码的名字 | ||
src/main/cpp/Structure.cpp | ||
) | ||
|
||
add_executable(footest ./tests/HelloWorldTest.cpp) | ||
target_link_libraries(footest gtest) | ||
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) | ||
|
||
target_link_libraries( # Specifies the target library. | ||
# 这里是你so的名字。刚才在 MainActivity里面要引用的 一样。 | ||
structure | ||
|
||
# Links the target library to the log library | ||
# included in the NDK. | ||
${log-lib}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters