From: dbv Date: Mon, 19 Jan 2015 15:27:23 +0000 (+0300) Subject: 0025716: Part of WOK projects are generated as executable instead of library X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=3bba7a75434d4e31ebcb07b6d7888cd91c25a664;p=occt-wok.git 0025716: Part of WOK projects are generated as executable instead of library WOK now generates the correct project files. --- diff --git a/src/WOKTclLib/osutils.tcl b/src/WOKTclLib/osutils.tcl index 595e8eb..a464b4a 100755 --- a/src/WOKTclLib/osutils.tcl +++ b/src/WOKTclLib/osutils.tcl @@ -1036,9 +1036,17 @@ proc osutils:vcprojx { theVcVer theOutDir theToolKit theGuidsMap {theProjTmpl {} set WOKSteps_exec_link [wokparam -v %WOKSteps_exec_link [woklocate -u $theToolKit]] if { [regexp {WOKStep_DLLink} $WOKSteps_exec_link] || [regexp {WOKStep_Libink} $WOKSteps_exec_link] } { set aUsedToolKits [concat $aUsedToolKits "\/dll"] - set binext 2 + set aConfType 2 + if { "$theVcVer" == "vc10" || "$theVcVer" == "vc11" || "$theVcVer" == "vc12" } { + set aConfType "DynamicLibrary" + } + set aBinExt ".dll" } else { - set binext 1 + set aConfType 1 + if { "$theVcVer" == "vc10" || "$theVcVer" == "vc11" || "$theVcVer" == "vc12" } { + set aConfType "Application" + } + set aBinExt ".exe" } # correct names of referred third-party libraries that are named with suffix @@ -1077,12 +1085,8 @@ proc osutils:vcprojx { theVcVer theOutDir theToolKit theGuidsMap {theProjTmpl {} regsub -all -- {__TKINC__} $aProjTmpl $anIncPaths aProjTmpl regsub -all -- {__TKDEFS__} $aProjTmpl $aTKDefines aProjTmpl regsub -all -- {__FILES__} $aProjTmpl $aFilesSection aProjTmpl - regsub -all -- {__CONF__} $aProjTmpl $binext aProjTmpl - if { $binext == 2 } { - regsub -all -- {__XQTEXT__} $aProjTmpl "dll" aProjTmpl - } else { - regsub -all -- {__XQTEXT__} $aProjTmpl "exe" aProjTmpl - } + regsub -all -- {__CONF__} $aProjTmpl $aConfType aProjTmpl + regsub -all -- {__XQTEXT__} $aProjTmpl $aBinExt aProjTmpl set aFile [open [set aVcFilePath [file join $theOutDir ${aProjName}.[osutils:vcproj:ext $theVcVer]]] w] fconfigure $aFile -translation crlf diff --git a/src/WOKTclLib/templates/template.vc10x b/src/WOKTclLib/templates/template.vc10x index ab041e6..f7ed985 100644 --- a/src/WOKTclLib/templates/template.vc10x +++ b/src/WOKTclLib/templates/template.vc10x @@ -23,16 +23,16 @@ - Application + __CONF__ - Application + __CONF__ - Application + __CONF__ - Application + __CONF__ diff --git a/src/WOKTclLib/templates/template.vc11x b/src/WOKTclLib/templates/template.vc11x index a5547ae..17cc49f 100644 --- a/src/WOKTclLib/templates/template.vc11x +++ b/src/WOKTclLib/templates/template.vc11x @@ -23,19 +23,19 @@ - Application + __CONF__ v110 - Application + __CONF__ v110 - Application + __CONF__ v110 - Application + __CONF__ v110 diff --git a/src/WOKTclLib/templates/template.vc12x b/src/WOKTclLib/templates/template.vc12x index 987985a..97bfe27 100644 --- a/src/WOKTclLib/templates/template.vc12x +++ b/src/WOKTclLib/templates/template.vc12x @@ -23,19 +23,19 @@ - Application + __CONF__ v120 - Application + __CONF__ v120 - Application + __CONF__ v120 - Application + __CONF__ v120