]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
windows: gmsh debug mode
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 2 May 2022 10:38:38 +0000 (12:38 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 2 May 2022 10:38:38 +0000 (12:38 +0200)
products/compil_scripts/gmsh-4.8.4.bat

index 2b8d89646bc228d5a26b145728bd33fbd36536b1..2fbabf65170f83c63bd415f34b2566a04bd940ca 100644 (file)
@@ -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