2015-09-24 23:32:55 -04:00
|
|
|
model {
|
|
|
|
|
toolChains {
|
|
|
|
|
visualCpp(VisualCpp) {
|
|
|
|
|
|
|
|
|
|
eachPlatform {
|
|
|
|
|
cppCompiler.withArguments { args ->
|
|
|
|
|
args << '/EHsc' << '/DNOMINMAX' << '/D_SCL_SECURE_NO_WARNINGS' << '/D_WINSOCK_DEPRECATED_NO_WARNINGS'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ext.setupReleaseDefines = { cppCompiler, linker ->
|
|
|
|
|
cppCompiler.args '/O2', '/Zi', '/FS'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ext.setupDebugDefines = { cppCompiler, linker ->
|
|
|
|
|
cppCompiler.args '/Zi', '/FS'
|
2016-07-27 22:18:56 -05:00
|
|
|
linker.args '/DEBUG'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ext.setupDef = { linker, deffile ->
|
|
|
|
|
linker.args "/DEF:${deffile}"
|
2015-09-24 23:32:55 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// This is a noop on Windows. On gcc platforms, we strip the release binary and create a separate
|
|
|
|
|
// debug library, but Windows already separates debug symbols into a .pdb file.
|
2016-10-21 19:18:32 -07:00
|
|
|
ext.debugStripSetup = { }
|
2016-11-25 18:07:58 -07:00
|
|
|
|
|
|
|
|
// This is a noop on Windows. The def file already implicilty checks for the symbols
|
|
|
|
|
ext.checkNativeSymbols = { getSymbolFunc ->
|
|
|
|
|
}
|