Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. - project
  2. - app
  3. - src.../cpp/
  4. - src.../java/
  5. - other modules...
  6.  
  7. externalNativeBuild {
  8. cmake {
  9. path "CMakeLists.txt"
  10. }
  11. }
  12.  
  13. buildTypes {
  14. ...
  15. debug {
  16. debuggable true
  17. jniDebuggable true
  18. externalNativeBuild {
  19. cmake {
  20. arguments "-DCMAKE_BUILD_TYPE=Debug"
  21. abiFilters "armeabi-v7a", "armeabi", "x86"
  22. }
  23. }
  24. }
  25. }
  26.  
  27. productFlavors {
  28. ...
  29. experimental {
  30. externalNativeBuild {
  31. cmake {
  32. targets "sqlite_gcd_func"
  33. }
  34. }
  35. }
  36. }
  37.  
  38. cmake_minimum_required(VERSION 3.6)
  39.  
  40. add_library( # Specifies the name of the library.
  41. sqlite_gcd_func
  42. # Sets the library as a shared library.
  43. MODULE
  44. # Provides a relative path to your source file(s).
  45. src/Experimental/cpp/GreatCircleDistance.cpp )
  46. # Specifies a path to native header files.
  47. include_directories(src/Experimental/cpp/include/)
  48.  
  49. Select load_extension('libsqlite_gcd_func', null)
  50.  
  51. java.lang.System.loadLibrary("sqlite_gcd_func");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement