修订版 | 68 (tree) |
---|---|
时间 | 2011-05-22 20:40:52 |
作者 | (del#42492) |
ビルドの結果がわかり易いようにスクリプトを修正した。
@@ -7,24 +7,61 @@ | ||
7 | 7 | |
8 | 8 | @ECHO OFF |
9 | 9 | |
10 | -CALL "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" | |
10 | +REM -------------------------------------------------- | |
11 | +REM 事前処理 | |
12 | +REM -------------------------------------------------- | |
11 | 13 | |
12 | -msbuild ..\..\main\core\spcf-core.vcxproj /t:Clean;Build /p:configuration=DEBUG | |
13 | -msbuild ..\..\main\core\spcf-core.vcxproj /t:Clean;Build /p:configuration=RELEASE | |
14 | +SET STDOUT=stdout.log | |
15 | +SET STDERR=stderr.log | |
14 | 16 | |
15 | -msbuild ..\..\main\grammar\spcf-grammar.vcxproj /t:Clean;Build /p:configuration=DEBUG | |
16 | -msbuild ..\..\main\grammar\spcf-grammar.vcxproj /t:Clean;Build /p:configuration=RELEASE | |
17 | +DEL %STDOUT% 2> nul | |
18 | +DEL %STDERR% 2> nul | |
17 | 19 | |
18 | -msbuild ..\..\main\processor\spcf-processor.vcxproj /t:Clean;Build /p:configuration=DEBUG | |
19 | -msbuild ..\..\main\processor\spcf-processor.vcxproj /t:Clean;Build /p:configuration=RELEASE | |
20 | +ECHO [%DATE% %TIME%] BUILD START ... | |
20 | 21 | |
21 | -msbuild ..\..\main\view\spcf-view.vcxproj /t:Clean;Build /p:configuration=DEBUG | |
22 | -msbuild ..\..\main\view\spcf-view.vcxproj /t:Clean;Build /p:configuration=RELEASE | |
22 | +CALL "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" >> "%STDOUT%" 2>> "%STDERR%" | |
23 | +IF %ERRORLEVEL% NEQ 0 GOTO :FAILED | |
23 | 24 | |
24 | -msbuild ..\..\main\sapi\spcf-sapi.vcxproj /t:Clean;Build /p:configuration=DEBUG | |
25 | -msbuild ..\..\main\sapi\spcf-sapi.vcxproj /t:Clean;Build /p:configuration=RELEASE | |
25 | +REM -------------------------------------------------- | |
26 | +REM メイン処理 | |
27 | +REM -------------------------------------------------- | |
26 | 28 | |
27 | -msbuild ..\..\main\engine-factory\spcf-engine-factory.vcxproj /t:Clean;Build /p:configuration=DEBUG | |
28 | -msbuild ..\..\main\engine-factory\spcf-engine-factory.vcxproj /t:Clean;Build /p:configuration=RELEASE | |
29 | +CALL :BUILD core | |
30 | +CALL :BUILD processor | |
31 | +CALL :BUILD view | |
32 | +CALL :BUILD sapi | |
33 | +CALL :BUILD engine-factory | |
29 | 34 | |
30 | -@ENDLOCAL | |
35 | +REM -------------------------------------------------- | |
36 | +REM 事後処理 | |
37 | +REM -------------------------------------------------- | |
38 | + | |
39 | +ECHO [%DATE% %TIME%] BUILD SUCCEESSED ... | |
40 | + | |
41 | +EXIT /B 0 | |
42 | + | |
43 | +REM -------------------------------------------------- | |
44 | +REM ビルド関数 | |
45 | +REM -------------------------------------------------- | |
46 | + | |
47 | +:BUILD | |
48 | + | |
49 | +SET PACKAGE=%1 | |
50 | +ECHO [%DATE% %TIME%] BUILD START %PACKAGE% | |
51 | +msbuild ..\..\main\%PACKAGE%\spcf-%PACKAGE%.vcxproj /t:Clean;Build /p:configuration=DEBUG >> "%STDOUT%" 2>> "%STDERR%" | |
52 | +IF %ERRORLEVEL% NEQ 0 GOTO :FAILED | |
53 | +msbuild ..\..\main\%PACKAGE%\spcf-%PACKAGE%.vcxproj /t:Clean;Build /p:configuration=RELEASE >> "%STDOUT%" 2>> "%STDERR%" | |
54 | +IF %ERRORLEVEL% NEQ 0 GOTO :FAILED | |
55 | +ECHO [%DATE% %TIME%] BUILD FINISH %PACKAGE% | |
56 | + | |
57 | +EXIT /B 0 | |
58 | + | |
59 | +REM -------------------------------------------------- | |
60 | +REM エラーの出力 | |
61 | +REM -------------------------------------------------- | |
62 | + | |
63 | +:FAILED | |
64 | + | |
65 | +ECHO [%DATE% %TIME%] BUILD FAILED ... RETURNCODE = %ERRORLEVEL% | |
66 | + | |
67 | +EXIT /B %ERRORLEVEL% |