mirror of
https://github.com/marian-nmt/marian.git
synced 2024-09-11 06:15:56 +03:00
22 lines
469 B
Batchfile
22 lines
469 B
Batchfile
::
|
|
:: Usage: BuildRelease.bat [<build-directory>=.\build]
|
|
::
|
|
:: This script runs the dependency checks, generate the projects/makefiles and then
|
|
:: build the project in Release configuration.
|
|
::
|
|
::
|
|
@echo off
|
|
setlocal
|
|
|
|
set ROOT=%~dp0
|
|
set MARIAN_ROOT=%ROOT%..
|
|
|
|
set BUILD_ROOT=%1
|
|
if "%BUILD_ROOT%"=="" set BUILD_ROOT=%ROOT%build
|
|
|
|
call CreateVSProjects.bat %BUILD_ROOT%
|
|
if errorlevel 1 exit /b 1
|
|
|
|
cmake --build %BUILD_ROOT% --config Release
|
|
|
|
exit /b 0 |