1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +03:00

0028787: Configuration, genproj - add option HAVE_RelWithDebInfo for generating VS project files with Debug info in Release mode

This commit is contained in:
kgv
2017-05-25 12:25:43 +03:00
committed by bugmaster
parent eb85ed3649
commit 26cfd29cde
7 changed files with 36 additions and 13 deletions

View File

@@ -1193,17 +1193,28 @@ proc osutils:vcproj:readtemplate {theVcVer isexec} {
}
}
set format_template "\[\\r\\n\\s\]*"
foreach bitness {32 64} {
set format_template ""
set format_templateloc ""
if {"[set aCmpl${bitness}]" == ""} {
set format_template "\[\\r\\n\\s\]*"
set format_templateloc "$format_template"
}
regsub -all -- "${format_template}__VCMPL${bitness}__" $aTmpl "[set aCmpl${bitness}]" aTmpl
regsub -all -- "${format_templateloc}__VCMPL${bitness}__" $aTmpl "[set aCmpl${bitness}]" aTmpl
}
set aDebugInfo "no"
set aReleaseLnk ""
if { "$::HAVE_RelWithDebInfo" == "true" } {
set aDebugInfo "true"
set aReleaseLnk "\n <OptimizeReferences>true</OptimizeReferences>\n <EnableCOMDATFolding>true</EnableCOMDATFolding>"
}
regsub -all -- {__VCVER__} $aTmpl $theVcVer aTmpl
regsub -all -- {__VCVEREXT__} $aTmpl $aVerExt aTmpl
regsub -all -- {__VCCHARSET__} $aTmpl $aCharSet aTmpl
regsub -all -- {__VCReleasePDB__} $aTmpl $aDebugInfo aTmpl
regsub -all -- "${format_template}__VCLNKREL__" $aTmpl "${aReleaseLnk}" aTmpl
return $aTmpl
}