2010-11-06 23:04:47 +01:00
|
|
|
@echo off
|
2014-12-22 22:40:20 +01:00
|
|
|
|
|
|
|
echo.
|
2010-11-06 23:04:47 +01:00
|
|
|
echo ----------------------------------------------------------------
|
|
|
|
echo Solution File: %1
|
2010-11-11 00:25:23 +01:00
|
|
|
echo Configuration: %~2
|
2010-11-06 23:04:47 +01:00
|
|
|
echo ----------------------------------------------------------------
|
2014-12-22 22:40:20 +01:00
|
|
|
echo.
|
|
|
|
|
|
|
|
:: ---------------------------------------------------------------------------
|
|
|
|
:: SETUP PATHS
|
|
|
|
:: ---------------------------------------------------------------------------
|
|
|
|
|
2011-04-19 16:21:19 +02:00
|
|
|
call "%~dp0\_paths.bat"
|
2017-08-15 22:47:35 +02:00
|
|
|
call "%PATH_MSCDIR%\vcvars32.bat"
|
2014-12-22 22:40:20 +01:00
|
|
|
|
|
|
|
if exist "%PATH_QTMSVC%\bin\qtenv2.bat" (
|
|
|
|
call "%PATH_QTMSVC%\bin\qtenv2.bat"
|
|
|
|
)
|
|
|
|
|
|
|
|
if exist "%PATH_QTMSVC%\bin\qtvars.bat" (
|
|
|
|
call "%PATH_QTMSVC%\bin\qtvars.bat"
|
|
|
|
)
|
|
|
|
|
|
|
|
:: ---------------------------------------------------------------------------
|
|
|
|
:: BUILD THE PROJECT
|
|
|
|
:: ---------------------------------------------------------------------------
|
|
|
|
|
2019-04-13 23:07:13 +02:00
|
|
|
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
|
|
|
|
set PreferredToolArchitecture=x64
|
|
|
|
)
|
|
|
|
|
2014-12-22 23:38:23 +01:00
|
|
|
msbuild.exe /property:Configuration=%3 /property:Platform=%2 /target:Clean /verbosity:normal "%~1"
|
2014-12-22 22:40:20 +01:00
|
|
|
if not "%ERRORLEVEL%"=="0" (
|
2016-12-20 20:32:59 +01:00
|
|
|
"%~dp0\..\..\..\Prerequisites\CEcho\cecho.exe" red "\nBuild process has failed!\n"
|
2014-12-23 00:23:41 +01:00
|
|
|
pause && exit
|
2014-12-22 22:40:20 +01:00
|
|
|
)
|
|
|
|
|
2014-12-22 23:38:23 +01:00
|
|
|
msbuild.exe /property:Configuration=%3 /property:Platform=%2 /target:Rebuild /verbosity:normal "%~1"
|
2014-12-22 22:40:20 +01:00
|
|
|
if not "%ERRORLEVEL%"=="0" (
|
2016-12-20 20:32:59 +01:00
|
|
|
"%~dp0\..\..\..\Prerequisites\CEcho\cecho.exe" red "\nBuild process has failed!\n"
|
2014-12-23 00:23:41 +01:00
|
|
|
pause && exit
|
2014-12-22 22:40:20 +01:00
|
|
|
)
|
|
|
|
|
2014-12-22 23:38:23 +01:00
|
|
|
msbuild.exe /property:Configuration=%3 /property:Platform=%2 /target:Build /verbosity:normal "%~1"
|
2014-12-22 22:40:20 +01:00
|
|
|
if not "%ERRORLEVEL%"=="0" (
|
2016-12-20 20:32:59 +01:00
|
|
|
"%~dp0\..\..\..\Prerequisites\CEcho\cecho.exe" red "\nBuild process has failed!\n"
|
2014-12-23 00:23:41 +01:00
|
|
|
pause && exit
|
2014-12-22 22:40:20 +01:00
|
|
|
)
|