From: Nabil Ghodbane Date: Mon, 13 Sep 2021 08:55:07 +0000 (+0200) Subject: spns#18704 windows X-Git-Tag: V9_8_0~84 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=69bd12781bae4b2e5d521f392a8af1839a0135ba;p=tools%2Fsat_salome.git spns#18704 windows --- diff --git a/applications/SALOME-master-windows.pyconf b/applications/SALOME-master-windows.pyconf index f1ac3ab..c90ac93 100644 --- a/applications/SALOME-master-windows.pyconf +++ b/applications/SALOME-master-windows.pyconf @@ -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 index 0000000..2c17eaf --- /dev/null +++ b/products/compil_scripts/netgen-6.2.2101.bat @@ -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 diff --git a/products/netgen.pyconf b/products/netgen.pyconf old mode 100755 new mode 100644 index 17f0d00..56f5fe7 --- a/products/netgen.pyconf +++ b/products/netgen.pyconf @@ -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"}