]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns#18704 windows
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 13 Sep 2021 08:55:07 +0000 (10:55 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 13 Sep 2021 08:55:07 +0000 (10:55 +0200)
applications/SALOME-master-windows.pyconf
products/compil_scripts/netgen-6.2.2101.bat [new file with mode: 0644]
products/netgen.pyconf [changed mode: 0755->0644]

index 00a1efa0274800a4be5bd7a3e00c303c21eb115c..1b3278ebf7619d7da0bb233e43dfc827081ea89b 100644 (file)
@@ -75,7 +75,7 @@ APPLICATION :
         MeshGems : '2.12-1'
         metis : '5.1.0'
         msvc : '2017'
-        netgen : '5.3.1_with_CAS_7.2'
+        netgen : '6.2.2101'
         nlopt : '2.5.0'
         numpy : '1.16.4'
         omniORB : '4.2.3'
diff --git a/products/compil_scripts/netgen-6.2.2101.bat b/products/compil_scripts/netgen-6.2.2101.bat
new file mode 100644 (file)
index 0000000..2c17eaf
--- /dev/null
@@ -0,0 +1,90 @@
+@echo off
+
+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/*
+
+if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
+REM clean BUILD directory
+if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
+mkdir %BUILD_DIR%
+
+set CMAKE_OPTIONS=
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DUSE_GUI=OFF
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DUSE_PYTHON=OFF
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DUSE_MPI=OFF
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DUSE_OCC=ON
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DUSE_INTERNAL_TCL=OFF
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBUILD_STUB_FILES=OFF
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DOCC_INCLUDE_DIR=%CASROOT:\=/%/include/opencascade
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DOCC_LIBRARY_DIR=%CASROOT:\=/%/lib
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_CXX_STANDARD=17
+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%
+
+echo.
+echo --------------------------------------------------------------------------
+echo *** %CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% %SOURCE_DIR%
+echo --------------------------------------------------------------------------
+
+%CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% %SOURCE_DIR%
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR on cmake
+    exit 1
+)
+
+echo.
+echo *********************************************************************
+echo *** msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% ALL_BUILD.vcxproj
+echo *********************************************************************
+echo.
+
+msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% ALL_BUILD.vcxproj
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR on msbuild ALL_BUILD.vcxproj
+    exit 2
+)
+
+echo.
+echo *********************************************************************
+echo *** installation... msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% INSTALL.vcxproj
+echo *********************************************************************
+echo.
+
+msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% INSTALL.vcxproj
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR on msbuild INSTALL.vcxproj
+    exit 3
+)
+
+REM move DLL to bin, in order to reduce the PATH length..
+MOVE /Y %PRODUCT_INSTALL%\lib\nglib.dll  %PRODUCT_INSTALL%\bin\nglib.dll
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR could not move DLL to BIN directory...
+    exit 4
+)
+
+taskkill /F /IM "mspdbsrv.exe"
+
+echo.
+echo ########## END
old mode 100755 (executable)
new mode 100644 (file)
index 17f0d00..56f5fe7
@@ -31,6 +31,12 @@ version_6_2_2101 :
    patches : ['netgen62ForSalome.patch']
 }
 
+version_6_2_2101_win :
+{
+   build_source : "script"
+   compil_script :  'netgen-6.2.2101.bat'
+}
+
 version_5_3_1_with_CAS_7_2 :
 {
     archive_info : {archive_name : "netgen-5.3.1.tar.gz"}