From: Nabil Ghodbane Date: Mon, 2 May 2022 10:38:38 +0000 (+0200) Subject: windows: gmsh debug mode X-Git-Tag: V9_9_0~60 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5e6f783af4f89b0f42f9b617034fdbe6abf6b6c8;p=tools%2Fsat_salome.git windows: gmsh debug mode --- diff --git a/products/compil_scripts/gmsh-4.8.4.bat b/products/compil_scripts/gmsh-4.8.4.bat index 2b8d896..2fbabf6 100644 --- a/products/compil_scripts/gmsh-4.8.4.bat +++ b/products/compil_scripts/gmsh-4.8.4.bat @@ -9,8 +9,10 @@ IF NOT DEFINED SAT_DEBUG ( ) SET PRODUCT_BUILD_TYPE=Release +SET BUILD_SHARED=ON if %SAT_DEBUG% == 1 ( set PRODUCT_BUILD_TYPE=Debug + set BUILD_SHARED=OFF ) if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL% @@ -25,8 +27,8 @@ cd %BUILD_DIR% set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/% set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE=%PRODUCT_BUILD_TYPE% set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DENABLE_BUILD_LIB=ON -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DENABLE_BUILD_SHARED=ON -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DENABLE_BUILD_DYNAMIC=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DENABLE_BUILD_SHARED=%BUILD_SHARED% +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DENABLE_BUILD_DYNAMIC=%BUILD_SHARED% set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DENABLE_ACIS=OFF set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DENABLE_FLTK=OFF set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DENABLE_ONELAB_METAMODEL=OFF @@ -86,8 +88,8 @@ if NOT %ERRORLEVEL% == 0 ( exit 4 ) -copy /Y /B %BUILD_DIR%\%PRODUCT_BUILD_TYPE%\gmsh.lib %PRODUCT_INSTALL%\bin\gmsh.lib -copy /Y /B %BUILD_DIR%\%PRODUCT_BUILD_TYPE%\gmsh.exp %PRODUCT_INSTALL%\bin\gmsh.exp +copy /Y /B %BUILD_DIR%\%PRODUCT_BUILD_TYPE%\*.lib %PRODUCT_INSTALL%\bin +copy /Y /B %BUILD_DIR%\%PRODUCT_BUILD_TYPE%\*.exp %PRODUCT_INSTALL%\bin SETLOCAL ENABLEDELAYEDEXPANSION FOR %%f IN (gmsh.h gmsh.h_cwrap gmshc.h) do ( @@ -114,6 +116,9 @@ ENDLOCAL REM these two files need to be moved to bin, adding bin directory to PATH does not help. cp %PRODUCT_INSTALL%\lib\gmsh.py %PRODUCT_INSTALL%\bin\gmsh.py -cp %PRODUCT_INSTALL%\lib\gmsh.dll %PRODUCT_INSTALL%\bin\gmsh.dll +if %SAT_DEBUG% == 0 ( + cp %PRODUCT_INSTALL%\lib\gmsh.dll %PRODUCT_INSTALL%\bin\gmsh.dll +) + echo. echo ########## END