From: Nabil Ghodbane Date: Wed, 8 Mar 2023 11:34:35 +0000 (+0100) Subject: spns #33658 - MeshGems 2.15-1 X-Git-Tag: V9_11_0~93 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=965b2adcc7e14e26b3c226f607bb7179f75fe3a1;p=tools%2Fsat_salome.git spns #33658 - MeshGems 2.15-1 --- diff --git a/products/MeshGems.pyconf b/products/MeshGems.pyconf index 164fd9b..ae3df52 100644 --- a/products/MeshGems.pyconf +++ b/products/MeshGems.pyconf @@ -47,6 +47,7 @@ version_2_15_1 : version_2_15_1_win : { + compil_script : "MeshGems-2.15.bat" properties : { is_distene : "no" diff --git a/products/compil_scripts/MeshGems-2.15.bat b/products/compil_scripts/MeshGems-2.15.bat new file mode 100644 index 0000000..fed9a94 --- /dev/null +++ b/products/compil_scripts/MeshGems-2.15.bat @@ -0,0 +1,58 @@ +@echo off + +echo ########################################################################## +echo MeshGems %VERSION% +echo ########################################################################## + +if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL% +if NOT exist "%PRODUCT_INSTALL%\bin" mkdir %PRODUCT_INSTALL%\bin +if NOT exist "%PRODUCT_INSTALL%\lib" mkdir %PRODUCT_INSTALL%\lib +if NOT exist "%PRODUCT_INSTALL%\include" mkdir %PRODUCT_INSTALL%\include +if NOT exist "%PRODUCT_INSTALL%\Docs" mkdir %PRODUCT_INSTALL%\Docs + +REM clean BUILD directory +if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR% +mkdir %BUILD_DIR% + +cd %SOURCE_DIR% + +set SRC_FOLDER=Win10_64_VC16 +cd Products + +echo PRODUCT_INSTALL = %PRODUCT_INSTALL% + +REM +xcopy include\* %PRODUCT_INSTALL%\include /E /I /Q /Y +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on copying include + exit 1 +) + +echo SRC_FOLDER = %SRC_FOLDER% +echo. +echo running command: xcopy lib\%SRC_FOLDER%\* %PRODUCT_INSTALL%\lib /E /I /Q /Y +xcopy lib\%SRC_FOLDER%\* %PRODUCT_INSTALL%\lib /E /I /Q /Y +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on copying lib + exit 2 +) + +REM +echo. +echo running command: bin\%SRC_FOLDER%\* %PRODUCT_INSTALL%\bin /E /I /Q /Y +xcopy bin\%SRC_FOLDER%\* %PRODUCT_INSTALL%\bin /E /I /Q /Y +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on copying bin + exit 3 +) + +REM +echo. +xcopy Docs\* %PRODUCT_INSTALL%\Docs /E /I /Q /Y +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on copying Docs + exit 4 +) + +echo. +echo ########## END diff --git a/products/compil_scripts/MeshGems.bat b/products/compil_scripts/MeshGems.bat index a93410b..f086dd7 100755 --- a/products/compil_scripts/MeshGems.bat +++ b/products/compil_scripts/MeshGems.bat @@ -1,7 +1,7 @@ @echo off echo ########################################################################## -echo MeshGems $VERSION +echo MeshGems %VERSION% echo ########################################################################## if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL% @@ -18,7 +18,6 @@ cd %SOURCE_DIR% set SRC_FOLDER_VC14=Win7_64_VC14 set SRC_FOLDER_VC15=Win7_64_VC15 -set SRC_FOLDER_VC16=Win10_64_VC16 cd DISTENE\MeshGems-*\Products echo PRODUCT_INSTALL = %PRODUCT_INSTALL% @@ -36,10 +35,6 @@ if exist "lib\%SRC_FOLDER_VC14%" ( set SRC_FOLDER=%SRC_FOLDER_VC14% ) -if exist "lib\%SRC_FOLDER_VC16%" ( - set SRC_FOLDER=%SRC_FOLDER_VC16% -) - echo SRC_FOLDER = %SRC_FOLDER% echo. echo running command: xcopy lib\%SRC_FOLDER%\* %PRODUCT_INSTALL%\lib /E /I /Q /Y