-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgenerate.bat
More file actions
30 lines (24 loc) · 787 Bytes
/
generate.bat
File metadata and controls
30 lines (24 loc) · 787 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
@echo off
REM -----------------------------
REM generate.bat
REM Generates the VS solution
REM Uses local tools\premake5.exe and preserves extra arguments
REM -----------------------------
git submodule sync --recursive
git submodule update --init --recursive
if exist "deps\SDL\include\SDL.h" (
echo Using SDL source from deps\SDL
) else if exist "deps\SDL2-src\SDL2-2.32.10\include\SDL.h" (
echo Using SDL fallback source from deps\SDL2-src\SDL2-2.32.10
) else (
echo WARNING: SDL source not found. SDL backend project will not be generated.
)
if not exist "tools\premake5.exe" (
echo ERROR: premake5.exe not found in tools\
exit /b 1
)
tools\premake5.exe %* vs2022
if not exist "build" (
mkdir build
)
echo consolation-client.sln should now be in build\