signals2/doc/snippet-extractor.jam
Frank Mori Hess 24feae6fca Merged from trunk to release.
[SVN r73361]
2011-07-25 17:23:35 +00:00

26 lines
708 B
Plaintext

# Boost.Signals2 Library
# Copyright Frank Mori Hess 2009.
# Use, modification and
# distribution is subject to the Boost Software License, Version
# 1.0. (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# For more information, see http://www.boost.org
import feature ;
import toolset ;
feature.feature extractor-command : : free dependency ;
toolset.flags snippet-extractor.extract-snippets EXTRACTOR-COMMAND <extractor-command> ;
rule extract-snippets ( target : sources * : properties * )
{
DEPENDS $(target) : [ on $(target) return $(EXTRACTOR-COMMAND) ] ;
}
actions extract-snippets bind EXTRACTOR-COMMAND
{
$(EXTRACTOR-COMMAND[1]) "$(<:D)" $(>)
}