2011-04-27 10:05:43 +00:00
|
|
|
TEMPLATE = subdirs
|
|
|
|
|
2013-03-08 19:31:05 +00:00
|
|
|
src_tools_bootstrap.subdir = tools/bootstrap
|
|
|
|
src_tools_bootstrap.target = sub-bootstrap
|
2013-10-18 14:42:21 +00:00
|
|
|
src_tools_bootstrap.CONFIG = host_build
|
2013-03-08 19:31:05 +00:00
|
|
|
|
|
|
|
src_tools_moc.subdir = tools/moc
|
|
|
|
src_tools_moc.target = sub-moc
|
|
|
|
src_tools_moc.depends = src_tools_bootstrap
|
2013-10-18 14:42:21 +00:00
|
|
|
src_tools_moc.CONFIG = host_build
|
2013-03-08 19:31:05 +00:00
|
|
|
|
|
|
|
src_tools_rcc.subdir = tools/rcc
|
|
|
|
src_tools_rcc.target = sub-rcc
|
|
|
|
src_tools_rcc.depends = src_tools_bootstrap
|
2013-10-18 14:42:21 +00:00
|
|
|
src_tools_rcc.CONFIG = host_build
|
2013-03-08 19:31:05 +00:00
|
|
|
|
2013-03-07 18:38:26 +00:00
|
|
|
src_tools_qlalr.subdir = tools/qlalr
|
|
|
|
src_tools_qlalr.target = sub-qlalr
|
|
|
|
force_bootstrap: src_tools_qlalr.depends = src_tools_bootstrap
|
|
|
|
else: src_tools_qlalr.depends = src_corelib
|
|
|
|
|
2013-03-08 19:31:05 +00:00
|
|
|
src_tools_uic.subdir = tools/uic
|
|
|
|
src_tools_uic.target = sub-uic
|
2013-10-18 14:42:21 +00:00
|
|
|
src_tools_uic.CONFIG = host_build
|
2013-03-08 21:23:30 +00:00
|
|
|
force_bootstrap: src_tools_uic.depends = src_tools_bootstrap
|
|
|
|
else: src_tools_uic.depends = src_corelib
|
2013-03-08 19:31:05 +00:00
|
|
|
|
|
|
|
src_tools_qdoc.subdir = tools/qdoc
|
|
|
|
src_tools_qdoc.target = sub-qdoc
|
2013-10-18 14:42:21 +00:00
|
|
|
src_tools_qdoc.CONFIG = host_build
|
2013-03-15 16:33:29 +00:00
|
|
|
force_bootstrap: src_tools_qdoc.depends = src_tools_bootstrap
|
|
|
|
else: src_tools_qdoc.depends = src_corelib src_xml
|
2013-03-08 19:31:05 +00:00
|
|
|
|
2013-03-11 09:34:01 +00:00
|
|
|
src_tools_bootstrap_dbus.subdir = tools/bootstrap-dbus
|
|
|
|
src_tools_bootstrap_dbus.target = sub-bootstrap_dbus
|
|
|
|
src_tools_bootstrap_dbus.depends = src_tools_bootstrap
|
2013-10-18 14:42:21 +00:00
|
|
|
src_tools_bootstrap_dbus.CONFIG = host_build
|
2013-03-11 09:34:01 +00:00
|
|
|
|
2013-03-08 19:31:05 +00:00
|
|
|
src_tools_qdbusxml2cpp.subdir = tools/qdbusxml2cpp
|
|
|
|
src_tools_qdbusxml2cpp.target = sub-qdbusxml2cpp
|
2013-10-18 14:42:21 +00:00
|
|
|
src_tools_qdbusxml2cpp.CONFIG = host_build
|
2013-03-08 21:23:30 +00:00
|
|
|
force_bootstrap: src_tools_qdbusxml2cpp.depends = src_tools_bootstrap_dbus
|
|
|
|
else: src_tools_qdbusxml2cpp.depends = src_dbus
|
2013-03-08 19:31:05 +00:00
|
|
|
|
|
|
|
src_tools_qdbuscpp2xml.subdir = tools/qdbuscpp2xml
|
|
|
|
src_tools_qdbuscpp2xml.target = sub-qdbuscpp2xml
|
2013-10-18 14:42:21 +00:00
|
|
|
src_tools_qdbuscpp2xml.CONFIG = host_build
|
2013-03-08 21:23:30 +00:00
|
|
|
force_bootstrap: src_tools_qdbuscpp2xml.depends = src_tools_bootstrap_dbus
|
|
|
|
else: src_tools_qdbuscpp2xml.depends = src_dbus
|
2012-06-01 14:43:46 +00:00
|
|
|
|
2012-03-02 20:32:02 +00:00
|
|
|
src_winmain.subdir = $$PWD/winmain
|
2011-04-27 10:05:43 +00:00
|
|
|
src_winmain.target = sub-winmain
|
2012-06-01 14:43:46 +00:00
|
|
|
src_winmain.depends = sub-corelib # just for the module .pri file
|
|
|
|
|
2012-03-02 20:32:02 +00:00
|
|
|
src_corelib.subdir = $$PWD/corelib
|
2011-04-27 10:05:43 +00:00
|
|
|
src_corelib.target = sub-corelib
|
2013-03-08 19:31:05 +00:00
|
|
|
src_corelib.depends = src_tools_moc src_tools_rcc
|
2012-06-01 14:43:46 +00:00
|
|
|
|
2012-03-02 20:32:02 +00:00
|
|
|
src_xml.subdir = $$PWD/xml
|
2011-04-27 10:05:43 +00:00
|
|
|
src_xml.target = sub-xml
|
2012-06-01 14:43:46 +00:00
|
|
|
src_xml.depends = src_corelib
|
|
|
|
|
2012-03-02 20:32:02 +00:00
|
|
|
src_dbus.subdir = $$PWD/dbus
|
2011-04-27 10:05:43 +00:00
|
|
|
src_dbus.target = sub-dbus
|
2012-06-01 14:43:46 +00:00
|
|
|
src_dbus.depends = src_corelib
|
|
|
|
|
|
|
|
src_concurrent.subdir = $$PWD/concurrent
|
|
|
|
src_concurrent.target = sub-concurrent
|
|
|
|
src_concurrent.depends = src_corelib
|
|
|
|
|
2012-03-02 20:32:02 +00:00
|
|
|
src_sql.subdir = $$PWD/sql
|
2011-04-27 10:05:43 +00:00
|
|
|
src_sql.target = sub-sql
|
2012-06-01 14:43:46 +00:00
|
|
|
src_sql.depends = src_corelib
|
|
|
|
|
2012-03-02 20:32:02 +00:00
|
|
|
src_network.subdir = $$PWD/network
|
2011-04-27 10:05:43 +00:00
|
|
|
src_network.target = sub-network
|
2012-06-01 14:43:46 +00:00
|
|
|
src_network.depends = src_corelib
|
|
|
|
|
2012-03-02 20:32:02 +00:00
|
|
|
src_testlib.subdir = $$PWD/testlib
|
2011-04-27 10:05:43 +00:00
|
|
|
src_testlib.target = sub-testlib
|
2012-06-01 14:43:46 +00:00
|
|
|
src_testlib.depends = src_corelib # src_gui & src_widgets are not build-depends
|
|
|
|
|
2014-02-25 13:33:43 +00:00
|
|
|
src_3rdparty_harfbuzzng.subdir = $$PWD/3rdparty/harfbuzz-ng
|
|
|
|
src_3rdparty_harfbuzzng.target = sub-3rdparty-harfbuzzng
|
|
|
|
|
2012-10-15 12:16:51 +00:00
|
|
|
src_angle.subdir = $$PWD/angle
|
2013-01-07 15:33:32 +00:00
|
|
|
src_angle.target = sub-angle
|
2013-12-08 20:33:43 +00:00
|
|
|
angle_d3d11: src_angle.depends = src_corelib
|
2012-10-15 12:16:51 +00:00
|
|
|
|
2012-06-01 14:43:46 +00:00
|
|
|
src_gui.subdir = $$PWD/gui
|
|
|
|
src_gui.target = sub-gui
|
|
|
|
src_gui.depends = src_corelib
|
|
|
|
|
2012-03-02 20:32:02 +00:00
|
|
|
src_platformsupport.subdir = $$PWD/platformsupport
|
2011-06-09 13:56:55 +00:00
|
|
|
src_platformsupport.target = sub-platformsupport
|
2012-06-01 14:43:46 +00:00
|
|
|
src_platformsupport.depends = src_corelib src_gui src_network
|
2011-06-09 13:56:55 +00:00
|
|
|
|
2012-06-01 14:43:46 +00:00
|
|
|
src_widgets.subdir = $$PWD/widgets
|
|
|
|
src_widgets.target = sub-widgets
|
2013-03-08 19:31:05 +00:00
|
|
|
src_widgets.depends = src_corelib src_gui src_tools_uic
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2012-06-01 14:43:46 +00:00
|
|
|
src_opengl.subdir = $$PWD/opengl
|
|
|
|
src_opengl.target = sub-opengl
|
|
|
|
src_opengl.depends = src_gui src_widgets
|
|
|
|
|
2013-01-27 15:53:13 +00:00
|
|
|
src_openglextensions.subdir = $$PWD/openglextensions
|
|
|
|
src_openglextensions.target = sub-openglextensions
|
|
|
|
src_openglextensions.depends = src_gui
|
|
|
|
|
2012-06-01 14:43:46 +00:00
|
|
|
src_printsupport.subdir = $$PWD/printsupport
|
|
|
|
src_printsupport.target = sub-printsupport
|
2013-03-08 19:31:05 +00:00
|
|
|
src_printsupport.depends = src_corelib src_gui src_widgets src_tools_uic
|
2012-06-01 14:43:46 +00:00
|
|
|
|
|
|
|
src_plugins.subdir = $$PWD/plugins
|
|
|
|
src_plugins.target = sub-plugins
|
2012-08-24 09:34:57 +00:00
|
|
|
src_plugins.depends = src_sql src_xml src_network
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2013-03-04 09:16:42 +00:00
|
|
|
src_android.subdir = $$PWD/android
|
|
|
|
|
2012-06-01 14:43:46 +00:00
|
|
|
# this order is important
|
2013-03-07 18:38:26 +00:00
|
|
|
SUBDIRS += src_tools_bootstrap src_tools_moc src_tools_rcc src_corelib src_tools_qlalr
|
|
|
|
TOOLS = src_tools_moc src_tools_rcc src_tools_qlalr
|
2012-06-01 14:43:46 +00:00
|
|
|
win32:SUBDIRS += src_winmain
|
|
|
|
SUBDIRS += src_network src_sql src_xml src_testlib
|
|
|
|
contains(QT_CONFIG, dbus) {
|
2013-03-08 21:23:30 +00:00
|
|
|
SUBDIRS += src_dbus
|
|
|
|
force_bootstrap: SUBDIRS += src_tools_bootstrap_dbus
|
|
|
|
SUBDIRS += src_tools_qdbusxml2cpp src_tools_qdbuscpp2xml
|
2013-05-17 17:54:19 +00:00
|
|
|
TOOLS += src_tools_qdbusxml2cpp src_tools_qdbuscpp2xml
|
2013-03-14 10:14:15 +00:00
|
|
|
contains(QT_CONFIG, accessibility-atspi-bridge): \
|
|
|
|
src_platformsupport.depends += src_dbus src_tools_qdbusxml2cpp
|
2013-03-08 19:31:05 +00:00
|
|
|
src_plugins.depends += src_dbus src_tools_qdbusxml2cpp src_tools_qdbuscpp2xml
|
2012-06-01 14:43:46 +00:00
|
|
|
}
|
|
|
|
contains(QT_CONFIG, concurrent):SUBDIRS += src_concurrent
|
|
|
|
!contains(QT_CONFIG, no-gui) {
|
2014-02-25 13:33:43 +00:00
|
|
|
contains(QT_CONFIG, harfbuzz) {
|
|
|
|
SUBDIRS += src_3rdparty_harfbuzzng
|
|
|
|
src_gui.depends += src_3rdparty_harfbuzzng
|
|
|
|
}
|
Dynamic GL switch on Windows
The patch introduces a new build configuration on Windows which
can be requested by passing -opengl dynamic to configure.
Platforms other than Windows (including WinRT) are not affected.
The existing Angle and desktop configurations are not affected.
These continue to function as before and Angle remains the default.
In the future, when all modules have added support for the dynamic
path, as described below, the default configuration could be changed
to be the dynamic one. This would allow providing a single set of
binaries in the official builds instead of the current two.
When requesting dynamic GL, Angle is built but QT_OPENGL_ES[_2] are
never defined. Instead, the code path that has traditionally been
desktop GL only becomes the dynamic path that has to do runtime
checks. Qt modules and applications are not linked to opengl32.dll or
libegl/glesv2.dll in this case. Instead, QtGui exports all necessary
egl/egl/gl functions which will, under the hood, forward all requests
to a dynamically loaded EGL/WGL/GL implementation.
Porting guide (better said, changes needed to prepare your code to
work with dynamic GL builds when the fallback to Angle is utilized):
1. In !QT_OPENGL_ES[_2] code branches use QOpenGLFunctions::isES() to
differentiate between desktop and ES where needed. Keep in mind that
it is the desktop GL header (plus qopenglext.h) that is included,
not the GLES one.
QtGui's proxy will handle some differences, for example calling
glClearDepth will route to glClearDepthf when needed. The built-in
eglGetProcAddress is able to retrieve pointers for standard GLES2
functions too so code resolving OpenGL 2 functions will function
in any case.
2. QT_CONFIG will contain "opengl" and "dynamicgl" in dynamic builds,
but never "angle" or "opengles2".
3. The preprocessor define QT_OPENGL_DYNAMIC is also available in
dynamic builds. The usage of this is strongly discouraged and should
not be needed anywhere except for QtGui and the platform plugin.
4. Code in need of the library handle can use
QOpenGLFunctions::platformGLHandle().
The decision on which library to load is currently based on a simple
test that creates a dummy window/context and tries to resolve an
OpenGL 2 function. If this fails, it goes for Angle. This seems to work
well on Win7 PCs for example that do not have proper graphics drivers
providing OpenGL installed but are D3D9 capable using the default drivers.
Setting QT_OPENGL to desktop or angle skips the test and forces
usage of the given GL. There are also two new application attributes
that could be used for the same purpose.
If Angle is requested but the libraries are not present, desktop is
tried. If desktop is requested, or if angle is requested but nothing
works, the EGL/WGL functions will still be callable but will return 0.
This conveniently means that eglInitialize() and such will report a failure.
Debug messages can be enabled by setting QT_OPENGLPROXY_DEBUG. This will
tell which implementation is chosen.
The textures example application is ported to OpenGL 2, the GL 1
code path is removed.
[ChangeLog][QtGui] Qt builds on Windows can now be configured for
dynamic loading of the OpenGL implementation. This can be requested
by passing -opengl dynamic to configure. In this mode no modules will
link to opengl32.dll or Angle's libegl/libglesv2. Instead, QtGui will
dynamically choose between desktop and Angle during the first GL/EGL/WGL
call. This allows deploying applications with a single set of Qt libraries
with the ability of transparently falling back to Angle in case the
opengl32.dll is not suitable, due to missing graphics drivers for example.
Task-number: QTBUG-36483
Change-Id: I716fdebbf60b355b7d9ef57d1e069eef366b4ab9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
2014-01-27 13:45:11 +00:00
|
|
|
win32:contains(QT_CONFIG, angle)|contains(QT_CONFIG, dynamicgl) {
|
2012-10-15 12:16:51 +00:00
|
|
|
SUBDIRS += src_angle
|
|
|
|
src_gui.depends += src_angle
|
|
|
|
}
|
2013-03-14 10:36:17 +00:00
|
|
|
SUBDIRS += src_gui src_platformsupport
|
|
|
|
contains(QT_CONFIG, opengl(es1|es2)?):SUBDIRS += src_openglextensions
|
2012-07-03 01:30:30 +00:00
|
|
|
src_plugins.depends += src_gui src_platformsupport
|
2012-06-01 14:43:46 +00:00
|
|
|
!contains(QT_CONFIG, no-widgets) {
|
2013-03-08 19:31:05 +00:00
|
|
|
SUBDIRS += src_tools_uic src_widgets
|
2013-05-17 17:54:19 +00:00
|
|
|
TOOLS += src_tools_uic
|
2012-07-03 01:30:30 +00:00
|
|
|
src_plugins.depends += src_widgets
|
2012-06-01 14:43:46 +00:00
|
|
|
contains(QT_CONFIG, opengl(es1|es2)?) {
|
|
|
|
SUBDIRS += src_opengl
|
|
|
|
src_plugins.depends += src_opengl
|
|
|
|
}
|
2013-09-13 09:22:45 +00:00
|
|
|
!wince*:!winrt {
|
2012-06-01 14:43:46 +00:00
|
|
|
SUBDIRS += src_printsupport
|
|
|
|
src_plugins.depends += src_printsupport
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-03-08 19:31:05 +00:00
|
|
|
SUBDIRS += src_plugins src_tools_qdoc
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2012-06-01 14:43:46 +00:00
|
|
|
nacl: SUBDIRS -= src_network src_testlib
|
2013-03-04 09:16:42 +00:00
|
|
|
|
|
|
|
android:!android-no-sdk: SUBDIRS += src_android
|
2013-05-17 17:54:19 +00:00
|
|
|
|
2013-05-17 17:54:19 +00:00
|
|
|
TR_EXCLUDE = \
|
2013-03-07 18:38:26 +00:00
|
|
|
src_tools_bootstrap src_tools_moc src_tools_rcc src_tools_uic src_tools_qlalr \
|
2014-02-25 13:33:43 +00:00
|
|
|
src_tools_bootstrap_dbus src_tools_qdbusxml2cpp src_tools_qdbuscpp2xml \
|
|
|
|
src_3rdparty_harfbuzzng
|
2013-08-21 08:38:57 +00:00
|
|
|
|
2013-05-17 17:54:19 +00:00
|
|
|
sub-tools.depends = $$TOOLS
|
2013-09-20 09:40:16 +00:00
|
|
|
QMAKE_EXTRA_TARGETS = sub-tools
|