OSDN Git Service

Updated deployment scripts.
[lamexp/LameXP.git] / etc / Deployment / _build.bat
1 @echo off
2
3 echo.
4 echo ----------------------------------------------------------------
5 echo Solution File: %1
6 echo Configuration: %~2
7 echo ----------------------------------------------------------------
8 echo.
9
10 :: ---------------------------------------------------------------------------
11 :: SETUP PATHS
12 :: ---------------------------------------------------------------------------
13
14 call "%~dp0\_paths.bat"
15 call "%PATH_MSCDIR%\VC\bin\vcvars32.bat" x86
16
17 if exist "%PATH_QTMSVC%\bin\qtenv2.bat" (
18         call "%PATH_QTMSVC%\bin\qtenv2.bat"
19 )
20
21 if exist "%PATH_QTMSVC%\bin\qtvars.bat" (
22         call "%PATH_QTMSVC%\bin\qtvars.bat"
23 )
24
25 :: ---------------------------------------------------------------------------
26 :: BUILD THE PROJECT
27 :: ---------------------------------------------------------------------------
28
29 msbuild.exe /property:Configuration=%2 /property:Platform=Win32 /target:Clean   /verbosity:normal %1
30 if not "%ERRORLEVEL%"=="0" (
31         echo. && echo Build process has failed!
32         echo. && pause && exit
33 )
34
35 msbuild.exe /property:Configuration=%2 /property:Platform=Win32 /target:Rebuild /verbosity:normal %1
36 if not "%ERRORLEVEL%"=="0" (
37         echo. && echo Build process has failed!
38         echo. && pause && exit
39 )
40
41 msbuild.exe /property:Configuration=%2 /property:Platform=Win32 /target:Build   /verbosity:normal %1
42 if not "%ERRORLEVEL%"=="0" (
43         echo. && echo Build process has failed!
44         echo. && pause && exit
45 )