summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-09-23 14:35:06 +0200
committerThiago Macieira <thiago.macieira@nokia.com>2009-09-23 14:51:32 +0200
commit94ffd7e298a4ffa0440fd18a30b1823a71c6bb77 (patch)
treeba6b0df8dfb80d04ecf645e848347c774c4577e4 /bin
parent9262ee16906fd8e030cd5d2a81d22fe9b791b9f6 (diff)
Try to support Qt 4.4-style Phonon includes in Qt.
This introduces an undocumented "phonon_compat" subdir and also adds it to the INCLUDEPATH when QT += phonon is specified. With this, these styles of #includes should be supported: #include <Phonon> #include <Phonon/Phonon> #include <phonon> #include <phonon/phonon> #include <Phonon/MediaObject> #include <phonon/mediaobject.h> Still need to check if the headers get installed during "make install". I couldn't find where in our code that is done. BT: yes Reviewed-By: Trust Me (cherry picked from commit 0cb5038a3e5d3a6b0c33d081b89c6fe47cfc0b1b)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/syncqt10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/syncqt b/bin/syncqt
index a3addd8ce6..edabeca024 100755
--- a/bin/syncqt
+++ b/bin/syncqt
@@ -840,9 +840,15 @@ foreach (@modules_to_sync) {
$master_contents .= "#endif\n";
unless($showonly) {
- unless ($lib eq "phonon") {
+ my @master_includes;
+ if ($lib eq "phonon") {
+ push @master_includes, "$out_basedir/include/phonon_compat/phonon/phonon";
+ push @master_includes, "$out_basedir/include/phonon/Phonon/Phonon";
+ } else {
+ push @master_includes, "$out_basedir/include/$lib/$lib";
+ }
+ foreach my $master_include (@master_includes) {
#generate the "master" include file
- my $master_include = "$out_basedir/include/$lib/$lib";
$pri_install_files .= fixPaths($master_include, "$modules{$lib}") . " "; #get the master file installed too
if($master_include && -e "$master_include") {
open MASTERINCLUDE, "<$master_include";