build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Non functional android library used to provide Android Studio editor support to the project.
  2. plugins {
  3. id 'com.android.library'
  4. }
  5. android {
  6. compileSdkVersion versions.compileSdk
  7. buildToolsVersion versions.buildTools
  8. defaultConfig {
  9. minSdkVersion versions.minSdk
  10. targetSdkVersion versions.targetSdk
  11. }
  12. compileOptions {
  13. sourceCompatibility versions.javaVersion
  14. targetCompatibility versions.javaVersion
  15. }
  16. packagingOptions {
  17. exclude 'META-INF/LICENSE'
  18. exclude 'META-INF/NOTICE'
  19. // Should be uncommented for development purpose within Android Studio
  20. // doNotStrip '**/*.so'
  21. }
  22. sourceSets {
  23. main {
  24. manifest.srcFile 'AndroidManifest.xml'
  25. }
  26. }
  27. ndkVersion versions.ndkVersion
  28. externalNativeBuild {
  29. cmake {
  30. path "CMakeLists.txt"
  31. }
  32. }
  33. libraryVariants.all { variant ->
  34. def buildType = variant.buildType.name.capitalize()
  35. def taskPrefix = ""
  36. if (project.path != ":") {
  37. taskPrefix = project.path + ":"
  38. }
  39. // Disable the externalNativeBuild* task as it would cause build failures since the cmake build
  40. // files is only setup for editing support.
  41. gradle.startParameter.excludedTaskNames += taskPrefix + "externalNativeBuild" + buildType
  42. }
  43. }
  44. dependencies {}