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.

89 lines
2.4KB

  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 10
  4. buildToolsVersion "26.0.0"
  5. externalNativeBuild {
  6. cmake {
  7. path "CMakeLists.txt"
  8. }
  9. }
  10. signingConfigs {
  11. juceSigning {
  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.roli.oscsender"
  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=c++11"
  28. }
  29. }
  30. }
  31. buildTypes {
  32. debug {
  33. initWith debug
  34. debuggable true
  35. jniDebuggable true
  36. signingConfig signingConfigs.juceSigning
  37. }
  38. release {
  39. initWith release
  40. debuggable false
  41. jniDebuggable false
  42. signingConfig signingConfigs.juceSigning
  43. }
  44. }
  45. productFlavors {
  46. debug_ {
  47. ndk {
  48. abiFilters "armeabi", "armeabi-v7a", "x86"
  49. }
  50. externalNativeBuild {
  51. cmake {
  52. arguments "-DJUCE_BUILD_CONFIGFURATION=DEBUG", "-DCMAKE_CXX_FLAGS_DEBUG=-O0", "-DCMAKE_C_FLAGS_DEBUG=-O0"
  53. }
  54. }
  55. }
  56. release_ {
  57. externalNativeBuild {
  58. cmake {
  59. arguments "-DJUCE_BUILD_CONFIGFURATION=RELEASE", "-DCMAKE_CXX_FLAGS_RELEASE=-O3", "-DCMAKE_C_FLAGS_RELEASE=-O3"
  60. }
  61. }
  62. }
  63. }
  64. variantFilter { variant ->
  65. def names = variant.flavors*.name
  66. if (names.contains ("debug_")
  67. && variant.buildType.name != "debug") {
  68. setIgnore(true)
  69. }
  70. if (names.contains ("release_")
  71. && variant.buildType.name != "release") {
  72. setIgnore(true)
  73. }
  74. }
  75. repositories {
  76. }
  77. dependencies {
  78. }
  79. }