]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #43020: install executables in %SINGLE_INSTALL_DIR% and save PATH length
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 4 Nov 2024 15:31:51 +0000 (16:31 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 4 Nov 2024 15:31:51 +0000 (16:31 +0100)
products/compil_scripts/cgal-v5.6.1.bat
products/compil_scripts/cork.bat
products/compil_scripts/libigl-v2.5.0.bat

index 31531b732800395418e1caa8133fcad50d499f53..ac565367de24150d5ab8524d2e0b73a973674515 100644 (file)
@@ -88,12 +88,12 @@ mkdir %BUILD_DIR%\cgal_test
 cd %BUILD_DIR%\cgal_test
 
 set CMAKE_OPTIONS=
-set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/%
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX:STRING=%BUILD_DIR:\=/%
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE=%PRODUCT_BUILD_TYPE%
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -G %CMAKE_GENERATOR%
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -A x64
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCGAL_DIR=%PRODUCT_INSTALL:\=/%/lib/cmake
-set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DEXECUTABLE_OUTPUT_PATH=%PRODUCT_INSTALL:\=/%/bin
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DEXECUTABLE_OUTPUT_PATH=%BUILD_DIR:\=/%/bin
 set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCGAL_DISABLE_GMP=OFF
 
 echo.
@@ -120,17 +120,18 @@ if NOT %ERRORLEVEL% == 0 (
     exit 2
 )
 
-echo.
-echo *********************************************************************
-echo *** installation...
-echo *********************************************************************
-echo.
-
-msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 INSTALL.vcxproj
+REM Install the executable into the common directory
+if NOT exist "%SINGLE_INSTALL_DIR%" mkdir %SINGLE_INSTALL_DIR%
+if NOT exist "%SINGLE_INSTALL_DIR%\bin" mkdir %SINGLE_INSTALL_DIR%\bin
+copy /B /Y %BUILD_DIR%\bin\%PRODUCT_BUILD_TYPE%\exec_cgal.exe %SINGLE_INSTALL_DIR%\bin\exec_cgal.exe
 if NOT %ERRORLEVEL% == 0 (
-    echo ERROR on msbuild INSTALL.vcxproj
-    exit 3
+    echo ERROR could not copy exec_cgal.exe to %SINGLE_INSTALL_DIR%\bin
+    exit 2
 )
 
+echo.
+echo exec_cgal version: %VERSION%> %PRODUCT_INSTALL%\README.txt
+echo Installation folder: %SINGLE_INSTALL_DIR%\bin >> %PRODUCT_INSTALL%\README.txt
+
 echo
 echo ########## END
index 50c562505e62316f9b3251935e696730e4acb54d..386bc740d259ae8aa6917c4d1317e81381f0cb9d 100644 (file)
@@ -49,3 +49,22 @@ if NOT %ERRORLEVEL% == 0 (
     echo ERROR on msbuild  wincork.vcxproj
     exit 2
 )
+
+REM Install the executable into the common directory
+if NOT exist "%SINGLE_INSTALL_DIR%" mkdir %SINGLE_INSTALL_DIR%
+if NOT exist "%SINGLE_INSTALL_DIR%\bin" mkdir %SINGLE_INSTALL_DIR%\bin
+
+copy /Y /B %BUILD_DIR%\win\wincork\x64\%PRODUCT_BUILD_TYPE%\wincork.pdb %SINGLE_INSTALL_DIR%\bin\
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR on wincork.pdb
+    exit 3
+)
+copy /Y /B %BUILD_DIR%\win\wincork\x64\%PRODUCT_BUILD_TYPE%\wincork.exe %SINGLE_INSTALL_DIR%\bin\
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR on msbuild wincork.exe
+    exit 3
+)
+
+echo.
+echo libigl 609_Boolean version: %VERSION%> %PRODUCT_INSTALL%\README.txt
+echo Installation folder: %SINGLE_INSTALL_DIR%\bin >> %PRODUCT_INSTALL%\README.txt
index 855b1b39e88b4f3a3f564509d37fcb23b7a8d5cd..7f2ec1be185a324a758267dba6af2065c23eb25c 100644 (file)
@@ -84,14 +84,20 @@ echo *** installation...
 echo *********************************************************************
 echo.
 
-mkdir %PRODUCT_INSTALL%\bin
+REM Install the executable into the common directory
+if NOT exist "%SINGLE_INSTALL_DIR%" mkdir %SINGLE_INSTALL_DIR%
+if NOT exist "%SINGLE_INSTALL_DIR%\bin" mkdir %SINGLE_INSTALL_DIR%\bin
 
-copy /Y /B %BUILD_DIR%\bin\%PRODUCT_BUILD_TYPE%\* %PRODUCT_INSTALL%\bin\
+copy /Y /B %BUILD_DIR%\bin\%PRODUCT_BUILD_TYPE%\* %SINGLE_INSTALL_DIR%\bin\
 if NOT %ERRORLEVEL% == 0 (
-    echo ERROR on msbuild INSTALL.vcxproj
+    echo ERROR on msbuild 609_Boolean.vcxproj
     exit 3
 )
 
+echo.
+echo libigl 609_Boolean version: %VERSION%> %PRODUCT_INSTALL%\README.txt
+echo Installation folder: %SINGLE_INSTALL_DIR%\bin >> %PRODUCT_INSTALL%\README.txt
+
 set MSBUILDDISABLENODEREUSE=1
 
 echo