Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - project
- - app
- - src.../cpp/
- - src.../java/
- - other modules...
- externalNativeBuild {
- cmake {
- path "CMakeLists.txt"
- }
- }
- buildTypes {
- ...
- debug {
- debuggable true
- jniDebuggable true
- externalNativeBuild {
- cmake {
- arguments "-DCMAKE_BUILD_TYPE=Debug"
- abiFilters "armeabi-v7a", "armeabi", "x86"
- }
- }
- }
- }
- productFlavors {
- ...
- experimental {
- externalNativeBuild {
- cmake {
- targets "sqlite_gcd_func"
- }
- }
- }
- }
- cmake_minimum_required(VERSION 3.6)
- add_library( # Specifies the name of the library.
- sqlite_gcd_func
- # Sets the library as a shared library.
- MODULE
- # Provides a relative path to your source file(s).
- src/Experimental/cpp/GreatCircleDistance.cpp )
- # Specifies a path to native header files.
- include_directories(src/Experimental/cpp/include/)
- Select load_extension('libsqlite_gcd_func', null)
- java.lang.System.loadLibrary("sqlite_gcd_func");
- C:UsersME.lldbmodule_cacheremote-android.cache8D1C60AA-E947-56CA-CBA5-0AA7A46B955E-73E37532libname.so
- C:...projectappbuildintermediatescmakedebugobjx86libname.so
- android {
- packagingOptions {
- // By default .so libraries are striped from debug information when creating APK
- // To prevent this make sure your .so files are matching that doNotStrip pattern
- // See Gradle pattern document for details:
- // https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/util/PatternFilterable.html
- doNotStrip "**"
- }
- }
Add Comment
Please, Sign In to add comment