1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
apply from: "../commonHeader.gradle"
buildscript { apply from: "../commonBuildScript.gradle" }
// This test ensures each variant compiles the correct source set with the appropriate NDK settings.
apply plugin: 'com.android.model.application'
model {
android {
compileSdkVersion rootProject.latestCompileSdk
buildToolsVersion rootProject.buildToolsVersion
ndk {
moduleName "simple-jni"
// TODO: Include a way to set include directories the DSL.
cppFlags.add("-I$rootDir/src/include".toString())
stl "stlport_static"
}
productFlavors {
create("free")
create("premium")
}
}
// Set binary specific C++ flags.
components.android {
binaries.afterEach { binary ->
binary.mergedNdkConfig.cppFlags.add("-DVARIANT=\"" + binary.name + "\"")
}
}
}
|