1REM Copyright 2020 The Marl Authors. 2REM 3REM Licensed under the Apache License, Version 2.0 (the "License"); 4REM you may not use this file except in compliance with the License. 5REM You may obtain a copy of the License at 6REM 7REM https://www.apache.org/licenses/LICENSE-2.0 8REM 9REM Unless required by applicable law or agreed to in writing, software 10REM distributed under the License is distributed on an "AS IS" BASIS, 11REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12REM See the License for the specific language governing permissions and 13REM limitations under the License. 14 15@echo on 16 17SETLOCAL ENABLEDELAYEDEXPANSION 18 19SET BUILD_ROOT=%cd% 20SET PATH=C:\python36;C:\Program Files\cmake\bin;%PATH% 21SET ROOT_DIR=%cd%\github\marl 22SET BUILD_DIR=%ROOT_DIR%\build 23 24cd %ROOT_DIR% 25if !ERRORLEVEL! neq 0 exit !ERRORLEVEL! 26 27git submodule update --init 28if !ERRORLEVEL! neq 0 exit !ERRORLEVEL! 29 30SET CONFIG=Release 31 32mkdir %BUILD_DIR% 33cd %BUILD_DIR% 34if !ERRORLEVEL! neq 0 exit !ERRORLEVEL! 35 36cmake "%ROOT_DIR%" ^ 37 -G "%BUILD_GENERATOR%" ^ 38 -A "%BUILD_TARGET_ARCH%" ^ 39 "-DMARL_BUILD_TESTS=1" ^ 40 "-DMARL_BUILD_EXAMPLES=1" ^ 41 "-DMARL_BUILD_BENCHMARKS=1" ^ 42 "-DMARL_WARNINGS_AS_ERRORS=1" ^ 43 "-DMARL_DEBUG_ENABLED=1" ^ 44 "-DMARL_INSTALL=1" ^ 45 "-DBENCHMARK_ENABLE_INSTALL=0" ^ 46 "-DCMAKE_INSTALL_PREFIX=%INSTALL_DIR%" 47if !ERRORLEVEL! neq 0 exit !ERRORLEVEL! 48cmake --build . --config %CONFIG% --target install 49