-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild_projects.bat
More file actions
51 lines (43 loc) · 1.17 KB
/
build_projects.bat
File metadata and controls
51 lines (43 loc) · 1.17 KB
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
@echo off
set RC=
setlocal
xcopy /Y /F .\rbnf.cpp.patched tools\icu\source\i18n\rbnf.cpp
if "%1" == "" (
echo ERROR: Please specify a build target: Debug or Release
set ERRORLEVEL=1
goto end
)
if "%2" == "" (
set PROJECT_NAME=qagamex86
) else (
set PROJECT_NAME=%2
)
echo Configuring Visual Studio environment...
if "%GYP_MSVS_VERSION%" == "2008" (
call "%VS90COMNTOOLS%vsvars32.bat"
set PROJECT_EXT=.vcproj
) else (
call "%VS100COMNTOOLS%vsvars32.bat"
set PROJECT_EXT=.vcxproj
set MSBUILD_PATH=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
)
if exist "%MSBUILD_PATH%" (
echo Building %1 target for all projects...
"%MSBUILD_PATH%" /v:m /p:Configuration=%1;Platform=Win32 recordsystem.sln
) else if exist "%DevEnvDir%\devenv.com" (
echo Building %1 target for all projects...
"%DevEnvDir%\devenv.com" /build %1 recordsystem.sln
) else if exist "%VCINSTALLDIR%\vcpackages\vcbuild.exe" (
echo Building %1 target for all projects...
"%VCINSTALLDIR%\vcpackages\vcbuild.exe" recordsystem.sln "%1|Win32"
) else (
echo ERROR: Cannot find Visual Studio builder
set ERRORLEVEL=1
)
:end
endlocal & set RC=%ERRORLEVEL%
goto omega
:returncode
exit /B %RC%
:omega
call :returncode %RC%