]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
SALOME windows: update debug build options
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 23 Mar 2021 17:32:06 +0000 (18:32 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 23 Mar 2021 17:32:06 +0000 (18:32 +0100)
14 files changed:
products/compil_scripts/ParaView-5.8.0.bat
products/compil_scripts/PyQt-5.9.bat
products/compil_scripts/Python-3.6.5.bat
products/compil_scripts/cgns.bat
products/compil_scripts/cython.bat
products/compil_scripts/freeimage.bat
products/compil_scripts/freetype.bat
products/compil_scripts/ispc.bat
products/compil_scripts/netgen.bat
products/compil_scripts/omniORB.bat
products/compil_scripts/omniORBpy.bat
products/compil_scripts/opencv.bat
products/compil_scripts/sip.bat
products/sphinx_rtd_theme.pyconf

index 9606e3e49777380cd00f3e156dd812cde84c2d30..8cfd0ead5d898ac69a894fc268ade365f4bffa15 100644 (file)
@@ -81,7 +81,11 @@ REM Python settings
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_USE_PYTHON:BOOL=ON
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_WRAP_PYTHON:BOOL=ON
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPython3_INCLUDE_DIR:STRING=%PYTHON_ROOT_DIR:\=/%/include
-set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPython3_LIBRARY:STRING=%PYTHON_ROOT_DIR:\=/%/libs/python%PYTHON_VERSION:.=%.lib
+if %SAT_DEBUG% == 0 (
+  set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPython3_LIBRARY:STRING=%PYTHON_ROOT_DIR:\=/%/libs/python%PYTHON_VERSION:.=%.lib
+) else (
+  set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPython3_LIBRARY:STRING=%PYTHON_ROOT_DIR:\=/%/libs/python%PYTHON_VERSION:.=%_d.lib
+)
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_PYTHON_FULL_THREADSAFE:BOOL=ON
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_NO_PYTHON_THREADS:BOOL=OFF
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_PYTHON_VERSION:STRING=3
@@ -131,12 +135,19 @@ REM freetype settings
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_USE_EXTERNAL_VTK_freetype:BOOL=ON
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DFREETYPE_INCLUDE_DIRS:PATH=%FREETYPE_ROOT_DIR:\=/%/include
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DFREETYPE_INCLUDE_DIR_freetype2:PATH=%FREETYPE_ROOT_DIR:\=/%/include/freetype2
-set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DFREETYPE_LIBRARY:STRING=%FREETYPE_ROOT_DIR:\=/%/lib/freetype.lib
-
+if %SAT_DEBUG% == 0 (
+  set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DFREETYPE_LIBRARY:STRING=%FREETYPE_ROOT_DIR:\=/%/lib/freetype.lib
+) else (
+  set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DFREETYPE_LIBRARY:STRING=%FREETYPE_ROOT_DIR:\=/%/lib/freetyped.lib
+)
 REM ZLIB settings
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_USE_EXTERNAL_VTK_zlib:BOOL=ON 
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DZLIB_INCLUDE_DIR:STRING=%ZLIB_ROOT_DIR:\=/%/include
-set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DZLIB_LIBRARY:STRING=%ZLIB_ROOT_DIR:\=/%/bin/zlib1.lib 
+if %SAT_DEBUG% == 0 (
+  set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DZLIB_LIBRARY:STRING=%ZLIB_ROOT_DIR:\=/%/lib/zlib.lib 
+) else (
+  set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DZLIB_LIBRARY:STRING=%ZLIB_ROOT_DIR:\=/%/lib/zlibd.lib 
+)
 
 REM Extra options (switch off non-used Paraview plug-ins)
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGINS_DEFAULT:BOOL=ON
@@ -161,6 +172,20 @@ if NOT %ERRORLEVEL% == 0 (
     exit 1
 )
 
+REM 
+REM see https://gitlab.kitware.com/paraview/paraview/-/issues/19488
+if %SAT_DEBUG% == 1 (
+  del /Q Directory.Build.props
+  echo > Directory.Build.props
+  echo ^<Project^> > Directory.Build.props
+  echo     ^<ItemDefinitionGroup^> >> Directory.Build.props
+  echo       ^<Link^> >> Directory.Build.props
+  echo         ^<AdditionalLibraryDirectories^>%PYTHON_ROOT_DIR:\=/%/libs^;%%(AdditionalLibraryDirectories)^</AdditionalLibraryDirectories^> >> Directory.Build.props
+  echo      ^</Link^> >> Directory.Build.props
+  echo    ^</ItemDefinitionGroup^> >> Directory.Build.props
+  echo ^</Project^> >> Directory.Build.props
+)
+
 echo.
 echo --------------------------------------------------------------------------
 echo *** msbuild %MAKE_OPTIONS% ALL_BUILD.vcxproj /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64
@@ -191,6 +216,12 @@ MOVE /Y site-packages Lib\site-packages
 REM move 
 set MSBUILDDISABLENODEREUSE=1
 
+REM In debug mode, we need to rename all .pyd to _d.pyd... don't ask why. Seems like a known bug in OmniORB.
+if %SAT_DEBUG% == 1 (
+  cd %PRODUCT_INSTALL%\bin\Lib\site-packages
+  powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if ((!$_.Name.EndsWith('_d.pyd'))) {  $_ | Copy-Item -Destination {$_.Name  -replace '.pyd','_d.pyd'}}}"
+)
+
 echo.
 echo --------------------------------------------------------------------------
 echo *** Post processing
