blob: e1f87b0e58dd46247310f68811e5690dfca13fc0 (
plain) (
blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
@echo off
if not "x%1" == "xauto" (
echo "WARNING: This script will unconditionally remove all files from the destination directories."
pause
)
if "x%2" == "xnodownload" (
set MPT_DOWNLOAD=no
)
if not "x%2" == "xnodownload" (
set MPT_DOWNLOAD=yes
)
set MY_DIR=%CD%
set BATCH_DIR=%~dp0
cd %BATCH_DIR% || goto error
cd .. || goto error
goto main
:main
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" (
call build\auto\setup_vs2019.cmd || goto error
cd include\genie\build\vs2019 || goto error
msbuild genie.sln /target:Build /property:Configuration=Release;Platform=Win32;WindowsTargetPlatformVersion=10.0 /maxcpucount /verbosity:minimal || goto error
cd ..\..\..\.. || goto error
goto geniedone
)
if exist "C:\Program Files\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" (
call build\auto\setup_vs2019.cmd || goto error
cd include\genie\build\vs2019 || goto error
msbuild genie.sln /target:Build /property:Configuration=Release;Platform=Win32;WindowsTargetPlatformVersion=10.0 /maxcpucount /verbosity:minimal || goto error
cd ..\..\..\.. || goto error
goto geniedone
)
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (
call build\auto\setup_vs2017.cmd || goto error
cd include\genie\build\vs2017 || goto error
msbuild genie.sln /target:Build /property:Configuration=Release;Platform=Win32 /maxcpucount /verbosity:minimal || goto error
cd ..\..\..\.. || goto error
goto geniedone
)
if exist "C:\Program Files\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (
call build\auto\setup_vs2017.cmd || goto error
cd include\genie\build\vs2017 || goto error
msbuild genie.sln /target:Build /property:Configuration=Release;Platform=Win32 /maxcpucount /verbosity:minimal || goto error
cd ..\..\..\.. || goto error
goto geniedone
)
:geniedone
copy /y include\genie\OpenMPT.txt include\genie\OpenMPT-version.txt
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" (
call build\auto\setup_vs2019.cmd || goto error
rem cd include\premake || goto error
rem nmake -f Bootstrap.mak windows MSDEV=vs2019 || goto error
rem bin\release\premake5 embed --bytecode || goto error
rem bin\release\premake5 --to=build/vs2019 vs2019 --no-curl --no-zlib --no-luasocket || goto error
rem cd ..\.. || goto error
cd include\premake\build\vs2019 || goto error
msbuild Premake5.sln /target:Clean /property:Configuration=Release;Platform=Win32 /maxcpucount /verbosity:minimal || goto error
msbuild Premake5.sln /target:Build /property:Configuration=Release;Platform=Win32 /maxcpucount /verbosity:minimal || goto error
cd ..\..\..\.. || goto error
goto premakedone
)
if exist "C:\Program Files\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" (
call build\auto\setup_vs2019.cmd || goto error
rem cd include\premake || goto error
rem nmake -f Bootstrap.mak windows MSDEV=vs2019 || goto error
rem bin\release\premake5 embed --bytecode || goto error
rem bin\release\premake5 --to=build/vs2019 vs2019 --no-curl --no-zlib --no-luasocket || goto error
rem cd ..\.. || goto error
cd include\premake\build\vs2019 || goto error
msbuild Premake5.sln /target:Clean /property:Configuration=Release;Platform=Win32 /maxcpucount /verbosity:minimal || goto error
msbuild Premake5.sln /target:Build /property:Configuration=Release;Platform=Win32 /maxcpucount /verbosity:minimal || goto error
cd ..\..\..\.. || goto error
goto premakedone
)
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (
call build\auto\setup_vs2017.cmd || goto error
rem cd include\premake || goto error
rem nmake -f Bootstrap.mak windows MSDEV=vs2017 || goto error
rem bin\release\premake5 embed --bytecode || goto error
rem bin\release\premake5 --to=build/vs2017 vs2017 --no-curl --no-zlib --no-luasocket || goto error
rem cd ..\.. || goto error
cd include\premake\build\vs2017 || goto error
msbuild Premake5.sln /target:Clean /property:Configuration=Release;Platform=Win32 /maxcpucount /verbosity:minimal || goto error
msbuild Premake5.sln /target:Build /property:Configuration=Release;Platform=Win32 /maxcpucount /verbosity:minimal || goto error
cd ..\..\..\.. || goto error
goto premakedone
)
if exist "C:\Program Files\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (
call build\auto\setup_vs2017.cmd || goto error
rem cd include\premake || goto error
rem nmake -f Bootstrap.mak windows MSDEV=vs2017 || goto error
rem bin\release\premake5 embed --bytecode || goto error
rem bin\release\premake5 --to=build/vs2017 vs2017 --no-curl --no-zlib --no-luasocket || goto error
rem cd ..\.. || goto error
cd include\premake\build\vs2017 || goto error
msbuild Premake5.sln /target:Clean /property:Configuration=Release;Platform=Win32 /maxcpucount /verbosity:minimal || goto error
msbuild Premake5.sln /target:Build /property:Configuration=Release;Platform=Win32 /maxcpucount /verbosity:minimal || goto error
cd ..\..\..\.. || goto error
goto premakedone
)
goto error
:premakedone
copy /y include\premake\OpenMPT.txt include\premake\OpenMPT-version.txt
goto ok
:ok
echo "All OK."
if "x%1" == "xauto" (
exit 0
)
goto end
:error
echo "Error!"
if "x%1" == "xauto" (
exit 1
)
goto end
:end
cd %MY_DIR%
pause
|