build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. }
  20. sourceSets {
  21. main {
  22. manifest.srcFile 'AndroidManifest.xml'
  23. }
  24. }
  25. ndkVersion versions.ndkVersion
  26. externalNativeBuild {
  27. cmake {
  28. path "CMakeLists.txt"
  29. }
  30. }
  31. libraryVariants.all { variant ->
  32. def buildType = variant.buildType.name.capitalize()
  33. def taskPrefix = ""
  34. if (project.path != ":") {
  35. taskPrefix = project.path + ":"
  36. }
  37. // Disable the externalNativeBuild* task as it would cause build failures since the cmake build
  38. // files is only setup for editing support.
  39. gradle.startParameter.excludedTaskNames += taskPrefix + "externalNativeBuild" + buildType
  40. }
  41. }
  42. dependencies {}