mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 10:51:13 +00:00
Add build-all.cmd script for convenience.
This commit is contained in:
@@ -0,0 +1,32 @@
|
|||||||
|
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
:: ::
|
||||||
|
:: This file is part of IfcOpenShell. ::
|
||||||
|
:: ::
|
||||||
|
:: IfcOpenShell is free software: you can redistribute it and/or modify ::
|
||||||
|
:: it under the terms of the Lesser GNU General Public License as published by ::
|
||||||
|
:: the Free Software Foundation, either version 3.0 of the License, or ::
|
||||||
|
:: (at your option) any later version. ::
|
||||||
|
:: ::
|
||||||
|
:: IfcOpenShell is distributed in the hope that it will be useful, ::
|
||||||
|
:: but WITHOUT ANY WARRANTY; without even the implied warranty of ::
|
||||||
|
:: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ::
|
||||||
|
:: Lesser GNU General Public License for more details. ::
|
||||||
|
:: ::
|
||||||
|
:: You should have received a copy of the Lesser GNU General Public License ::
|
||||||
|
:: along with this program. If not, see <http://www.gnu.org/licenses/>. ::
|
||||||
|
:: ::
|
||||||
|
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
|
||||||
|
:: TODO Allow passing cmd line args
|
||||||
|
@echo off
|
||||||
|
:: Use "yes" trick to break the pause in build-deps.cmd
|
||||||
|
echo y>y.txt
|
||||||
|
call .\build-deps <y.txt
|
||||||
|
if not %ERRORLEVEL%==0 goto :EOF
|
||||||
|
del .\y.txt
|
||||||
|
call .\run-cmake
|
||||||
|
if not %ERRORLEVEL%==0 goto :EOF
|
||||||
|
call .\build-ifcopenshell
|
||||||
|
ECHO %ERRORLEVEL%
|
||||||
|
if not %ERRORLEVEL%==0 goto :EOF
|
||||||
|
call .\install-ifcopenshell
|
||||||
+3
-2
@@ -305,6 +305,7 @@ IF EXIST "%DEPS_DIR%\swigwin\". robocopy "%DEPS_DIR%\swigwin" "%INSTALL_DIR%\swi
|
|||||||
:Successful
|
:Successful
|
||||||
echo.
|
echo.
|
||||||
call %~dp0\utils\cecho.cmd 0 10 "%PROJECT_NAME% dependencies built."
|
call %~dp0\utils\cecho.cmd 0 10 "%PROJECT_NAME% dependencies built."
|
||||||
|
set IFCOS_SCRIPT_RET=0
|
||||||
goto :Finish
|
goto :Finish
|
||||||
|
|
||||||
:ErrorAndPrintUsage
|
:ErrorAndPrintUsage
|
||||||
@@ -313,6 +314,7 @@ call :PrintUsage
|
|||||||
:Error
|
:Error
|
||||||
echo.
|
echo.
|
||||||
call %~dp0\utils\cecho.cmd 0 12 "An error occurred! Aborting!"
|
call %~dp0\utils\cecho.cmd 0 12 "An error occurred! Aborting!"
|
||||||
|
set IFCOS_SCRIPT_RET=1
|
||||||
goto :Finish
|
goto :Finish
|
||||||
|
|
||||||
:Finish
|
:Finish
|
||||||
@@ -334,8 +336,7 @@ echo Build ended at %END_TIME%. Time elapsed %hh%:%mm%:%ss%.%cc%.
|
|||||||
|
|
||||||
set PATH=%ORIGINAL_PATH%
|
set PATH=%ORIGINAL_PATH%
|
||||||
cd %~dp0
|
cd %~dp0
|
||||||
endlocal
|
exit /b %IFCOS_SCRIPT_RET%
|
||||||
goto :EOF
|
|
||||||
|
|
||||||
::::::::::::::::::::::::::::::::::::: Subroutines :::::::::::::::::::::::::::::::::::::
|
::::::::::::::::::::::::::::::::::::: Subroutines :::::::::::::::::::::::::::::::::::::
|
||||||
|
|
||||||
|
|||||||
@@ -44,11 +44,13 @@ IF NOT %ERRORLEVEL%==0 GOTO :Error
|
|||||||
|
|
||||||
echo.
|
echo.
|
||||||
call cecho.cmd 0 10 "%VS_PLATFORM% %BUILD_CFG% %PROJECT_NAME% build finished."
|
call cecho.cmd 0 10 "%VS_PLATFORM% %BUILD_CFG% %PROJECT_NAME% build finished."
|
||||||
|
set IFCOS_SCRIPT_RET=0
|
||||||
goto :End
|
goto :End
|
||||||
|
|
||||||
:Error
|
:Error
|
||||||
echo.
|
echo.
|
||||||
call %~dp0\utils\cecho.cmd 0 12 "%VS_PLATFORM% %BUILD_CFG% %PROJECT_NAME% build failed!"
|
call %~dp0\utils\cecho.cmd 0 12 "%VS_PLATFORM% %BUILD_CFG% %PROJECT_NAME% build failed!"
|
||||||
|
set IFCOS_SCRIPT_RET=1
|
||||||
|
|
||||||
:End
|
:End
|
||||||
endlocal
|
exit /b %IFCOS_SCRIPT_RET%
|
||||||
|
|||||||
@@ -44,11 +44,13 @@ IF NOT %ERRORLEVEL%==0 GOTO :Error
|
|||||||
|
|
||||||
echo.
|
echo.
|
||||||
call cecho.cmd 0 10 "%VS_PLATFORM% %BUILD_CFG% %PROJECT_NAME% installation finished."
|
call cecho.cmd 0 10 "%VS_PLATFORM% %BUILD_CFG% %PROJECT_NAME% installation finished."
|
||||||
|
set IFCOS_SCRIPT_RET=0
|
||||||
goto :End
|
goto :End
|
||||||
|
|
||||||
:Error
|
:Error
|
||||||
echo.
|
echo.
|
||||||
call %~dp0\utils\cecho.cmd 0 12 "%VS_PLATFORM% %BUILD_CFG% %PROJECT_NAME% installation failed!"
|
call %~dp0\utils\cecho.cmd 0 12 "%VS_PLATFORM% %BUILD_CFG% %PROJECT_NAME% installation failed!"
|
||||||
|
set IFCOS_SCRIPT_RET=1
|
||||||
|
|
||||||
:End
|
:End
|
||||||
endlocal
|
exit /b %IFCOS_SCRIPT_RET%
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ Directory Structure
|
|||||||
+---deps-installed-vs<VER>-<ARCH> - Created by build-deps.cmd, for a certain VS version and target architecture
|
+---deps-installed-vs<VER>-<ARCH> - Created by build-deps.cmd, for a certain VS version and target architecture
|
||||||
+---installed-vs<VER>-<ARCH> - Created by building the IFCOS's INSTALL project
|
+---installed-vs<VER>-<ARCH> - Created by building the IFCOS's INSTALL project
|
||||||
\---win
|
\---win
|
||||||
|
| build-all.cmd - Runs all of the build scripts for IFCOS and it dependencies in a row without pauses
|
||||||
| build-deps.cmd - Fetches and builds all needed dependencies for IFCOS
|
| build-deps.cmd - Fetches and builds all needed dependencies for IFCOS
|
||||||
| BuildDepsCache-<ARCH>.txt - Cache file created by build-deps.cmd
|
| BuildDepsCache-<ARCH>.txt - Cache file created by build-deps.cmd
|
||||||
| build-ifcopenshell.cmd - Builds IFCOS
|
| build-ifcopenshell.cmd - Builds IFCOS
|
||||||
|
|||||||
+3
-2
@@ -97,14 +97,15 @@ REM ) ELSE (
|
|||||||
REM )
|
REM )
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
|
set IFCOS_SCRIPT_RET=0
|
||||||
goto :Finish
|
goto :Finish
|
||||||
|
|
||||||
:Error
|
:Error
|
||||||
echo.
|
echo.
|
||||||
call %~dp0\utils\cecho.cmd 0 12 "An error occurred! Aborting!"
|
call %~dp0\utils\cecho.cmd 0 12 "An error occurred! Aborting!"
|
||||||
|
set IFCOS_SCRIPT_RET=1
|
||||||
goto :Finish
|
goto :Finish
|
||||||
|
|
||||||
:Finish
|
:Finish
|
||||||
popd
|
popd
|
||||||
set PATH=%ORIGINAL_PATH%
|
exit /b %IFCOS_SCRIPT_RET%
|
||||||
endlocal
|
|
||||||
|
|||||||
Reference in New Issue
Block a user