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

merge from QUICKBOOK_INCLUDE branch

[SVN r30369]
This commit is contained in:
Eric Niebler
2005-08-02 03:39:30 +00:00
parent 2856b43ee6
commit 32d66dfce3

View File

@@ -1,5 +1,5 @@
#
# Copyright (c) 2005 João Abecasis
# Copyright (c) 2005 João Abecasis
# Copyright (c) 2005 Vladimir Prus
#
# Distributed under the Boost Software License, Version 1.0. (See
@@ -108,6 +108,7 @@ import feature ;
import generators ;
import toolset ;
import type ;
import scanner ;
# The one and only QUICKBOOK type!
type.register QUICKBOOK : qbk ;
@@ -243,6 +244,20 @@ class quickbook-binary-generator : generator
}
}
# Define a scanner for tracking QBK include dependencies
class qbk-scanner : common-scanner
{
rule pattern ( )
{
return "\\[include[ \t]+([^]]+)\\]"
"\\[include:[a-zA-Z0-9_]+[ \t]+([^]]+)\\]" ;
}
}
scanner.register qbk-scanner : include ;
type.set-scanner QUICKBOOK : qbk-scanner ;
# Initialization of toolset.
#
# Parameters: