forked from blender/cycles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
29 lines (24 loc) · 836 Bytes
/
make.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
REM Convenience wrapper for CMake commands
setlocal enableextensions enabledelayedexpansion
set BUILD_DIR=build
set PYTHON=python
set COMMAND=%1
if "%COMMAND%" == "" (
set COMMAND=release
)
if "%COMMAND%" == "release" (
cmake -B %BUILD_DIR% && cd %BUILD_DIR% && cmake --build . --target install --config Release
) else if "%COMMAND%" == "debug" (
cmake -B %BUILD_DIR% && cd %BUILD_DIR% && cmake --build . --target install --config Debug
) else if "%COMMAND%" == "clean" (
cd %BUILD_DIR% && cmake --build . --target install --config Clean
) else if "%COMMAND%" == "test" (
cd %BUILD_DIR% && ctest -C Release --output-on-failure
) else if "%COMMAND%" == "update" (
%PYTHON% src/cmake/make_update.py
) else if "%COMMAND%" == "format" (
%PYTHON% src/cmake/make_format.py
) else (
echo Command "%COMMAND%" unknown
)