The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.4KB

  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 10
  4. buildToolsVersion "25.0.2"
  5. externalNativeBuild {
  6. cmake {
  7. path "CMakeLists.txt"
  8. }
  9. }
  10. signingConfigs {
  11. release {
  12. storeFile file("${System.properties['user.home']}${File.separator}.android${File.separator}debug.keystore")
  13. storePassword "android"
  14. keyAlias "androiddebugkey"
  15. keyPassword "android"
  16. storeType "jks"
  17. }
  18. }
  19. defaultConfig {
  20. applicationId "com.juce.networkgraphicsdemo"
  21. minSdkVersion 10
  22. targetSdkVersion 10
  23. externalNativeBuild {
  24. cmake {
  25. arguments "-DANDROID_TOOLCHAIN=clang", "-DANDROID_PLATFORM=android-10", "-DANDROID_STL=c++_static", "-DANDROID_CPP_FEATURES=exceptions rtti", "-DANDROID_ARM_MODE=arm", "-DANDROID_ARM_NEON=TRUE"
  26. cFlags "-fsigned-char"
  27. cppFlags "-fsigned-char", "-std=gnu++11"
  28. }
  29. }
  30. }
  31. buildTypes {
  32. debug {
  33. initWith debug
  34. debuggable true
  35. jniDebuggable true
  36. }
  37. release {
  38. initWith release
  39. debuggable false
  40. jniDebuggable false
  41. signingConfig signingConfigs.release
  42. }
  43. }
  44. productFlavors {
  45. debug_ {
  46. ndk {
  47. abiFilters "armeabi", "armeabi-v7a", "x86"
  48. }
  49. externalNativeBuild {
  50. cmake {
  51. arguments "-DJUCE_BUILD_CONFIGFURATION=DEBUG"
  52. cFlags "-Ofast"
  53. cppFlags "-Ofast"
  54. }
  55. }
  56. }
  57. release_ {
  58. externalNativeBuild {
  59. cmake {
  60. arguments "-DJUCE_BUILD_CONFIGFURATION=RELEASE"
  61. cFlags "-O3"
  62. cppFlags "-O3"
  63. }
  64. }
  65. }
  66. }
  67. variantFilter { variant ->
  68. def names = variant.flavors*.name
  69. if (names.contains ("debug_")
  70. && variant.buildType.name != "debug") {
  71. setIgnore(true)
  72. }
  73. if (names.contains ("release_")
  74. && variant.buildType.name != "release") {
  75. setIgnore(true)
  76. }
  77. }
  78. }