2016-01-31 20:26:40 +02:00
|
|
|
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
|
|
|
:: ::
|
|
|
|
|
:: 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/>. ::
|
|
|
|
|
:: ::
|
|
|
|
|
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
|
|
|
|
2016-02-03 16:36:07 +02:00
|
|
|
:: The first argument is assumed to be a CMake generator and it is passed for build-deps, run-cmake, build-ifcopenshell,
|
|
|
|
|
:: and install-ifcopenshell. The second argument is assumed to be a build configuration type and it is passed for build-deps,
|
|
|
|
|
:: build-ifcopenshell and install-ifcopenshell. The rest of the arguments are passed for run-cmake.
|
|
|
|
|
:: Usage example for doing an optimized vs2015-x64 build with debug information and using IFC 4:
|
|
|
|
|
:: > build-all.cmd vs2015-x64 RelWithDebInfo -DUSE_IFC4=1 -DENABLE_BUILD_OPTIMIZATIONS=1
|
2016-02-03 22:16:50 +02:00
|
|
|
|
2025-11-21 11:49:35 +05:00
|
|
|
@if not defined ECHO_ON ( echo off )
|
2016-02-03 16:36:07 +02:00
|
|
|
|
2016-02-03 22:16:50 +02:00
|
|
|
setlocal EnableDelayedExpansion
|
2016-02-03 16:36:07 +02:00
|
|
|
|
2016-02-03 22:16:50 +02:00
|
|
|
call vs-cfg.cmd %1
|
|
|
|
|
if not %ERRORLEVEL%==0 GOTO :Error
|
2016-01-31 20:26:40 +02:00
|
|
|
:: Use "yes" trick to break the pause in build-deps.cmd
|
2016-02-15 15:08:13 +02:00
|
|
|
echo y | call .\build-deps %1 %2
|
2016-02-03 22:16:50 +02:00
|
|
|
if not %ERRORLEVEL%==0 goto :EOF
|
|
|
|
|
:: Same trick as in run-cmake.bat
|
|
|
|
|
set ARGUMENTS=%*
|
2016-02-06 18:48:18 +02:00
|
|
|
if not (%1)==() call set ARGUMENTS=%%ARGUMENTS:%1=%%
|
|
|
|
|
if not (%2)==() call set ARGUMENTS=%%ARGUMENTS:%2=%%
|
2016-02-03 22:16:50 +02:00
|
|
|
call .\run-cmake %1 %ARGUMENTS%
|
2016-01-31 20:26:40 +02:00
|
|
|
if not %ERRORLEVEL%==0 goto :EOF
|
2016-02-03 16:36:07 +02:00
|
|
|
call .\build-ifcopenshell %1 %2
|
2016-01-31 20:26:40 +02:00
|
|
|
ECHO %ERRORLEVEL%
|
|
|
|
|
if not %ERRORLEVEL%==0 goto :EOF
|
2016-02-03 16:36:07 +02:00
|
|
|
call .\install-ifcopenshell %1 %2
|