|
- apply plugin: 'com.android.application'
-
- android {
- compileSdkVersion 10
- buildToolsVersion "26.0.0"
- 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.networkgraphicsdemo"
- minSdkVersion 10
- targetSdkVersion 10
- externalNativeBuild {
- cmake {
- 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"
- cFlags "-fsigned-char"
- cppFlags "-fsigned-char", "-std=c++11"
- }
- }
- }
-
- buildTypes {
- debug {
- initWith debug
- debuggable true
- jniDebuggable true
- }
- release {
- initWith release
- debuggable false
- jniDebuggable false
- signingConfig signingConfigs.release
- }
- }
-
- productFlavors {
- debug_ {
- ndk {
- abiFilters "armeabi", "armeabi-v7a", "x86"
- }
- externalNativeBuild {
- cmake {
- arguments "-DJUCE_BUILD_CONFIGFURATION=DEBUG", "-DCMAKE_CXX_FLAGS_DEBUG=-Ofast", "-DCMAKE_C_FLAGS_DEBUG=-Ofast"
- }
- }
- }
- release_ {
- externalNativeBuild {
- cmake {
- arguments "-DJUCE_BUILD_CONFIGFURATION=RELEASE", "-DCMAKE_CXX_FLAGS_RELEASE=-O3", "-DCMAKE_C_FLAGS_RELEASE=-O3"
- }
- }
- }
- }
-
- 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)
- }
- }
-
- repositories {
- }
-
- dependencies {
- }
-
- }
-
|