Changeset 16235 for branches/2931_OR-Tools_LP_MIP/Build.cmd
- Timestamp:
- 10/18/18 14:07:32 (6 years ago)
- Location:
- branches/2931_OR-Tools_LP_MIP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2931_OR-Tools_LP_MIP
- Property svn:mergeinfo changed
/branches/2916_IndexedDataTableSerialization (added) merged: 15918 /trunk merged: 16168-16169,16177,16179,16184-16187,16202-16209,16211,16213,16216,16218-16219,16221,16223-16224,16232
- Property svn:mergeinfo changed
-
branches/2931_OR-Tools_LP_MIP/Build.cmd
- Property svn:mergeinfo changed
/trunk/Build.cmd (added) merged: 16221
r16138 r16235 1 1 @ECHO OFF 2 3 SET CLEANBEFOREBUILD= 4 5 SET SELECTED= 6 SET CONFIGURATION= 7 SET PLATFORM= 8 9 IF "%~1"=="" GOTO :prompt_solution 10 11 SET SELECTED=%1 12 IF NOT EXIST %SELECTED% ( 13 ECHO Solution file %SELECTED% could not be found. 14 GOTO :end 15 ) 16 ECHO Building solution %SELECTED% ... 17 GOTO :config_selection 18 19 :prompt_solution 20 SET /A COUNT=0 21 FOR /F "tokens=*" %%A IN ('dir /B *.sln') DO ( 22 CALL :forloopbody "%%A" 23 ) 24 25 IF "%COUNT%"=="1" ( 26 SET SELECTED=%SOLUTIONS.1% 27 ECHO Building %SOLUTIONS.1% as it is the only solution that was found ... 28 GOTO :config_selection 29 ) 30 31 ECHO Found the following solutions: 32 FOR /F "tokens=2* delims=.=" %%A IN ('SET SOLUTIONS.') DO ECHO %%A = %%B 33 ECHO. 34 SET /P SOLUTIONINDEX=Which solution to build? Type the number: 35 36 SET SELECTED="" 37 FOR /F "tokens=2* delims=.=" %%A IN ('SET SOLUTIONS.') DO ( 38 IF "%%A"=="%SOLUTIONINDEX%" SET SELECTED=%%B 39 ) 40 41 IF %SELECTED%=="" GOTO :eof 42 43 :config_selection 44 IF "%~2"=="" GOTO :prompt_config 45 46 SET CONFIGURATION=%~2 47 ECHO Building configuration %CONFIGURATION% ... 48 GOTO :platform_selection 49 50 :prompt_config 51 SET /P CONFIGURATION=Which configuration to build [Release]: 52 IF "%CONFIGURATION%"=="" SET CONFIGURATION=Release 53 54 :platform_selection 55 IF "%~3"=="" GOTO :prompt_platform 56 57 SET PLATFORM=%~3 58 ECHO Building platform %PLATFORM% ... 59 GOTO :clean 60 61 :prompt_platform 62 SET /P PLATFORM=Which platform to build [Any CPU]: 63 IF "%PLATFORM%"=="" SET PLATFORM=Any CPU 64 65 :clean 66 IF "%~4"=="" GOTO :prompt_clean 67 68 SET CLEANBEFOREBUILD=%~4 69 GOTO :main 70 71 :prompt_clean 72 SET /P CLEANBEFOREBUILD=Would you like to clean before building [n]: 73 IF "%CLEANBEFOREBUILD%"=="" SET CLEANBEFOREBUILD=n 74 75 :main 76 REM Then execute msbuild to clean and build the solution 77 REM Disable that msbuild creates a cache file of the solution 78 SET MSBuildUseNoSolutionCache=1 79 REM Run msbuild to clean and then build 80 IF "%CLEANBEFOREBUILD%" NEQ "n" ( 81 ECHO Cleaning ... 82 msbuild.exe %SELECTED% /target:Clean /p:Configuration="%CONFIGURATION%",Platform="%PLATFORM%" /m:2 /nologo /verbosity:q /clp:ErrorsOnly 83 ) 84 ECHO Building ... 85 msbuild.exe %SELECTED% /target:Build /p:Configuration="%CONFIGURATION%",Platform="%PLATFORM%" /m:2 /nologo /verbosity:q /clp:ErrorsOnly 86 87 ECHO. 88 ECHO DONE. 89 90 :end 91 92 PAUSE 93 94 GOTO :eof 95 96 REM This workaround is necessary so that COUNT gets reevaluated 97 :forloopbody 98 SET /A COUNT+=1 99 SET SOLUTIONS.%COUNT%=%1 100 GOTO :eof 2 powershell.exe .\Build.ps1 - Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.