Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7594


Ignore:
Timestamp:
03/11/12 11:27:19 (13 years ago)
Author:
abeham
Message:

#1722: changed build script to use Build instead of Rebuild (all of a sudden it didn't work anymore on two of my machines). I added an option if the solution should be cleaned before building.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/Build.cmd

    r7087 r7594  
    11@ECHO OFF
    22
    3 SET CLEANBEFOREBUILD=0
     3SET CLEANBEFOREBUILD=
    44
    55SET SELECTED=
     
    5757SET PLATFORM=%~3
    5858ECHO Building platform %PLATFORM% ...
    59 GOTO :main
     59GOTO :clean
    6060
    6161:prompt_platform
    6262SET /P PLATFORM=Which platform to build [Any CPU]:
    6363IF "%PLATFORM%"=="" SET PLATFORM=Any CPU
     64
     65:clean
     66IF "%~4"=="" GOTO :prompt_clean
     67
     68SET CLEANBEFOREBUILD=%~4
     69GOTO :main
     70
     71:prompt_clean
     72SET /P CLEANBEFOREBUILD=Would you like to clean before building [n]:
     73IF "%CLEANBEFOREBUILD%"=="" SET CLEANBEFOREBUILD=n
    6474
    6575:main
     
    7282SET MSBuildUseNoSolutionCache=1
    7383REM Run msbuild to clean and then build
    74 IF "%CLEANBEFOREBUILD%"=="1" (
     84IF "%CLEANBEFOREBUILD%" NEQ "n" (
    7585  ECHO Cleaning ...
    7686  %MSBUILDPATH%msbuild.exe %SELECTED% /target:Clean /p:Configuration="%CONFIGURATION%",Platform="%PLATFORM%" /m:2 /nologo /verbosity:q /clp:ErrorsOnly
    7787)
    7888ECHO Building ...
    79 %MSBUILDPATH%msbuild.exe %SELECTED% /target:Rebuild /p:Configuration="%CONFIGURATION%",Platform="%PLATFORM%" /m:2 /nologo /verbosity:q /clp:ErrorsOnly
     89%MSBUILDPATH%msbuild.exe %SELECTED% /target:Build /p:Configuration="%CONFIGURATION%",Platform="%PLATFORM%" /m:2 /nologo /verbosity:q /clp:ErrorsOnly
    8090
    8191ECHO.
Note: See TracChangeset for help on using the changeset viewer.