Advertisement
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");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement