2018-09-17 18:24:25 +03:00
|
|
|
::
|
|
|
|
:: Usage: BuildRelease.bat [<build-directory>=.\build]
|
|
|
|
::
|
|
|
|
:: This script runs the dependency checks, generate the projects/makefiles and then
|
|
|
|
:: build the project in Release configuration.
|
|
|
|
::
|
|
|
|
::
|
2018-09-04 17:34:21 +03:00
|
|
|
@echo off
|
|
|
|
setlocal
|
|
|
|
|
|
|
|
set ROOT=%~dp0
|
2018-09-17 18:24:25 +03:00
|
|
|
set MARIAN_ROOT=%ROOT%..
|
2018-09-04 17:34:21 +03:00
|
|
|
|
2018-09-17 18:24:25 +03:00
|
|
|
set BUILD_ROOT=%1
|
|
|
|
if "%BUILD_ROOT%"=="" set BUILD_ROOT=%ROOT%build
|
|
|
|
|
|
|
|
call CreateVSProjects.bat %BUILD_ROOT%
|
2018-09-14 16:52:42 +03:00
|
|
|
if errorlevel 1 exit /b 1
|
|
|
|
|
2018-12-13 00:33:04 +03:00
|
|
|
cmake --build %BUILD_ROOT% --config Release
|
2018-09-14 16:52:42 +03:00
|
|
|
|
|
|
|
exit /b 0
|