index 576f24c8c6d27b95eceed1d20ed7d15a6d4df2ee..b1b2313c9c3111eaf9500fa1dc427555ae167fa3 100644 (file)
@@ -62,6 +62,13 @@ if NOT %ERRORLEVEL% == 0 (
     exit 3
 )
 
+REM In debug mode, we need to rename all .pyd to _d.pyd.
+if %SAT_DEBUG% == 1 (
+  cd %PRODUCT_INSTALL%\lib\%python_name%\site-packages\PyQt5
+  powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if ((!$_.Name.EndsWith('_d.pyd'))) {  $_ | Copy-Item -Destination {$_.Name  -replace '.pyd','_d.pyd'}}}"
+  powershell -Command "Get-ChildItem -File -Recurse *_d.pyd| ForEach-Object {if (($_.Name.EndsWith('_d.pyd'))) {  $_ | Copy-Item -Destination {$_.Name  -replace '_d.pyd','.pyd'}}}"
+)
+
 echo.
 echo ########## END
 
@@ -70,4 +77,4 @@ EXIT /B
 
 :NORMALIZEPATH
   SET RETVAL=%~dpfn1
-  EXIT /B
\ No newline at end of file
+  EXIT /B
index 5a5474a3908f33b8119556ed002693b6f7678297..a639fc81e791b52cd230c5d41cb30d50804f19b5 100644 (file)
@@ -140,6 +140,15 @@ set PATH=%PRODUCT_INSTALL%\Scripts;%PATH%
 
 %PRODUCT_INSTALL%\python.exe %SOURCE_DIR%\externals\pip-19.1.1\get-pip.py --force-reinstall --no-setuptools --no-wheel  --no-index --find-links=%SOURCE_DIR%\externals\pip-19.1.1
 
+REM In debug mode, we need to rename all _d.pyd to .pyd... don't ask why. Seems like a known bug in OmniORB.
+if %SAT_DEBUG% == 1 (
+  cd %PRODUCT_INSTALL%
+  powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if ((!$_.Name.EndsWith('_d.pyd'))) {  $_ | Copy-Item -Destination {$_.Name  -replace '.pyd','_d.pyd'}}}"
+  cd %PRODUCT_INSTALL%\lib\site-packages
+  powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if ((!$_.Name.EndsWith('_d.pyd'))) {  $_ | Copy-Item -Destination {$_.Name  -replace '.pyd','_d.pyd'}}}"
+)
+
+
 taskkill /F /IM "mspdbsrv.exe"
 
 echo.
