Expose private support for separate module in syncqt.
authorLiang Qi <liang.qi@nokia.com>
Mon, 15 Nov 2010 15:43:22 +0000 (16:43 +0100)
committeraxis <qt-info@nokia.com>
Wed, 27 Apr 2011 10:05:45 +0000 (12:05 +0200)
bin/syncqt

index 451521c..b867106 100755 (executable)
@@ -82,6 +82,7 @@ sub showUsage
     print "  -outdir <PATH>        Specify output directory for sync  (default: $out_basedir)\n";
     print "  -quiet                Only report problems, not activity (default: " . ($quiet ? "yes" : "no") . ")\n";
     print "  -separate-module <NAME>:<PROFILEDIR>:<HEADERDIR> Create headers for <NAME> with original headers in <HEADERDIR> relative to <PROFILEDIR> \n";
+    print "  -private              Force copy private headers         (default: " . ($create_private_headers ? "yes" : "no") . ")\n";
     print "  -help                 This help\n";
     exit 0;
 }
@@ -589,6 +590,9 @@ while ( @ARGV ) {
     } elsif($arg eq "-quiet") {
         $var = "quiet";
         $val = "yes";
+    } elsif($arg eq "-private") {
+        $var = "create_private_headers";
+        $val = "yes";
     } elsif($arg eq "-base-dir") {
         # skip, it's been dealt with at the top of the file
         shift @ARGV;
@@ -651,7 +655,6 @@ while ( @ARGV ) {
         push @modules_to_sync, $module;
         $moduleheaders{$module} = $headerdir;
         $create_uic_class_map = 0;
-        $create_private_headers = 0;
     } elsif ($var eq "output") {
         my $outdir = $val;
         if(checkRelative($outdir)) {