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

Add dependency scanner for Qt Resource Files (.qrc).

[SVN r41908]
This commit is contained in:
Jürgen Hunold
2007-12-08 20:08:29 +00:00
parent 8b12e249be
commit 89cd055eb0

View File

@@ -117,6 +117,9 @@ 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 ]
{
@@ -605,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 ;