diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-12-10 06:39:46 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-12-11 01:58:10 (GMT) |
commit | 6c161d6cca6c08843b479c00fffb9c7217aec505 (patch) | |
tree | 1b0ab891407b26ff071f930f40f9be4613884b76 | |
parent | 4d3839eb99d720393e1386d63fa04c83367bb076 (diff) | |
download | Qt-6c161d6cca6c08843b479c00fffb9c7217aec505.zip Qt-6c161d6cca6c08843b479c00fffb9c7217aec505.tar.gz Qt-6c161d6cca6c08843b479c00fffb9c7217aec505.tar.bz2 |
Install private headers when configuring Qt with -developer-build.
Many Qt autotests require both private symbols and private headers.
Private symbols are turned on using -developer-build.
However, prior to this commit there was no way to install private
headers into the Qt install directory.
This is particularly relevant for packaging systems which use `make
install' to determine what should be packaged. For example, Qt for
Maemo debian packages are effectively unusable for Qt autotests
without this commit.
Reviewed-by: Michael Goddard
-rwxr-xr-x | bin/syncqt | 6 | ||||
-rw-r--r-- | src/qt_install.pri | 6 |
2 files changed, 12 insertions, 0 deletions
@@ -666,6 +666,7 @@ foreach (@modules_to_sync) { #information used after the syncing my $pri_install_classes = ""; my $pri_install_files = ""; + my $pri_install_pfiles = ""; my $libcapitals = $lib; $libcapitals =~ y/a-z/A-Z/; @@ -834,6 +835,10 @@ foreach (@modules_to_sync) { $pri_install_files.= "$pri_install_iheader ";; } } + else { + my $pri_install_iheader = fixPaths($iheader, $current_dir); + $pri_install_pfiles.= "$pri_install_iheader ";; + } } print "header created for $iheader ($header_copies)\n" if($header_copies > 0); } @@ -878,6 +883,7 @@ foreach (@modules_to_sync) { my $headers_pri_contents = ""; $headers_pri_contents .= "SYNCQT.HEADER_FILES = $pri_install_files\n"; $headers_pri_contents .= "SYNCQT.HEADER_CLASSES = $pri_install_classes\n"; + $headers_pri_contents .= "SYNCQT.PRIVATE_HEADER_FILES = $pri_install_pfiles\n"; my $headers_pri_file = "$out_basedir/include/$lib/headers.pri"; if(-e "$headers_pri_file") { open HEADERS_PRI_FILE, "<$headers_pri_file"; diff --git a/src/qt_install.pri b/src/qt_install.pri index ebeac8d..5b29942 100644 --- a/src/qt_install.pri +++ b/src/qt_install.pri @@ -30,6 +30,12 @@ qt_install_headers { targ_headers.files = $$INSTALL_HEADERS targ_headers.path = $$[QT_INSTALL_HEADERS]/$$TARGET INSTALLS += targ_headers + + contains(QT_CONFIG,private_tests) { + private_headers.files = $$SYNCQT.PRIVATE_HEADER_FILES + private_headers.path = $$[QT_INSTALL_HEADERS]/$$TARGET/private + INSTALLS += private_headers + } } embedded:equals(TARGET, QtGui) { |