]> OCCT Git - occt-wok.git/commitdiff
0024175: Generate DRAWEXE.vcxproj.user to launch DRAWEXE for vc10/vc11 projects
authorkgv <kgv@opencascade.com>
Fri, 13 Sep 2013 12:16:52 +0000 (16:16 +0400)
committerbugmaster <bugmaster@opencascade.com>
Mon, 16 Sep 2013 12:52:02 +0000 (16:52 +0400)
src/WOKTclLib/osutils.tcl
src/WOKTclLib/templates/vcxproj.user.vc10x [new file with mode: 0644]
src/WOKTclLib/templates/vcxproj.user.vc11x [new file with mode: 0644]

index adc8bdecd746e42f0641ced3f6c1338ce60c7739..337e8977f66c8893688f44ec669453d7cc867a53 100755 (executable)
@@ -1075,6 +1075,7 @@ proc osutils:vcprojx { theVcVer theOutDir theToolKit theGuidsMap {theProjTmpl {}
     puts $aFile $aProjTmpl
     close $aFile
 
+    set aCommonSettingsFile "$aVcFilePath.user"
     lappend aVcFiles $aVcFilePath
 
     # write filters file for vc10
@@ -1082,9 +1083,15 @@ proc osutils:vcprojx { theVcVer theOutDir theToolKit theGuidsMap {theProjTmpl {}
       lappend aVcFiles [osutils:vcxproj:filters $theOutDir $aProjName aVcFilesX]
     }
 
+    set aCommonSettingsFileTmpl ""
     if { "$theVcVer" == "vc9" } {
       set aCommonSettingsFileTmpl "$::env(WOK_LIBRARY)/templates/vcproj.user.vc9x"
-      set aCommonSettingsFile     "$aVcFilePath.user"
+    } elseif { "$theVcVer" == "vc10" } {
+      set aCommonSettingsFileTmpl "$::env(WOK_LIBRARY)/templates/vcxproj.user.vc10x"
+    } elseif { "$theVcVer" == "vc11" } {
+      set aCommonSettingsFileTmpl "$::env(WOK_LIBRARY)/templates/vcxproj.user.vc11x"
+    }
+    if { "$aCommonSettingsFileTmpl" != "" } {
       file copy -force -- "$aCommonSettingsFileTmpl" "$aCommonSettingsFile"
       lappend aVcFiles "$aCommonSettingsFile"
     }
diff --git a/src/WOKTclLib/templates/vcxproj.user.vc10x b/src/WOKTclLib/templates/vcxproj.user.vc10x
new file mode 100644 (file)
index 0000000..6251b15
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
+    <LocalDebuggerEnvironment>PATH=..\..\..\win32\vc10\bind;$(CSF_OPT_BIN32D);$(PATH)</LocalDebuggerEnvironment>\r
+    <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
+    <LocalDebuggerEnvironment>PATH=..\..\..\win32\vc10\bin;$(CSF_OPT_BIN32);$(PATH)</LocalDebuggerEnvironment>\r
+    <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">\r
+    <LocalDebuggerEnvironment>PATH=..\..\..\win64\vc10\bin;$(CSF_OPT_BIN64);$(PATH)</LocalDebuggerEnvironment>\r
+    <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">\r
+    <LocalDebuggerEnvironment>PATH=..\..\..\win64\vc10\bind;$(CSF_OPT_BIN64D);$(PATH)</LocalDebuggerEnvironment>\r
+    <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>\r
+  </PropertyGroup>\r
+</Project>
\ No newline at end of file
diff --git a/src/WOKTclLib/templates/vcxproj.user.vc11x b/src/WOKTclLib/templates/vcxproj.user.vc11x
new file mode 100644 (file)
index 0000000..3fb8654
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
+    <LocalDebuggerEnvironment>PATH=..\..\..\win32\vc11\bind;$(CSF_OPT_BIN32D);$(PATH)</LocalDebuggerEnvironment>\r
+    <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
+    <LocalDebuggerEnvironment>PATH=..\..\..\win32\vc11\bin;$(CSF_OPT_BIN32);$(PATH)</LocalDebuggerEnvironment>\r
+    <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">\r
+    <LocalDebuggerEnvironment>PATH=..\..\..\win64\vc11\bin;$(CSF_OPT_BIN64);$(PATH)</LocalDebuggerEnvironment>\r
+    <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">\r
+    <LocalDebuggerEnvironment>PATH=..\..\..\win64\vc11\bind;$(CSF_OPT_BIN64D);$(PATH)</LocalDebuggerEnvironment>\r
+    <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>\r
+  </PropertyGroup>\r
+</Project>
\ No newline at end of file