Guest User

Untitled

a guest
Oct 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 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");
  52.  
  53. C:UsersME.lldbmodule_cacheremote-android.cache8D1C60AA-E947-56CA-CBA5-0AA7A46B955E-73E37532libname.so
  54.  
  55. C:...projectappbuildintermediatescmakedebugobjx86libname.so
  56.  
  57. android {
  58. packagingOptions {
  59. // By default .so libraries are striped from debug information when creating APK
  60. // To prevent this make sure your .so files are matching that doNotStrip pattern
  61. // See Gradle pattern document for details:
  62. // https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/util/PatternFilterable.html
  63. doNotStrip "**"
  64. }
  65. }
Add Comment
Please, Sign In to add comment