Changeset 769 for trunk/bin


Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/bin/createpackage.pl

    r651 r769  
    5555# Use File::Spec services mainly rel2abs
    5656use File::Spec;
     57
     58
    5759# use CWD abs_bath, which is exported only on request
    5860use Cwd 'abs_path';
     
    112114my $certfile = "";
    113115my $preserveUnsigned = "";
     116
    114117
    115118unless (GetOptions('i|install' => \$install,
    116119                   'p|preprocess' => \$preprocessonly,
    117120                   'c|certfile=s' => \$certfile,
    118                    'u|unsigned' => \$preserveUnsigned,)){
     121                   'u|unsigned' => \$preserveUnsigned,
     122                   's|stub' => \$stub,)){
    119123    Usage();
    120124}
     
    154158my $unsigned_sis_name = $sisoutputbasename."_unsigned.sis";
    155159my $signed_sis_name = $sisoutputbasename.".sis";
     160
    156161
    157162# Store some utility variables
     
    257262}
    258263
    259 # Create SIS.
    260 system ("makesis $pkgoutput $unsigned_sis_name");
    261 
    262 # Sign SIS with certificate info given as an argument.
    263 system ("signsis $unsigned_sis_name $signed_sis_name $certificate $key $passphrase");
    264 
    265 # Check if creating signed SIS Succeeded
    266 stat($signed_sis_name);
    267 if( -e _ ) {
    268     my $targetInsert = "";
    269     if ($targetplatform ne "-") {
    270         $targetInsert = "for $targetplatform ";
    271     }
    272     print ("\nSuccessfully created $signed_sis_name ${targetInsert}using certificate: $certtext!\n");
    273 
    274     # Sign with additional certificates & keys
    275     for my $row ( @certificates ) {
    276         # Get certificate absolute file names, relative paths are relative to certfilepath
    277         my $abscert = File::Spec->rel2abs( $row->[0], $certfilepath);
    278         my $abskey = File::Spec->rel2abs( $row->[1], $certfilepath);
    279 
    280         system ("signsis $signed_sis_name $signed_sis_name $abscert $abskey $row->[2]");
    281         print ("\tAdditionally signed the SIS with certificate: $row->[0]!\n");
    282     }
    283 
    284     # remove temporary pkg and unsigned sis
    285     if (!$preservePkgOutput) {
    286         unlink $pkgoutput;
    287     }
    288     if (!$preserveUnsigned) {
    289         unlink $unsigned_sis_name;
    290     }
    291 
    292     # Install the sis if requested
    293     if ($install) {
    294         print ("\nInstalling $signed_sis_name...\n");
    295         system ("$signed_sis_name");
    296     }
     264if($stub) {
     265    if(!($ENV{EPOCROOT})) { die("EPOCROOT must be set to create stub sis files"); }
     266    my $systeminstall = "$ENV{EPOCROOT}epoc32/data/z/system/install";
     267    mkpath($systeminstall);
     268    my $stub_sis_name = $systeminstall."/".$stub_sis_name;
     269    # Create stub SIS.
     270    system ("makesis -s $pkgoutput $stub_sis_name");
    297271} else {
    298     # Lets leave the generated PKG for problem solving purposes
    299     print ("\nSIS creation failed!\n");
    300 }
    301 
     272    # Create SIS.
     273    system ("makesis $pkgoutput $unsigned_sis_name");
     274    print("\n");
     275
     276    # Sign SIS with certificate info given as an argument.
     277    system ("signsis $unsigned_sis_name $signed_sis_name $certificate $key $passphrase");
     278
     279    # Check if creating signed SIS Succeeded
     280    stat($signed_sis_name);
     281    if( -e _ ) {
     282        my $targetInsert = "";
     283        if ($targetplatform ne "-") {
     284            $targetInsert = "for $targetplatform ";
     285        }
     286        print ("Successfully created $signed_sis_name ${targetInsert}using certificate: $certtext!\n");
     287
     288        # Sign with additional certificates & keys
     289        for my $row ( @certificates ) {
     290            # Get certificate absolute file names, relative paths are relative to certfilepath
     291            my $abscert = File::Spec->rel2abs( $row->[0], $certfilepath);
     292            my $abskey = File::Spec->rel2abs( $row->[1], $certfilepath);
     293
     294            system ("signsis $signed_sis_name $signed_sis_name $abscert $abskey $row->[2]");
     295            print ("\tAdditionally signed the SIS with certificate: $row->[0]!\n");
     296        }
     297
     298        # remove temporary pkg and unsigned sis
     299        if (!$preservePkgOutput) {
     300            unlink $pkgoutput;
     301        }
     302        if (!$preserveUnsigned) {
     303            unlink $unsigned_sis_name;
     304        }
     305
     306        # Install the sis if requested
     307        if ($install) {
     308            print ("\nInstalling $signed_sis_name...\n");
     309            system ("$signed_sis_name");
     310        }
     311    } else {
     312        # Lets leave the generated PKG for problem solving purposes
     313        print ("\nSIS creation failed!\n");
     314    }
     315}
    302316
    303317#end of file
  • trunk/bin/syncqt

    r651 r769  
    195195    } elsif(basename($iheader) eq "qtconcurrentrun.h") {
    196196        push @ret, "QtConcurrentRun"
     197
     198
    197199    }
    198200
Note: See TracChangeset for help on using the changeset viewer.