-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.bat
More file actions
38 lines (35 loc) · 893 Bytes
/
make.bat
File metadata and controls
38 lines (35 loc) · 893 Bytes
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
30
31
32
33
34
35
36
37
@echo off
if /i [%1] == [clean] (
rm -rf build
) else if /i [%1] == [cmake] (
mkdir build
pushd build\
REM cmake .. -DSFML_DIR=D:\libs\SFML-2.5.1 -DCMAKE_BUILD_TYPE=Debug -DGLM_DIR=D:\code\g-truc\glm
cmake .. -DSFML_DIR=D:\libs\SFML-2.5.1 -DCMAKE_BUILD_TYPE=Debug -DImGui-SFML_DIR=D:\libs\ImGui-SFML -DGLM_DIR=D:\code\g-truc\glm
popd
) else if /i [%1] == [tags] (
echo "updating tags"
ctags -R src
) else if /i [%1] == [editor] (
pushd build\
call msbuild waves.sln /p:Configuration=Debug /t:editor
if ERRORLEVEL 1 (
@echo Build failed
popd
exit /b 1
)
popd
cp -r assets build\Debug\
call "build/Debug/editor.exe"
) else if /i [%1] == [game] (
pushd build\
call msbuild waves.sln /p:Configuration=Debug /t:game
if ERRORLEVEL 1 (
@echo Build failed
popd
exit /b 1
)
popd
cp -r assets build\Debug\
call "build/Debug/game.exe"
)