index 20d94978829bb8a76af0792ab3f5ddc7005637ad..0cdb99c387173d2a4ccacf5d9bcc6a1e76543372 100755 (executable)
@@ -11,9 +11,9 @@ IF NOT DEFINED SAT_DEBUG (
 SET PRODUCT_BUILD_TYPE=Release
 
 REM TODO: NGH: not Tested yet
-REM if %SAT_DEBUG% == 1 (
-REM   set PRODUCT_BUILD_TYPE=Debug
-REM )
+if %SAT_DEBUG% == 1 (
+  set PRODUCT_BUILD_TYPE=Debug
+)
 
 if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
 
index 373249c2c510434085c45a52804b3b5d4b9370ce..97e738bf993e6db7e333c5f8224dcacf86100e07 100755 (executable)
@@ -39,13 +39,21 @@ echo --------------------------------------------------------------------------
 if %INSTALL_CENTRALLY% == 1 (\r
     %PYTHON_ROOT_DIR%\python.exe setup.py install \r
 ) else (\r
-    %PYTHON_ROOT_DIR%\python setup.py install  --single-version-externally-managed --root=/ --prefix=%PRODUCT_INSTALL% --install-lib=%PRODUCT_INSTALL%\lib\python%PYTHON_VERSION%\site-packages\r
+    %PYTHON_ROOT_DIR%\python.exe setup.py install  --single-version-externally-managed --root=/ --prefix=%PRODUCT_INSTALL% --install-lib=%PRODUCT_INSTALL%\lib\python%PYTHON_VERSION%\site-packages\r
 )\r
 if NOT %ERRORLEVEL% == 0  (\r
     echo "ERROR on setup install"\r
     exit 3\r
 )\r
 \r
+REM In debug mode, we need to rename all .pyd to _d.pyd... don't ask why. Seems like a known bug in OmniORB.\r
+if %SAT_DEBUG% == 1 (\r
+  cd %PYTHON_ROOT_DIR%\lib\site-packages\Cython-0.29.12-py3.6-win-amd64.egg\r
+  powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if ((!$_.Name.EndsWith('_d.pyd'))) {  $_ | Copy-Item -Destination {$_.Name  -replace '.pyd','_d.pyd'}}}"\r
+  cd %PYTHON_ROOT_DIR%lib\site-packages\Cython-0.29.12-py3.6-win-amd64.egg\Cython\Runtime\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
 echo.\r
 echo Product %PRODUCT_NAME% version: %VERSION%> %PRODUCT_INSTALL%\README.txt\r
 echo Installation folder: %PYTHON_ROOT_DIR%>> %PRODUCT_INSTALL%\README.txt\r
index 61f179971fc6c59c8b675f64d1b5c09c4b490bd8..3bd5ad519672c39e31ec1239908cdcbe9820bb43 100644 (file)
@@ -57,10 +57,16 @@ echo *** COPY FreeImage DLL to %PRODUCT_INSTALL%
 if %SAT_DEBUG% == 1 (
   copy /Y %BUILD_DIR%\Dist\x64\*.dll %PRODUCT_INSTALL%\bin\
   copy /Y %BUILD_DIR%\Dist\x64\*.lib %PRODUCT_INSTALL%\lib\
+  copy /Y %BUILD_DIR%\Dist\x64\*.pdb %PRODUCT_INSTALL%\lib\
   copy /Y %BUILD_DIR%\Dist\x64\*.h %PRODUCT_INSTALL%\include\
   copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\*.dll %PRODUCT_INSTALL%\bin\
   copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\*.lib %PRODUCT_INSTALL%\lib\
+  copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\*.pdb %PRODUCT_INSTALL%\lib\
   copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\*.h %PRODUCT_INSTALL%\include\
+  copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\FreeImagePlusd.dll %PRODUCT_INSTALL%\bin\FreeImagePlus.dll
+  copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\FreeImagePlusd.lib %PRODUCT_INSTALL%\lib\FreeImagePlus.lib
+  copy /Y %BUILD_DIR%\Dist\x64\FreeImaged.dll %PRODUCT_INSTALL%\bin\FreeImage.dll
+  copy /Y %BUILD_DIR%\Dist\x64\FreeImaged.lib %PRODUCT_INSTALL%\lib\FreeImage.lib
 ) else (
   copy /Y %BUILD_DIR%\Dist\x64\FreeImage.dll %PRODUCT_INSTALL%\bin\FreeImage.dll
   copy /Y %BUILD_DIR%\Dist\x64\FreeImage.lib %PRODUCT_INSTALL%\lib\FreeImage.lib
index eaa1d4012c30bbf7e68dc4880549b7b1a3c349f7..60a1b9f06a96c8ed9def093c0c8790afbf474bf4 100755 (executable)
@@ -73,7 +73,10 @@ if NOT exist "%PRODUCT_INSTALL%\bin"     mkdir  %PRODUCT_INSTALL%\bin
 if %SAT_DEBUG% == 0 (\r
   copy /Y  %BUILD_DIR%\%PRODUCT_BUILD_TYPE%\Freetype.dll %PRODUCT_INSTALL%\bin\Freetype.dll\r
 ) else (\r
+  copy /Y  %BUILD_DIR%\%PRODUCT_BUILD_TYPE%\*.lib %PRODUCT_INSTALL%\lib\\r
   copy /Y  %BUILD_DIR%\%PRODUCT_BUILD_TYPE%\*.dll %PRODUCT_INSTALL%\bin\\r
+  copy /Y  %BUILD_DIR%\%PRODUCT_BUILD_TYPE%\Freetyped.dll %PRODUCT_INSTALL%\bin\Freetype.dll\r
+  copy /Y  %BUILD_DIR%\%PRODUCT_BUILD_TYPE%\Freetyped.lib %PRODUCT_INSTALL%\lib\Freetype.lib\r
 )\r
 if NOT %ERRORLEVEL% == 0 (\r
     echo ERROR when copying Freetype DLL\r
index 5d4fa033ea2b44f75cc59a93a64e04b19fbb733a..ec54df729c279d2744d68f1e52d70fbe33f5f613 100644 (file)
@@ -9,9 +9,10 @@ IF NOT DEFINED SAT_DEBUG (
 )
 
 SET PRODUCT_BUILD_TYPE=Release
-if %SAT_DEBUG% == 1 (
-  set PRODUCT_BUILD_TYPE=Debug
-)
+REM Building ISPC in DEBUG mode is definitely not relevant.
+REM if %SAT_DEBUG% == 1 (
+REM   set PRODUCT_BUILD_TYPE=Debug
+REM )
 
 if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
 REM clean BUILD directory
index b022dba7a69947fb67c01081034a5ae6e98f08e7..e41b90147cee4ba46e7c0503a64c2a9de525e95a 100644 (file)
@@ -4,6 +4,15 @@ echo ##########################################################################
 echo NETGEN %VERSION%
 echo ##########################################################################
 
+IF NOT DEFINED SAT_DEBUG (
+  SET SAT_DEBUG=0
+)
+
+SET PRODUCT_BUILD_TYPE=Release
+if %SAT_DEBUG% == 1 (
+  set PRODUCT_BUILD_TYPE=Debug
+)
+
 dos2unix -q %SOURCE_DIR%/libsrc/occ/*
 dos2unix -q %SOURCE_DIR%/libsrc/nglib/*
 
@@ -12,16 +21,14 @@ REM clean BUILD directory
 if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
 mkdir %BUILD_DIR%
 
-set CMAKE_OPTIONS=-DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/%
-if defined CMAKE_GENERATOR (
-    set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR=%CMAKE_GENERATOR%
-) else (
-    set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR="Visual Studio 15 2017 Win64"
-)
-set MSBUILDDISABLENODEREUSE=1
-
+set CMAKE_OPTIONS=
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX=%PRODUCT_INSTALL%
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE=%PRODUCT_BUILD_TYPE%
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DZLIB_ROOT_DIR=%ZLIB_DIR%
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCASROOT=%CASROOT%
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR="Visual Studio 15 2017 Win64"
+
+set MSBUILDDISABLENODEREUSE=1
 
 cd %BUILD_DIR%
 
@@ -38,11 +45,11 @@ if NOT %ERRORLEVEL% == 0 (
 
 echo.
 echo *********************************************************************
-echo *** msbuild %MAKE_OPTIONS% /p:Configuration=Release ALL_BUILD.vcxproj"
+echo *** msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% ALL_BUILD.vcxproj
 echo *********************************************************************
 echo.
 
-msbuild %MAKE_OPTIONS% /p:Configuration=Release ALL_BUILD.vcxproj
+msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% ALL_BUILD.vcxproj
 if NOT %ERRORLEVEL% == 0 (
     echo ERROR on msbuild ALL_BUILD.vcxproj
     exit 2
@@ -50,11 +57,11 @@ if NOT %ERRORLEVEL% == 0 (
 
 echo.
 echo *********************************************************************
-echo *** installation... msbuild %MAKE_OPTIONS% /p:Configuration=Release INSTALL.vcxproj
+echo *** installation... msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% INSTALL.vcxproj
 echo *********************************************************************
 echo.
 
-msbuild %MAKE_OPTIONS% /p:Configuration=Release INSTALL.vcxproj
+msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% INSTALL.vcxproj
 if NOT %ERRORLEVEL% == 0 (
     echo ERROR on msbuild INSTALL.vcxproj
     exit 3
index 8579b1c4332e915e8229eeb834a759dffde5fa00..b75192b349763b7c1940b3e4b4245d190f46de49 100755 (executable)
@@ -39,9 +39,8 @@ echo INFO: activating platform target: x86_win32_vs_15
 sed "s/#platform = x86_win32_vs_15/platform = x86_win32_vs_15/g" < %CONFIG_REF% >  %CONFIG_MK%\r
 if %SAT_DEBUG% == 1 (\r
   copy %CONFIG_MK% %CONFIG_DBG%\r
-)\r
-if %SAT_DEBUG% == 1 (\r
   sed "s/#BuildDebugBinary = 1/BuildDebugBinary = 1/g" < %CONFIG_DBG% >  %CONFIG_MK% \r
+  sed -i '199s/\.lib/\_d\.lib/' %BUILD_DIR%\src\tool\omniidl\cxx\dir.mk\r
 )\r
 \r
 REM target our Python in the configuration file\r
index ab87ed1ddfdaa972bcfa01eeae073ee602eed52d..3d7444b1bfae4bc92e7f0498126521d054fff62d 100755 (executable)
@@ -36,5 +36,9 @@ if NOT %ERRORLEVEL% == 0 (
    exit 2\r
 )\r
 \r
+if %SAT_DEBUG% == 1 (\r
+  cd %PRODUCT_INSTALL%\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
 echo.\r
-echo ########## END
\ No newline at end of file
+echo ########## END\r
index 2e206c8c808ca37a5b9746eae9f161f7704f56a8..083ac658a394f2267cb0fc7dd0b0d6b77022c60b 100755 (executable)
@@ -26,7 +26,11 @@ SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DWITH_EIGEN:BOOL=OFF
 SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DSTATIC_LIBRARY_FLAGS:STRING="/machine:x64"\r
 SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPYTHON_EXECUTABLE=%PYTHON_ROOT_DIR:\=/%/python.exe\r
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPYTHON_INCLUDE_DIR:STRING=%PYTHON_ROOT_DIR:\=/%/include\r
-SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPYTHON_LIBRARY=%PYTHON_ROOT_DIR:\=/%/libs/python%PYTHON_VERSION:.=%.lib\r
+if %SAT_DEBUG% == 0 (\r
+  set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPYTHON_LIBRARY:STRING=%PYTHON_ROOT_DIR:\=/%/libs/python%PYTHON_VERSION:.=%.lib\r
+) else (\r
+  set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPYTHON_LIBRARY:STRING=%PYTHON_ROOT_DIR:\=/%/libs/python%PYTHON_VERSION:.=%_d.lib\r
+)\r
 SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBUILD_opencv_java:STRING=OFF\r
 SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR="Visual Studio 15 2017 Win64"\r
 \r
@@ -68,4 +72,4 @@ if NOT %ERRORLEVEL% == 0 (
 taskkill /F /IM "mspdbsrv.exe"\r
 \r
 echo.\r
-echo ########## END
\ No newline at end of file
+echo ########## END\r
index 3535513a79686719d1bdbb3fbe9d32ee0e9571f5..3a1866221317f27d266c2734f4fa6fc5c475f5f7 100755 (executable)
@@ -58,5 +58,12 @@ if NOT %ERRORLEVEL% == 0 (
     exit 3
 )
 
+REM In debug mode, we need to rename all _d.pyd to .pyd... don't ask why. Seems like a known bug in OmniORB.
+if %SAT_DEBUG% == 1 (
+  cd %PRODUCT_INSTALL%\lib\%python_name%\site-packages
+  powershell -Command "Get-ChildItem *_d.pyd| Rename-Item -newname { $_.name -replace '_d.pyd','.pyd' }"
+  powershell -Command "Get-ChildItem *.pyd| Rename-Item -newname { $_.name -replace '.pyd','_d.pyd' }"
+)
+
 echo.
 echo ########## END
index 4c93f6b5e0272cbdd89ab836256111a41e6cdf4a..f46ec834a461cb53561bd715fc781f1b63e51ab6 100644 (file)
@@ -36,3 +36,26 @@ version_0_1_9:
       pip : "no"
     }
 }
+
+version_0_4_3_win_dbg:
+{
+    name : "sphinx_rtd_theme"
+    build_source : "script"
+    compil_script :  "sphinx_rtd_theme.bat"
+    get_source : "archive"
+    archive_info : {archive_name : "sphinx_rtd_theme-0.4.3.tar.gz"}
+    environ :
+    {
+       env_script : "sphinx_rtd_theme.py"
+    }
+    depend : ['Python', 'Sphinx']
+    patches : []
+    source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
+    build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
+    install_dir : 'base'
+    properties:
+    {
+      incremental : "yes"
+      pip : "no"
+    }
+}