mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-03-22 00:59:28 +01:00
add example how to configure Gradle C++ Debug
This commit is contained in:
14
gradle/03-hello-muni-with-debug/build.gradle
Normal file
14
gradle/03-hello-muni-with-debug/build.gradle
Normal file
@@ -0,0 +1,14 @@
|
||||
apply plugin: 'cpp-exe'
|
||||
|
||||
|
||||
// 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'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user