mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
47 lines
2.3 KiB
Batchfile
47 lines
2.3 KiB
Batchfile
|
|
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||
|
|
:: ::
|
||
|
|
:: 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/>. ::
|
||
|
|
:: ::
|
||
|
|
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||
|
|
|
||
|
|
:: This batch file expects CMake generator as %1 and build configuration type as %2. If not provided,
|
||
|
|
:: a deduced generator will be used for %1 and BUILD_CFG_DEFAULT for %2 (both set in vs-cfg.cmd)
|
||
|
|
:: Possible extra parameters are passed for the MSBuild call.
|
||
|
|
|
||
|
|
@echo off
|
||
|
|
set PROJECT_NAME=IfcOpenShell
|
||
|
|
|
||
|
|
:: Enable the delayed environment variable expansion needed in VSConfig.cmd.
|
||
|
|
setlocal EnableDelayedExpansion
|
||
|
|
call vs-cfg.cmd %1 %2
|
||
|
|
IF NOT %ERRORLEVEL%==0 GOTO :Error
|
||
|
|
|
||
|
|
echo.
|
||
|
|
call cecho.cmd 0 13 "Building %VS_PLATFORM% %BUILD_CFG% %PROJECT_NAME%"
|
||
|
|
MSBuild ..\%BUILD_DIR%\%PROJECT_NAME%.sln /nologo /m /p:Platform=%VS_PLATFORM% /p:Configuration=%BUILD_CFG% %3 %4 %5 %6 %7 %8 %9
|
||
|
|
IF NOT %ERRORLEVEL%==0 GOTO :Error
|
||
|
|
|
||
|
|
echo.
|
||
|
|
call cecho.cmd 0 10 "%VS_PLATFORM% %BUILD_CFG% %PROJECT_NAME% build finished."
|
||
|
|
goto :End
|
||
|
|
|
||
|
|
:Error
|
||
|
|
echo.
|
||
|
|
call %~dp0\utils\cecho.cmd 0 12 "%VS_PLATFORM% %BUILD_CFG% %PROJECT_NAME% build failed!"
|
||
|
|
|
||
|
|
:End
|
||
|
|
endlocal
|