Changeset 651 for trunk/bin/syncqt
- Timestamp:
- Mar 8, 2010, 12:52:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.2 (added) merged: 650 /branches/vendor/nokia/qt/current merged: 649 /branches/vendor/nokia/qt/4.6.1 removed
- Property svn:mergeinfo changed
-
trunk/bin/syncqt
r561 r651 4 4 # Synchronizes Qt header files - internal development tool. 5 5 # 6 # Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).6 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 7 7 # Contact: Nokia Corporation (qt-info@nokia.com) 8 8 # … … 15 15 use Config; 16 16 use strict; 17 18 for (my $i = 0; $i < $#ARGV; $i++) { 19 if ($ARGV[$i] eq "-base-dir" && $i < $#ARGV - 1) { 20 $ENV{"QTDIR"} = $ARGV[$i + 1]; 21 last; 22 } 23 } 17 24 18 25 die "syncqt: QTDIR not defined" if ! $ENV{"QTDIR"}; # sanity check … … 62 69 my $check_includes = 0; 63 70 my $copy_headers = 0; 71 my $create_uic_class_map = 1; 72 my $create_private_headers = 1; 64 73 my @modules_to_sync ; 65 74 $force_relative = 1 if ( -d "/System/Library/Frameworks" ); … … 85 94 print " -showonly Show action but not perform (default: " . ($showonly ? "yes" : "no") . ")\n"; 86 95 print " -outdir <PATH> Specify output directory for sync (default: $out_basedir)\n"; 96 print " -separate-module <NAME>:<PROFILEDIR>:<HEADERDIR> Create headers for <NAME> with original headers in <HEADERDIR> relative to <PROFILEDIR> \n"; 87 97 print " -help This help\n"; 88 98 exit 0; … … 577 587 $var = "module"; 578 588 $val = shift @ARGV; 589 } elsif("$arg" eq "-separate-module") { 590 $var = "separate-module"; 591 $val = shift @ARGV; 579 592 } elsif("$arg" eq "-show") { 580 593 $var = "showonly"; 581 594 $val = "yes"; 595 } elsif("$arg" eq "-base-dir") { 596 # skip, it's been dealt with at the top of the file 597 shift @ARGV; 598 next; 582 599 } elsif("$arg" eq '*') { 583 600 # workaround for windows 9x where "%*" expands to "*" … … 629 646 die "No such module: $val" unless(defined $modules{$val}); 630 647 push @modules_to_sync, $val; 648 } elsif ("$var" eq "separate-module") { 649 my ($module, $prodir, $headerdir) = split(/:/, $val); 650 $modules{$module} = $prodir; 651 push @modules_to_sync, $module; 652 $moduleheaders{$module} = $headerdir; 653 $create_uic_class_map = 0; 654 $create_private_headers = 0; 631 655 } elsif ("$var" eq "output") { 632 656 my $outdir = $val; … … 808 832 $class_lib_map_contents .= "QT_CLASS_LIB($_, $lib, $header_base)\n"; 809 833 $header_copies++ if(syncHeader("$out_basedir/include/$lib/$class", "$out_basedir/include/$lib/$header", 0)); 834 835 # KDE-Compat headers for Phonon 836 if ($lib eq "phonon") { 837 $header_copies++ if (syncHeader("$out_basedir/include/phonon_compat/Phonon/$class", "$out_basedir/include/$lib/$header", 0)); 838 } 810 839 } 811 } els e{840 } elsif ($create_private_headers) { 812 841 @headers = ( "$out_basedir/include/$lib/private/$header" ); 813 842 push @headers, "$out_basedir/include/Qt/private/$header" … … 857 886 my @master_includes; 858 887 push @master_includes, "$out_basedir/include/$lib/$lib"; 888 push @master_includes, "$out_basedir/include/phonon_compat/Phonon/Phonon" if ($lib eq "phonon"); 859 889 foreach my $master_include (@master_includes) { 860 890 #generate the "master" include file … … 904 934 } 905 935 } 906 unless($showonly ) {936 unless($showonly || !$create_uic_class_map) { 907 937 my $class_lib_map = "$out_basedir/src/tools/uic/qclass_lib_map.h"; 908 938 if(-e "$class_lib_map") {
Note:
See TracChangeset
for help on using the changeset viewer.