sdkcreationmw/sdkbuild/SDK_WINSCW/Create_SDK.pl
author Shabe Razvi <shaber@symbian.org>
Thu, 04 Nov 2010 17:22:05 +0000
changeset 4 b3b823debf08
parent 0 b26acd06ea60
permissions -rw-r--r--
Workaround for Bug 3917 - CWinsockInterface::DataSent calls NotifyDataSent which is not implemented.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     1
#
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     2
# Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     3
# All rights reserved.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     4
# This component and the accompanying materials are made available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     5
# under the terms of "Eclipse Public License v1.0"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     6
# which accompanies this distribution, and is available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     8
#
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     9
# Initial Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    11
#
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    12
# Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    13
#
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    14
# Description: 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    15
#
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    16
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    17
use TinyMake ':all';
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    18
use strict;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    19
use Cwd;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    20
use SDK_vars;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    21
use SDK;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    22
use SDK_utils;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    23
use Remote_utils;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    24
use SDK_lang;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    25
use ApiRef;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    26
use File::Path;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    27
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    28
my $phasedir = "phase";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    29
my $logsdir = "logs";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    30
my ($sec,$min,$hour,$mday,$mon,$year) =  localtime();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    31
my $start_time = sprintf ("%02d%02d%02d%02d%02d", ($year + 1900)%100, $mon + 1, $mday, $hour, $min);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    32
our $given_target = $ARGV[0] || "${phasedir}\\_all";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    33
$|=1; #Immediate flush
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    34
mkpath (${phasedir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    35
mkpath (${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    36
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    37
file "${phasedir}\\initialize.log" => sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    38
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    39
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    40
  initialize($start_time, \%iniH);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    41
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    42
    sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    43
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    44
file "${phasedir}\\sdk_installer.log" => ["${phasedir}\\sdk_files.log"], sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    45
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    46
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    47
  run_installer();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    48
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    49
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    50
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    51
file "${phasedir}\\sdk_publish.log" => ["${phasedir}\\sdk_installer.log"], sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    52
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    53
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    54
  publish_sdk();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    55
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    56
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    57
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    58
file "${phasedir}\\sdk_files.log" => ["${phasedir}\\sce.log","${phasedir}\\sdk_api.log","${phasedir}\\api_ref.log","${phasedir}\\language_packages.log","${phasedir}\\sdk_common.log",
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    59
  "${phasedir}\\_copy_api_platform"], sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    60
	  record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    61
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    62
  create_sdk_files();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    63
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    64
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    65
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    66
file "${phasedir}\\sdk_common.log" => ["${phasedir}\\sce.log","${phasedir}\\sdk_api.log"], sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    67
       record_time("start",$target,$phasedir);	
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    68
  start_target($target);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    69
  create_sdk_common(\%iniH); 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    70
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    71
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    72
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    73
file "${phasedir}\\language_packages.log" => ["${phasedir}\\copy_lang_zips.log","${phasedir}\\s60_platform.log","${phasedir}\\sdk_api.log","${phasedir}\\sdk_common.log"], sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    74
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    75
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    76
  create_lang_package($iniH{S60_Root}, "$iniH{S60_Root}\\Languages", $common_graylist, $blacklist, "\\sdk_lang\\epoc32\\tools\\ecmt\\language");
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    77
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    78
  sh "touch $target"; 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    79
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    80
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    81
file "${phasedir}\\sdk_api.log" => ["${phasedir}\\fetch_IF_sheets.log","${phasedir}\\sce.log"], sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    82
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    83
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    84
  create_sdk_api(\%iniH);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    85
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    86
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    87
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    88
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    89
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    90
file "${phasedir}\\S60_api_description.log" => ["${phasedir}\\s60_all.log"], sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    91
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    92
  start_target($target);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    93
  create_apidescr_xml( \%iniH, "$iniH{S60_Root}\\sf", "$repository_area\\CPP_API\\apidescr.xml");
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    94
  record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    95
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    96
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    97
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    98
file "${phasedir}\\sce.log" => ["${phasedir}\\s60_platform.log","${phasedir}\\synergy_work_area.log","${phasedir}\\sdk_binary_components.log","${phasedir}\\sdk_platform.log", 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    99
  "${phasedir}\\examples_Java.log", "${phasedir}\\fetch_capas.log","${phasedir}\\beatnik.log"], sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   100
	  record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   101
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   102
  sce_prepare(\%iniH);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   103
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   104
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   105
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   106
file "${phasedir}\\sdk_platform.log" => ["${phasedir}\\s60_platform.log","${phasedir}\\synergy_work_area.log"], sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   107
       record_time("start",$target,$phasedir);	
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   108
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   109
  integrate(\%iniH);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   110
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   111
  sh "touch $target"; 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   112
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   113
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   114
file "${phasedir}\\examples_Java.log" => sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   115
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   116
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   117
  build_examples_java(\%iniH);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   118
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   119
  sh "touch $target"; 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   120
}; 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   121
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   122
file "${phasedir}\\synergy_work_area.log" => sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   123
       record_time("start",$target,$phasedir);	
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   124
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   125
  reconfigure(\%iniH);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   126
  copy_sdk_source_components(\%iniH); 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   127
  start_target("${phasedir}\\sdk_binary_components.log");
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   128
  sh "touch ${phasedir}\\sdk_binary_components.log";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   129
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   130
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   131
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   132
file "${phasedir}\\s60_platform.log" => ["${phasedir}\\s60_all.log","${phasedir}\\s60_recovery.log","${phasedir}\\copy_lang_zips.log"], sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   133
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   134
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   135
  copy_platform_patch();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   136
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   137
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   138
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   139
file "${phasedir}\\s60_all.log" => ["${phasedir}\\initialize.log"], sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   140
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   141
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   142
  copy_platform(\%iniH);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   143
  start_target("${phasedir}\\s60_recovery.log");
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   144
  sh "touch ${phasedir}\\s60_recovery.log";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   145
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   146
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   147
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   148
file "${phasedir}\\s60_recovery.log" =>  sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   149
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   150
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   151
  unzip_some_source_zips();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   152
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   153
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   154
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   155
file "${phasedir}\\copy_lang_zips.log" =>  sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   156
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   157
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   158
  copy_language_zips(\%iniH);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   159
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   160
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   161
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   162
file "${phasedir}\\copy_api_platform.log" =>  sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   163
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   164
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   165
  copy_api_platform(\%iniH);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   166
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   167
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   168
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   169
file "${phasedir}\\sdk_binary_components.log" => ["${phasedir}\\synergy_work_area.log"], sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   170
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   171
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   172
  copy_sdk_binary_components(\%iniH);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   173
   #Todo: Add Path validator code here
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   174
  my $dump =dump_sdk_ini(\%iniH);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   175
  validate_sdk_ini_paths($dump,$target,\%iniH,"Languages_Patch");
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   176
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   177
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   178
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   179
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   180
file "${phasedir}\\beatnik.log" => sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   181
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   182
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   183
  beatnik($iniH{Beatnik});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   184
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   185
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   186
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   187
file "${phasedir}\\fetch_capas.log" => sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   188
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   189
  start_target($target);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   190
  fetch_capas($iniH{Capas});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   191
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   192
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   193
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   194
file "${phasedir}\\fetch_IF_sheets.log" => ["${phasedir}\\initialize.log"], sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   195
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   196
  start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   197
  fetch_IF_sheets($iniH{CPP_API}, "$iniH{S60_Root}\\sce\\IFs", \%iniH);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   198
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   199
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   200
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   201
file "${phasedir}\\tidy_up" => sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   202
	
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   203
  tidy_up(${phasedir}, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   204
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   205
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   206
file "${phasedir}\\sdk.ini" => sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   207
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   208
 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   209
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   210
  my $dump = dump_sdk_ini(\%iniH);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   211
  local $,="\n";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   212
  print @$dump;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   213
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   214
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   215
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   216
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   217
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   218
# This is for testing purposes only....
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   219
file "phase\\dummy" => sub { 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   220
	record_time("start",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   221
	 start_target($target, ${logsdir});
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   222
  print "Dummy phase entered !\n";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   223
  
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   224
  print  "changed value: $iniH{StartDir}\n";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   225
    copy_and_interpolate("$init_dir\\$::iniH{PTBase}\\templates\\apiref32.properties", "$init_dir\\$::iniH{PTBase}\\conf");
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   226
    copy_and_interpolate("$init_dir\\$::iniH{PTBase}\\templates\\DoxySettings.cfg", "$init_dir\\$::iniH{PTBase}\\doxygen");
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   227
    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   228
	 record_time("end",$target,$phasedir);   
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   229
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   230
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   231
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   232
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   233
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   234
make @ARGV;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   235
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   236
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   237
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   238
__END__
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   239
file "${phasedir}\\_cpp_installer" => ["${phasedir}\\_sdk_cpp"], sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   240
  start_target($target);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   241
  run_cpp_installer();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   242
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   243
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   244
file "${phasedir}\\_cpp_publish" => ["${phasedir}\\_cpp_installer"], sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   245
  start_target($target);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   246
  publish_cpp();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   247
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   248
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   249
file "${phasedir}\\_java_installer" => ["${phasedir}\\_sdk_java"], sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   250
  start_target($target);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   251
  run_java_installer();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   252
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   253
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   254
};
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   255
file "${phasedir}\\_java_publish" => ["${phasedir}\\_java_installer"], sub {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   256
  start_target($target);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   257
  publish_java();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   258
   record_time("end",$target,$phasedir);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   259
  sh "touch $target";
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
   260
};