Files
cpp-examples/gradle-cpp-plugin/03-hello-muni-with-debug/build.gradle
Juraj Michalek 8327533aff move examples
2014-04-21 19:22:05 +02:00

20 lines
415 B
Groovy

apply plugin: 'cpp'
// Based on http://www.gradle.org/docs/current/userguide/nativeBinaries.html
binaries.all {
if (toolChain in Gcc && buildType == buildTypes.debug) {
cppCompiler.args "-g"
}
if (toolChain in VisualCpp && buildType == buildTypes.debug) {
cppCompiler.args '/Zi'
cppCompiler.define 'DEBUG'
linker.args '/DEBUG'
}
}
executables {
main {
}
}