bin/syncqt
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
child 7 f7bc934e204c
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    29         "QtXml" => "$basedir/src/xml",
    29         "QtXml" => "$basedir/src/xml",
    30         "QtXmlPatterns" => "$basedir/src/xmlpatterns",
    30         "QtXmlPatterns" => "$basedir/src/xmlpatterns",
    31         "QtSql" => "$basedir/src/sql",
    31         "QtSql" => "$basedir/src/sql",
    32         "QtNetwork" => "$basedir/src/network",
    32         "QtNetwork" => "$basedir/src/network",
    33         "QtSvg" => "$basedir/src/svg",
    33         "QtSvg" => "$basedir/src/svg",
       
    34         "QtDeclarative" => "$basedir/src/declarative",
    34         "QtScript" => "$basedir/src/script",
    35         "QtScript" => "$basedir/src/script",
    35         "QtScriptTools" => "$basedir/src/scripttools",
    36         "QtScriptTools" => "$basedir/src/scripttools",
    36         "Qt3Support" => "$basedir/src/qt3support",
    37         "Qt3Support" => "$basedir/src/qt3support",
    37         "ActiveQt" => "$basedir/src/activeqt/container;$basedir/src/activeqt/control;$basedir/src/activeqt/shared",
    38         "ActiveQt" => "$basedir/src/activeqt/container;$basedir/src/activeqt/control;$basedir/src/activeqt/shared",
    38         "QtTest" => "$basedir/src/testlib",
    39         "QtTest" => "$basedir/src/testlib",
   663     $pathtoheaders = "$moduleheaders{$lib}" if ($moduleheaders{$lib});
   664     $pathtoheaders = "$moduleheaders{$lib}" if ($moduleheaders{$lib});
   664 
   665 
   665     #information used after the syncing
   666     #information used after the syncing
   666     my $pri_install_classes = "";
   667     my $pri_install_classes = "";
   667     my $pri_install_files = "";
   668     my $pri_install_files = "";
       
   669     my $pri_install_pfiles = "";
   668 
   670 
   669     my $libcapitals = $lib;
   671     my $libcapitals = $lib;
   670     $libcapitals =~ y/a-z/A-Z/;
   672     $libcapitals =~ y/a-z/A-Z/;
   671     my $master_contents = "#ifndef QT_".$libcapitals."_MODULE_H\n#define QT_".$libcapitals."_MODULE_H\n";
   673     my $master_contents = "#ifndef QT_".$libcapitals."_MODULE_H\n#define QT_".$libcapitals."_MODULE_H\n";
   672 
   674 
   680 		    foreach(split(/ /, "$1")) {
   682 		    foreach(split(/ /, "$1")) {
   681 			$master_contents .= "#include <QtCore/QtCore>\n" if("$_" eq "core");
   683 			$master_contents .= "#include <QtCore/QtCore>\n" if("$_" eq "core");
   682 			$master_contents .= "#include <QtGui/QtGui>\n" if("$_" eq "gui");
   684 			$master_contents .= "#include <QtGui/QtGui>\n" if("$_" eq "gui");
   683 			$master_contents .= "#include <QtNetwork/QtNetwork>\n" if("$_" eq "network");
   685 			$master_contents .= "#include <QtNetwork/QtNetwork>\n" if("$_" eq "network");
   684 			$master_contents .= "#include <QtSvg/QtSvg>\n" if("$_" eq "svg");
   686 			$master_contents .= "#include <QtSvg/QtSvg>\n" if("$_" eq "svg");
       
   687 			$master_contents .= "#include <QtDeclarative/QtDeclarative>\n" if("$_" eq "declarative");
   685 			$master_contents .= "#include <QtScript/QtScript>\n" if("$_" eq "script");
   688 			$master_contents .= "#include <QtScript/QtScript>\n" if("$_" eq "script");
   686 			$master_contents .= "#include <QtScriptTools/QtScriptTools>\n" if("$_" eq "scripttools");
   689 			$master_contents .= "#include <QtScriptTools/QtScriptTools>\n" if("$_" eq "scripttools");
   687 			$master_contents .= "#include <Qt3Support/Qt3Support>\n" if("$_" eq "qt3support");
   690 			$master_contents .= "#include <Qt3Support/Qt3Support>\n" if("$_" eq "qt3support");
   688 			$master_contents .= "#include <QtSql/QtSql>\n" if("$_" eq "sql");
   691 			$master_contents .= "#include <QtSql/QtSql>\n" if("$_" eq "sql");
   689 			$master_contents .= "#include <QtXml/QtXml>\n" if("$_" eq "xml");
   692 			$master_contents .= "#include <QtXml/QtXml>\n" if("$_" eq "xml");
   830 								unless($pri_install_classes =~ $class_header);
   833 								unless($pri_install_classes =~ $class_header);
   831 				}
   834 				}
   832 				$pri_install_files.= "$pri_install_iheader ";;
   835 				$pri_install_files.= "$pri_install_iheader ";;
   833 			    }
   836 			    }
   834 			}
   837 			}
       
   838 			else {
       
   839 			    my $pri_install_iheader = fixPaths($iheader, $current_dir);
       
   840 			    $pri_install_pfiles.= "$pri_install_iheader ";;
       
   841 			}
   835                     }
   842                     }
   836 		    print "header created for $iheader ($header_copies)\n" if($header_copies > 0);
   843 		    print "header created for $iheader ($header_copies)\n" if($header_copies > 0);
   837                 }
   844                 }
   838             }
   845             }
   839         }
   846         }
   874 
   881 
   875         #handle the headers.pri for each module
   882         #handle the headers.pri for each module
   876 	my $headers_pri_contents = "";
   883 	my $headers_pri_contents = "";
   877 	$headers_pri_contents .= "SYNCQT.HEADER_FILES = $pri_install_files\n";
   884 	$headers_pri_contents .= "SYNCQT.HEADER_FILES = $pri_install_files\n";
   878 	$headers_pri_contents .= "SYNCQT.HEADER_CLASSES = $pri_install_classes\n";
   885 	$headers_pri_contents .= "SYNCQT.HEADER_CLASSES = $pri_install_classes\n";
       
   886 	$headers_pri_contents .= "SYNCQT.PRIVATE_HEADER_FILES = $pri_install_pfiles\n";
   879         my $headers_pri_file = "$out_basedir/include/$lib/headers.pri";
   887         my $headers_pri_file = "$out_basedir/include/$lib/headers.pri";
   880         if(-e "$headers_pri_file") {
   888         if(-e "$headers_pri_file") {
   881             open HEADERS_PRI_FILE, "<$headers_pri_file";
   889             open HEADERS_PRI_FILE, "<$headers_pri_file";
   882             local $/;
   890             local $/;
   883             binmode HEADERS_PRI_FILE;
   891             binmode HEADERS_PRI_FILE;