Add module specific pris, and make syncqt create fwd includes
authorMarius Storm-Olsen <marius.storm-olsen@nokia.com>
Thu, 25 Nov 2010 02:21:06 +0000 (20:21 -0600)
committeraxis <qt-info@nokia.com>
Wed, 27 Apr 2011 10:05:46 +0000 (12:05 +0200)
The module specific pris define the modules
    name
    version
    dependencies
    include paths
    lib paths
    additional CONFIGs and DEFINES
They are located in the modules source directory, with fwd
includes created in QtBase/mkspecs/modules build directory.
The pris use
    QT_MODULE_INCLUDE_BASE
    QT_MODULE_LIB_BASE
to specify the locations for includes and libs. These paths
are normally based on
    QT_INSTALL_HEADERS
    QT_INSTALL_LIBS
for installed modules, but overridden to the module's build
directory by syncqt for the fwd included pris.
The path of the pris must be specified in the sync.profile
for syncqt to create the fwding pris in QtBase.

modules/qt_xmlpatterns.pri [new file with mode: 0644]
sync.profile

diff --git a/modules/qt_xmlpatterns.pri b/modules/qt_xmlpatterns.pri
new file mode 100644 (file)
index 0000000..2237142
--- /dev/null
@@ -0,0 +1,11 @@
+QT_XMLPATTERNS_VERSION = $$QT_VERSION
+QT_XMLPATTERNS_MAJOR_VERSION = $$QT_MAJOR_VERSION
+QT_XMLPATTERNS_MINOR_VERSION = $$QT_MINOR_VERSION
+QT_XMLPATTERNS_PATCH_VERSION = $$QT_PATCH_VERSION
+
+QT.xmlpatterns.name = QtXmlPatterns
+QT.xmlpatterns.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtXmlPatterns
+QT.xmlpatterns.libs = $$QT_MODULE_LIB_BASE
+QT.xmlpatterns.depends = core network
+
+QT_CONFIG += xmlpatterns
index 6707cea..9548e0f 100644 (file)
@@ -9,3 +9,6 @@
     "core" => "#include <QtCore/QtCore>\n",
     "network" => "#include <QtNetwork/QtNetwork>\n",
 );
+%modulepris = (
+    "QtXmlPatterns" => "$basedir/modules/qt_xmlpatterns.pri",
+);