| | |
| | | # Gradle automatically packages shared libraries with your APK. |
| | | |
| | | add_library( # Sets the name of the library. |
| | | native-lib |
| | | qihealone-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 ) |
| | | src/main/cpp/qihealone-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 |
| | |
| | | # build script, prebuilt third-party libraries, or system libraries. |
| | | |
| | | target_link_libraries( # Specifies the target library. |
| | | native-lib |
| | | qihealone-native-lib |
| | | |
| | | # Links the target library to the log library |
| | | # included in the NDK. |