From 5eda58eb82107327c1fcb3facafb470ff0890a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hunold?= Date: Thu, 21 Sep 2006 20:05:26 +0000 Subject: [PATCH] Add missing QtDesigner library. Improve control of Qt3Support library. [SVN r35266] --- src/tools/qt4.jam | 44 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/src/tools/qt4.jam b/src/tools/qt4.jam index 1c0410420..f96459c54 100644 --- a/src/tools/qt4.jam +++ b/src/tools/qt4.jam @@ -47,6 +47,24 @@ import toolset : flags ; import os ; import virtual-target ; +# Qt3Support control feature +# +# Qt4 configure defaults to build Qt4 libraries with Qt3Support. +# The autodetection is missing, so we default to disable Qt3Support. +# This prevents the user from inadvertedly using a deprecated API. +# +# The Qt3Support library can be activated by adding +# "on" to requirements +# +# Use "on:QT3_SUPPORT_WARNINGS" +# to get warnings about deprecated Qt3 support funtions and classes. +# Files ported by the "qt3to4" conversion tool contain _tons_ of +# warnings, so this define is not set as default. +# +# Todo: Detect Qt3Support from Qt's configure data. +# Or add more auto-configuration (like python). +feature.feature qt3support : off on : propagated link-incompatible ; + project.initialize $(__name__) ; project qt ; @@ -96,7 +114,7 @@ rule init ( prefix ) if [ glob $(.prefix)/Jamroot ] { # Import all Qt Modules - local all-libraries = QtCore QtGui QtNetwork QtXml QtSql QtSvg QtOpenGL Qt3Support QtTest QtAssistantClient QtUiTools ; + local all-libraries = QtCore QtGui QtNetwork QtXml QtSql QtSvg QtOpenGL Qt3Support QtTest QtAssistantClient QtDesigner QtUiTools ; for local l in $(all-libraries) { alias $(l) @@ -219,21 +237,26 @@ rule init ( prefix ) ; lib Qt3Support : QtGui QtNetwork QtXml QtSql - : Qt3Support$(suffix_version) release + : Qt3Support$(suffix_version) release on : : # usage-requirements QT_QT3SUPPORT_LIB QT3_SUPPORT $(.prefix)/include/Qt3Support ; + lib Qt3Support : QtGui QtNetwork QtXml QtSql - : Qt3Support$(suffix_debug)$(suffix_version) debug + : Qt3Support$(suffix_debug)$(suffix_version) debug on : : # usage-requirements QT_QT3SUPPORT_LIB QT3_SUPPORT $(.prefix)/include/Qt3Support ; + + # Dummy target to enable "off" and "/qt//Qt3Support" at the same time. + # This enables quick switching from one to the other for test/porting purposes. + alias Qt3Support : : off ; # OpenGl Support lib QtOpenGL : QtGui @@ -295,6 +318,21 @@ rule init ( prefix ) $(.prefix)/include/QtAssistant ; + # Qt designer library + lib QtDesigner : QtGui QtXml + : QtDesigner$(suffix_version) release + : + : # usage-requirements + $(.prefix)/include/QtDesigner + ; + + lib QtDesigner : QtGui QtXml + : QtDesigner$(suffix_debug)$(suffix_version) debug + : + : # usage-requirements + $(.prefix)/include/QtDesigner + ; + # Support for dynamic Widgets (Qt 4.1) lib QtUiTools : QtGui QtXml : QtUiTools$(suffix_version) release