forked from CnCNet/ts-patches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_to.cmd
39 lines (28 loc) · 733 Bytes
/
build_to.cmd
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
38
39
@echo off
REM
REM cnc-patch environment config
REM
set PATH=C:\win-builds-patch-32\bin
set /P c=Generate Release executable [Y/N]?
if /I "%c%" EQU "N" goto :debug
if not exist "build\release" mkdir build\release
gmake clean
gmake MOD_TO=1
move /Y game.exe ./build/release/game.exe
:debug
set /P c=Generate Debug executable [Y/N]?
if /I "%c%" EQU "N" goto :vinifera
if not exist "build\debug" mkdir build\debug
gmake clean
gmake MOD_TO=1 WWDEBUG=1
move /Y game.exe ./build/debug/game.exe
:vinifera
set /P c=Generate Vinifera executable [Y/N]?
if /I "%c%" EQU "N" goto :exit
if not exist "build\vinifera" mkdir build\vinifera
gmake clean
gmake MOD_TO=1 VINIFERA=1
move /Y game.exe ./build/vinifera/game.exe
pause
:exit
exit