1 @echo off |
|
2 rem |
|
3 rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 rem All rights reserved. |
|
5 rem This component and the accompanying materials are made available |
|
6 rem under the terms of "Eclipse Public License v1.0" |
|
7 rem which accompanies this distribution, and is available |
|
8 rem at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 rem |
|
10 rem Initial Contributors: |
|
11 rem Nokia Corporation - initial contribution. |
|
12 rem |
|
13 rem Contributors: |
|
14 rem |
|
15 rem Description: |
|
16 rem |
|
17 @echo on |
|
18 |
|
19 @echo off |
|
20 setlocal |
|
21 perl -le "$time=localtime; print '=== Stage=1 started ', $time" |
|
22 |
|
23 if not "%1" == "" ( |
|
24 set BLDLAYER_CONFIGURATION=%1 |
|
25 ) else ( |
|
26 set BLDLAYER_CONFIGURATION=build |
|
27 ) |
|
28 |
|
29 |
|
30 if not defined LOGS_PATH ( |
|
31 set LOGS_PATH=.\ |
|
32 ) |
|
33 |
|
34 if not exist %LOGS_PATH% ( |
|
35 echo create folder for logs |
|
36 md %LOGS_PATH% |
|
37 ) |
|
38 |
|
39 if not defined BUILD_XML_PATH ( |
|
40 set BUILD_XML_PATH=.\ |
|
41 ) |
|
42 |
|
43 if not exist %BUILD_XML_PATH% ( |
|
44 echo create folder for build xml file |
|
45 md %BUILD_XML_PATH% |
|
46 ) |
|
47 |
|
48 |
|
49 echo Build logs will be written to %LOGS_PATH% |
|
50 |
|
51 if exist %LOGS_PATH%scanlog_%BLDLAYER_CONFIGURATION%.html ( |
|
52 echo Remove old scanlog because htmlscanlog.pl do not overwrite it |
|
53 call del /q %LOGS_PATH%scanlog_%BLDLAYER_CONFIGURATION%.html |
|
54 ) |
|
55 |
|
56 |
|
57 if exist .\systemDefinition.xml ( |
|
58 if exist .\systemDefinitionLayer.xml ( |
|
59 echo needed files exist to %BLDLAYER_CONFIGURATION% Ado |
|
60 set SGML_SEARCH_PATH=\epoc32\tools\systemDefinition\ |
|
61 echo perl \epoc32\tools\build\genxml.pl -x .\systemDefinition.xml -n %BLDLAYER_CONFIGURATION% -s \ -o %BUILD_XML_PATH%%BLDLAYER_CONFIGURATION%.xml -l %LOGS_PATH%%BLDLAYER_CONFIGURATION%_xml.log |
|
62 call perl \epoc32\tools\build\genxml.pl -x .\systemDefinition.xml -n %BLDLAYER_CONFIGURATION% -s \ -o %BUILD_XML_PATH%%BLDLAYER_CONFIGURATION%.xml -l %LOGS_PATH%%BLDLAYER_CONFIGURATION%_xml.log |
|
63 ) else ( |
|
64 echo systemDefinitionLayer.xml not found, %BLDLAYER_CONFIGURATION% Ido |
|
65 set SGML_SEARCH_PATH=\epoc32\tools\systemDefinition\ |
|
66 echo perl \epoc32\tools\build\genxml.pl -x .\systemDefinition.xml -n %BLDLAYER_CONFIGURATION% -s \ -o %BUILD_XML_PATH%%BLDLAYER_CONFIGURATION%.xml -l %LOGS_PATH%%BLDLAYER_CONFIGURATION%_xml.log |
|
67 call perl \epoc32\tools\build\genxml.pl -x .\systemDefinition.xml -n %BLDLAYER_CONFIGURATION% -s \ -o %BUILD_XML_PATH%%BLDLAYER_CONFIGURATION%.xml -l %LOGS_PATH%%BLDLAYER_CONFIGURATION%_xml.log |
|
68 ) |
|
69 ) else ( |
|
70 echo systemDefinition.xml not found |
|
71 goto :end |
|
72 ) |
|
73 |
|
74 echo Building ... |
|
75 call \epoc32\tools\s60tools\build_tbs.cmd %BLDLAYER_CONFIGURATION% %BUILD_XML_PATH% |
|
76 |
|
77 :end |
|
78 perl -le "$time=localtime; print '=== Stage=1 finished ', $time" |
|
79 endlocal |
|
80 |
|