OSDN Git Service

c5e8594fb0453a803ee4205824cd3c99b5b03cab
[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%\vcvars32.bat"
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=%3 /property:Platform=%2 /target:Clean   /verbosity:normal "%~1"
30 if not "%ERRORLEVEL%"=="0" (
31         "%~dp0\..\..\..\Prerequisites\CEcho\cecho.exe" red "\nBuild process has failed!\n"
32         pause && exit
33 )
34
35 msbuild.exe /property:Configuration=%3 /property:Platform=%2 /target:Rebuild /verbosity:normal "%~1"
36 if not "%ERRORLEVEL%"=="0" (
37         "%~dp0\..\..\..\Prerequisites\CEcho\cecho.exe" red "\nBuild process has failed!\n"
38         pause && exit
39 )
40
41 msbuild.exe /property:Configuration=%3 /property:Platform=%2 /target:Build   /verbosity:normal "%~1"
42 if not "%ERRORLEVEL%"=="0" (
43         "%~dp0\..\..\..\Prerequisites\CEcho\cecho.exe" red "\nBuild process has failed!\n"
44         pause && exit
45 )