build/tools/build_Variant.cmd
branchRCL_3
changeset 21 ea3e26ea6629
parent 6 c8ecf89eb77f
equal deleted inserted replaced
6:c8ecf89eb77f 21:ea3e26ea6629
     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 
       
    21 setlocal
       
    22 if not defined ZIPS_PATH (
       
    23 call set ZIPS_PATH=\zips\
       
    24 )
       
    25 
       
    26 if not defined LOGS_PATH (
       
    27 call set LOGS_PATH=\logs\
       
    28 )
       
    29 
       
    30 echo set build tools path
       
    31 PATH=%PATH%;\epoc32\tools\;\epoc32\tools\build\;\epoc32\tools\s60tools\
       
    32 
       
    33 if not exist %ZIPS_PATH% (
       
    34 md %ZIPS_PATH%
       
    35 )
       
    36 if not exist %LOGS_PATH% (
       
    37 md %LOGS_PATH%
       
    38 )
       
    39 
       
    40 if exist \epoc32\tools\s60tools\variant_build_china.xml (
       
    41 perl -le "$time=localtime; print '=== Stage=1 build china variant', $time"
       
    42 rem generate apac cenreps with new config tool 
       
    43 cd \s60\tools\toolsextensions\ConfigurationTool\
       
    44 call cli_build.cmd -master_conf apac -impl \epoc32\rom\config\confml_data\s60 -confml \epoc32\rom\config\confml_data\apac -report \logs\configtool_apac_delta.txt -ignore_errors > %LOGS_PATH%configtool_apac_log.txt 2>&1
       
    45 cd \
       
    46 call build_tbs.cmd variant_build_china \epoc32\tools\s60tools\
       
    47 
       
    48 perl -le "$time=localtime; print '=== Stage=1 zip china delta binaries', $time"
       
    49 call perl \epoc32\tools\s60tools\parse_what_log.pl -i %LOGS_PATH%variant_build_china_bld.log -filter \epoc32 -zip %ZIPS_PATH%delta_china_package -o %LOGS_PATH%variant_china_what.log -ex productvariant.hrh
       
    50 
       
    51 call zip  -r -u   %ZIPS_PATH%delta_china_package -@ < \logs\configtool_apac_delta.txt 
       
    52 
       
    53 )
       
    54 
       
    55 if exist \epoc32\tools\s60tools\variant_build_japan.xml (
       
    56 perl -le "$time=localtime; print '=== Stage=1 build japan variant', $time"
       
    57 cd \s60\tools\toolsextensions\ConfigurationTool\
       
    58 call cli_build.cmd -master_conf japan -impl \epoc32\rom\config\confml_data\s60 -confml \epoc32\rom\config\confml_data\japan -report \logs\configtool_japan_delta.txt -ignore_errors > %LOGS_PATH%configtool_japan_log.txt 2>&1
       
    59 cd \
       
    60 call build_tbs.cmd variant_build_japan \epoc32\tools\s60tools\
       
    61 
       
    62 perl -le "$time=localtime; print '=== Stage=1 zip japan delta binaries', $time"
       
    63 call perl \epoc32\tools\s60tools\parse_what_log.pl -i %LOGS_PATH%variant_build_japan_bld.log -filter \epoc32 -zip %ZIPS_PATH%delta_japan_package -o %LOGS_PATH%variant_japan_what.log -ex productvariant.hrh
       
    64 
       
    65 call zip  -r -u   %ZIPS_PATH%delta_japan_package -@ < \logs\configtool_japan_delta.txt
       
    66 
       
    67 )
       
    68 
       
    69 cd \s60\tools\toolsextensions\ConfigurationTool\
       
    70 rem thai
       
    71 perl -le "$time=localtime; print '=== Stage=1 zip thai delta binaries', $time"
       
    72 call cli_build.cmd -master_conf thai -impl \epoc32\rom\config\confml_data\s60 -confml \epoc32\rom\config\confml_data\thai -report \logs\configtool_thai_delta.txt -ignore_errors > %LOGS_PATH%configtool_thai_log.txt 2>&1
       
    73 call zip  -r      %ZIPS_PATH%delta_thai_package -@ < \logs\configtool_thai_delta.txt
       
    74 
       
    75 rem return western 
       
    76 cd \s60\tools\toolsextensions\ConfigurationTool\
       
    77 call cli_build.cmd -master_conf s60 -impl \epoc32\rom\config\confml_data\s60 -confml \epoc32\rom\config\confml_data\s60 -report \logs\configtool_return_western.txt -ignore_errors > %LOGS_PATH%cf_return_western_log.txt 2>&1
       
    78 call zip  -r -u   %ZIPS_PATH%delta_western_package -@ < \logs\configtool_return_western.txt
       
    79 cd \
       
    80 goto end
       
    81 
       
    82 :end
       
    83 endlocal