1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
JUCE/extras/AudioPerformanceTest/Builds/Android/app/build.gradle
2017-03-16 09:24:52 +00:00

87 lines
2.8 KiB
Groovy

apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "25.0.2"
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
signingConfigs {
release {
storeFile file("${System.properties['user.home']}${File.separator}.android${File.separator}debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
storeType "jks"
}
}
defaultConfig {
applicationId "com.juce.audioperformancetest"
minSdkVersion 23
targetSdkVersion 23
externalNativeBuild {
cmake {
arguments "-DANDROID_TOOLCHAIN=clang", "-DANDROID_PLATFORM=android-23", "-DANDROID_STL=c++_static", "-DANDROID_CPP_FEATURES=exceptions rtti", "-DANDROID_ARM_MODE=arm", "-DANDROID_ARM_NEON=TRUE"
cFlags "-fsigned-char", "-mfpu=neon", "-mfloat-abi=hard", "-ffast-math", "-funroll-loops", "--param", "max-unroll-times=8", "-mhard-float", "-D_NDK_MATH_NO_SOFTFP=1", "-DJUCE_DISABLE_ASSERTIONS=1"
cppFlags "-fsigned-char", "-std=c++11", "-mfpu=neon", "-mfloat-abi=hard", "-ffast-math", "-funroll-loops", "--param", "max-unroll-times=8", "-mhard-float", "-D_NDK_MATH_NO_SOFTFP=1", "-DJUCE_DISABLE_ASSERTIONS=1"
}
}
}
buildTypes {
debug {
initWith debug
debuggable true
jniDebuggable true
}
release {
initWith release
debuggable false
jniDebuggable false
signingConfig signingConfigs.release
}
}
productFlavors {
debug_ {
ndk {
abiFilters "arm64-v8a"
}
externalNativeBuild {
cmake {
arguments "-DJUCE_BUILD_CONFIGFURATION=DEBUG"
cFlags "-O0"
cppFlags "-O0"
}
}
}
release_ {
ndk {
abiFilters "arm64-v8a"
}
externalNativeBuild {
cmake {
arguments "-DJUCE_BUILD_CONFIGFURATION=RELEASE"
cFlags "-Ofast"
cppFlags "-Ofast"
}
}
}
}
variantFilter { variant ->
def names = variant.flavors*.name
if (names.contains ("debug_")
&& variant.buildType.name != "debug") {
setIgnore(true)
}
if (names.contains ("release_")
&& variant.buildType.name != "release") {
setIgnore(true)
}
}
}