2010-11-15 19:55:17 +00:00
|
|
|
%modules = ( # path to module name map
|
|
|
|
"QtGui" => "$basedir/src/gui",
|
2011-05-06 22:02:01 +00:00
|
|
|
"QtWidgets" => "$basedir/src/widgets",
|
2011-08-16 14:38:56 +00:00
|
|
|
"QtPrintSupport" => "$basedir/src/printsupport",
|
2010-11-15 19:55:17 +00:00
|
|
|
"QtOpenGL" => "$basedir/src/opengl",
|
2013-03-10 08:55:27 +00:00
|
|
|
"QtCore" => "$basedir/src/corelib",
|
2010-11-15 19:55:17 +00:00
|
|
|
"QtXml" => "$basedir/src/xml",
|
|
|
|
"QtSql" => "$basedir/src/sql",
|
|
|
|
"QtNetwork" => "$basedir/src/network",
|
|
|
|
"QtTest" => "$basedir/src/testlib",
|
|
|
|
"QtDBus" => "$basedir/src/dbus",
|
2012-02-03 13:17:26 +00:00
|
|
|
"QtConcurrent" => "$basedir/src/concurrent",
|
2011-06-09 13:56:55 +00:00
|
|
|
"QtPlatformSupport" => "$basedir/src/platformsupport",
|
2014-03-17 09:35:35 +00:00
|
|
|
"QtPlatformHeaders" => "$basedir/src/platformheaders",
|
2013-06-05 11:24:23 +00:00
|
|
|
"QtANGLE/KHR" => "!$basedir/src/3rdparty/angle/include/KHR",
|
|
|
|
"QtANGLE/GLES2" => "!$basedir/src/3rdparty/angle/include/GLES2",
|
2014-08-05 09:59:44 +00:00
|
|
|
"QtANGLE/GLES3" => "!$basedir/src/3rdparty/angle/include/GLES3",
|
2013-06-05 11:24:23 +00:00
|
|
|
"QtANGLE/EGL" => "!$basedir/src/3rdparty/angle/include/EGL",
|
2015-11-10 17:40:04 +00:00
|
|
|
"QtZlib" => "!>$basedir/src/corelib;$basedir/src/3rdparty/zlib",
|
2013-01-27 15:53:13 +00:00
|
|
|
"QtOpenGLExtensions" => "$basedir/src/openglextensions",
|
2016-05-27 08:04:03 +00:00
|
|
|
"QtEglFSDeviceIntegration" => "$basedir/src/plugins/platforms/eglfs",
|
2010-11-15 19:55:17 +00:00
|
|
|
);
|
|
|
|
%moduleheaders = ( # restrict the module headers to those found in relative path
|
2016-05-27 08:04:03 +00:00
|
|
|
"QtEglFSDeviceIntegration" => "api",
|
2011-08-16 08:50:00 +00:00
|
|
|
);
|
|
|
|
@allmoduleheadersprivate = (
|
2010-11-15 19:55:17 +00:00
|
|
|
);
|
|
|
|
%classnames = (
|
|
|
|
"qglobal.h" => "QtGlobal",
|
|
|
|
"qendian.h" => "QtEndian",
|
2014-02-03 21:22:14 +00:00
|
|
|
"qconfig.h" => "QtConfig",
|
2010-11-15 19:55:17 +00:00
|
|
|
"qplugin.h" => "QtPlugin",
|
|
|
|
"qalgorithms.h" => "QtAlgorithms",
|
|
|
|
"qcontainerfwd.h" => "QtContainerFwd",
|
|
|
|
"qdebug.h" => "QtDebug",
|
|
|
|
"qevent.h" => "QtEvents",
|
|
|
|
"qnamespace.h" => "Qt",
|
2012-07-06 14:56:59 +00:00
|
|
|
"qnumeric.h" => "QtNumeric",
|
2014-01-30 18:34:49 +00:00
|
|
|
"qvariant.h" => "QVariantHash,QVariantList,QVariantMap",
|
2014-07-18 12:35:36 +00:00
|
|
|
"qgl.h" => "QGL",
|
2012-10-26 12:58:33 +00:00
|
|
|
"qsql.h" => "QSql",
|
2010-11-15 19:55:17 +00:00
|
|
|
"qssl.h" => "QSsl",
|
|
|
|
"qtest.h" => "QTest",
|
|
|
|
"qtconcurrentmap.h" => "QtConcurrentMap",
|
|
|
|
"qtconcurrentfilter.h" => "QtConcurrentFilter",
|
|
|
|
"qtconcurrentrun.h" => "QtConcurrentRun",
|
|
|
|
);
|
Expose QPA API under qpa/*
The main reasons for doing this are:
1. _qpa.h end up in the master QtGui include file. QtGui is meant for
userland applications. qpa code is neither binary nor source compatible.
Inadvertant use of QPA api makes the user code binary-incompatible.
2. syncqt creates forwarding headers for non-private header files. This
gives people the impression that this is public API.
As discussed on the mailing list, even though QPA api is internal and subject
to change, it needs to treated differently from private headers since they
will be used by in-qtbase and out-of-qtbase plugins.
This commit does the following:
1. The _qpa in QPA header files is dropped.
2. syncqt now treats any file with qplatform prefix as a special file and
moves it to qpa/ directory. The recommended way of using QPA API in plugins
is: #include <qpa/qplatformfoo.h>. This allows the user include QPA API
from multiple modules (for example, qplatformfoo might be in QtPrintSupport)
3. The user needs to explicitly add QT += <module>-private to get access to
the qpa api.
4. Creates compat headers for the olden style qplatformfoo_qpa.h and QPlatformFoo
includes.
This commit does not change the cpp filenames. This requires a more careful
merging of existing non qpa cpp files and existing cpp files on a case by
case basis. This can be done at anytime.
The following files are not renamed as part of this changed but will be fixed
as part of a future change:
src/gui/kernel/qgenericpluginfactory_qpa.h
src/gui/kernel/qgenericplugin_qpa.h
src/gui/kernel/qwindowsysteminterface_qpa.h
files were renamed using
for x in `find . -name "qplatform*_qpa.h"`; do git mv $x "${x/_qpa.h/.h}"; done
for x in `find . -name "qplatform*_qpa_p.h"`; do git mv $x "${x/_qpa_p.h/_p.h}"; done
includes were renamed using script
for file in `find . -name "*.h" -or -name "*.cpp" -or -name "*.mm"`; do
sed -i -e 's,.*#.*include.*<\(Qt.*/\)\?\(QPlatform.*\)>,#include <qpa/\L\2.h>,g' \
-e 's,.*#.*include.*"\(Qt.*/\)\?\(QPlatform.*\)",#include <qpa/\L\2.h>,g' \
-e 's,.*#.*include.* "\(qplatform.*\)_qpa.h",#include <qpa/\L\1.h>,g' \
-e 's,.*#.*include.*"\(qplatform.*\)_qpa_p.h",#include <qpa/\L\1_p.h>,g' \
-e 's,.*#.*include.*<\(Qt.*/\|Qt.*/private/\|private/\)\?\(qplatform.*\)_qpa\(.*\)>,#include <qpa/\2\3>,g' \
-e 's,.*#.*include.*"\(Qt.*/\|Qt.*/private/\|private/\)\?\(qplatform.*\)_qpa\(.*\)",#include <qpa/\2\3>,g' \
$file
done
Change-Id: I04a350314a45746e3911f54b3b21ad03315afb67
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
2012-04-26 23:33:35 +00:00
|
|
|
%deprecatedheaders = (
|
|
|
|
"QtGui" => {
|
2012-07-03 16:25:46 +00:00
|
|
|
"QGenericPlugin" => "QtGui/QGenericPlugin",
|
|
|
|
"QGenericPluginFactory" => "QtGui/QGenericPluginFactory"
|
2016-06-02 14:10:01 +00:00
|
|
|
},
|
|
|
|
"QtSql" => {
|
|
|
|
"qsql.h" => "QtSql/qtsqlglobal.h"
|
2016-06-15 13:42:10 +00:00
|
|
|
},
|
|
|
|
"QtDBus" => {
|
|
|
|
"qdbusmacros.h" => "QtDbus/qtdbusglobal.h"
|
Expose QPA API under qpa/*
The main reasons for doing this are:
1. _qpa.h end up in the master QtGui include file. QtGui is meant for
userland applications. qpa code is neither binary nor source compatible.
Inadvertant use of QPA api makes the user code binary-incompatible.
2. syncqt creates forwarding headers for non-private header files. This
gives people the impression that this is public API.
As discussed on the mailing list, even though QPA api is internal and subject
to change, it needs to treated differently from private headers since they
will be used by in-qtbase and out-of-qtbase plugins.
This commit does the following:
1. The _qpa in QPA header files is dropped.
2. syncqt now treats any file with qplatform prefix as a special file and
moves it to qpa/ directory. The recommended way of using QPA API in plugins
is: #include <qpa/qplatformfoo.h>. This allows the user include QPA API
from multiple modules (for example, qplatformfoo might be in QtPrintSupport)
3. The user needs to explicitly add QT += <module>-private to get access to
the qpa api.
4. Creates compat headers for the olden style qplatformfoo_qpa.h and QPlatformFoo
includes.
This commit does not change the cpp filenames. This requires a more careful
merging of existing non qpa cpp files and existing cpp files on a case by
case basis. This can be done at anytime.
The following files are not renamed as part of this changed but will be fixed
as part of a future change:
src/gui/kernel/qgenericpluginfactory_qpa.h
src/gui/kernel/qgenericplugin_qpa.h
src/gui/kernel/qwindowsysteminterface_qpa.h
files were renamed using
for x in `find . -name "qplatform*_qpa.h"`; do git mv $x "${x/_qpa.h/.h}"; done
for x in `find . -name "qplatform*_qpa_p.h"`; do git mv $x "${x/_qpa_p.h/_p.h}"; done
includes were renamed using script
for file in `find . -name "*.h" -or -name "*.cpp" -or -name "*.mm"`; do
sed -i -e 's,.*#.*include.*<\(Qt.*/\)\?\(QPlatform.*\)>,#include <qpa/\L\2.h>,g' \
-e 's,.*#.*include.*"\(Qt.*/\)\?\(QPlatform.*\)",#include <qpa/\L\2.h>,g' \
-e 's,.*#.*include.* "\(qplatform.*\)_qpa.h",#include <qpa/\L\1.h>,g' \
-e 's,.*#.*include.*"\(qplatform.*\)_qpa_p.h",#include <qpa/\L\1_p.h>,g' \
-e 's,.*#.*include.*<\(Qt.*/\|Qt.*/private/\|private/\)\?\(qplatform.*\)_qpa\(.*\)>,#include <qpa/\2\3>,g' \
-e 's,.*#.*include.*"\(Qt.*/\|Qt.*/private/\|private/\)\?\(qplatform.*\)_qpa\(.*\)",#include <qpa/\2\3>,g' \
$file
done
Change-Id: I04a350314a45746e3911f54b3b21ad03315afb67
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
2012-04-26 23:33:35 +00:00
|
|
|
}
|
|
|
|
);
|
2010-11-25 02:21:06 +00:00
|
|
|
|
2015-06-03 12:10:19 +00:00
|
|
|
@qpa_headers = ( qr/^(?!qplatformheaderhelper)qplatform/, qr/^qwindowsystem/ );
|
2012-10-24 15:15:06 +00:00
|
|
|
my @angle_headers = ('egl.h', 'eglext.h', 'eglplatform.h', 'gl2.h', 'gl2ext.h', 'gl2platform.h', 'ShaderLang.h', 'khrplatform.h');
|
2012-11-26 14:23:20 +00:00
|
|
|
my @internal_zlib_headers = ( "crc32.h", "deflate.h", "gzguts.h", "inffast.h", "inffixed.h", "inflate.h", "inftrees.h", "trees.h", "zutil.h" );
|
|
|
|
my @zlib_headers = ( "zconf.h", "zlib.h" );
|
|
|
|
@ignore_headers = ( @internal_zlib_headers );
|
2013-03-10 08:55:27 +00:00
|
|
|
@ignore_for_include_check = ( "qsystemdetection.h", "qcompilerdetection.h", "qprocessordetection.h", @zlib_headers, @angle_headers);
|
|
|
|
@ignore_for_qt_begin_namespace_check = ( "qconfig.h", "qconfig-dist.h", "qconfig-large.h", "qconfig-medium.h", "qconfig-minimal.h", "qconfig-small.h", "qfeatures.h", "qatomic_arch.h", "qatomic_windowsce.h", "qt_windows.h", "qatomic_macosx.h", @zlib_headers, @angle_headers);
|
2013-10-23 13:24:03 +00:00
|
|
|
%inject_headers = ( "$basedir/src/corelib/global" => [ "qconfig.h", "qfeatures.h" ] );
|
2011-07-06 08:36:10 +00:00
|
|
|
# Module dependencies.
|
|
|
|
# Every module that is required to build this module should have one entry.
|
2011-04-27 10:34:11 +00:00
|
|
|
# Each of the module version specifiers can take one of the following values:
|
|
|
|
# - A specific Git revision.
|
2011-07-06 08:36:10 +00:00
|
|
|
# - any git symbolic ref resolvable from the module's repository (e.g. "refs/heads/master" to track master branch)
|
|
|
|
#
|
2011-04-27 10:34:11 +00:00
|
|
|
%dependencies = (
|
|
|
|
);
|