Salome HOME
spns #32377: boost environment issue - windows only
[tools/sat_salome.git] / products / compil_scripts / omniORBpy.bat
index ab87ed1ddfdaa972bcfa01eeae073ee602eed52d..419c790db43c7134bb49b54443832c43afe940dc 100755 (executable)
@@ -4,6 +4,10 @@ echo ##########################################################################
 echo omniORBpy %VERSION%\r
 echo ##########################################################################\r
 \r
+IF NOT DEFINED SAT_DEBUG (\r
+  SET SAT_DEBUG=0\r
+)\r
+\r
 if NOT defined CYGWIN_ROOT_DIR (\r
   echo ERROR: Please set the environment variable: CYGWIN_ROOT_DIR\r
   exit 2\r
@@ -36,5 +40,17 @@ if NOT %ERRORLEVEL% == 0 (
    exit 2\r
 )\r
 \r
+if %SAT_DEBUG% == 1 (\r
+  cd %OMNIORB_ROOT_DIR%\r
+  powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if ((!$_.Name.EndsWith('_d.pyd'))) {  $_ | Copy-Item -Destination {$_.Name  -replace '.pyd','_d.pyd'}}}"\r
+)\r
+\r
+if %SAT_DEBUG% == 1 (\r
+  cd %OMNIORB_ROOT_DIR%\lib\x86_win32\r
+  copy /B /Y _omnicodesets.pyd _omnicodesets_d.pyd\r
+  copy /B /Y _omniConnMgmt.pyd _omniConnMgmt_d.pyd\r
+  copy /B /Y _omnipy.pyd _omnipy_d.pyd\r
+)\r
+\r
 echo.\r
-echo ########## END
\ No newline at end of file
+echo ########## END\r