2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-18 14:02:11 +00:00

Merged revisions 41907-41908 via svnmerge from

https://svn.boost.org/svn/boost/trunk

........
  r41907 | jhunold | 2007-12-08 21:02:33 +0100 (Sa, 08 Dez 2007) | 2 lines
  
  Add support for QtScript library.
........
  r41908 | jhunold | 2007-12-08 21:08:29 +0100 (Sa, 08 Dez 2007) | 2 lines
  
  Add dependency scanner for Qt Resource Files (.qrc).
........


[SVN r42095]
This commit is contained in:
Jürgen Hunold
2007-12-16 10:13:26 +00:00
parent 54579c6875
commit 6c666ae8a9

View File

@@ -46,6 +46,7 @@ import project ;
import toolset : flags ;
import os ;
import virtual-target ;
import scanner ;
# Qt3Support control feature
#
@@ -116,11 +117,14 @@ rule init ( prefix )
# Generates .cpp file from qrc file
generators.register-standard qt4.rcc : QRC : CPP(qrc_%) ;
# dependency scanner for wrapped files
type.set-scanner QRC : qrc-scanner ;
# Test for a buildable Qt.
if [ glob $(.prefix)/Jamroot ]
{
# Import all Qt Modules
local all-libraries = QtCore QtGui QtNetwork QtXml QtSql QtSvg QtOpenGL Qt3Support QtTest QtAssistantClient QtDesigner QtUiTools QtDBus ;
local all-libraries = QtCore QtGui QtNetwork QtXml QtSql QtSvg QtOpenGL Qt3Support QtTest QtAssistantClient QtDesigner QtUiTools QtDBus QtScript ;
for local l in $(all-libraries)
{
alias $(l)
@@ -422,6 +426,23 @@ rule init ( prefix )
: # usage-requirements
<include>$(.incprefix)/QtDBus
;
# Script-Engine (Qt 4.3)
lib QtScript : QtGui QtXml
: # requirements
<name>QtScript$(suffix_version)
: # default-build
: # usage-requirements
<include>$(.incprefix)/QtScript
;
lib QtScript : QtGui QtXml
: # requirements
<name>QtScript$(suffix_debug)$(suffix_version)
<variant>debug
: # default-build
: # usage-requirements
<include>$(.incprefix)/QtScript
;
}
}
@@ -587,3 +608,19 @@ actions uic-h
{
$(.binprefix)/uic $(>) -o $(<)
}
# Scanner for .qrc files.
# Look for the CDATA section of the <file> tag.
# Ignore the "alias" attribute.
# See http://doc.trolltech.com/qt/resources.html
# for detailed documentation of the Qt Resource System.
class qrc-scanner : common-scanner
{
rule pattern ( )
{
return "<file.*>(.*)</file>" ;
}
}
# Wrapped files are "included".
scanner.register qrc-scanner : include ;