/usr/share/boost-build/src/tools
NameSizeModeActions
doxygen/-0755rm
features/-0755rm
generators/-0755rm
types/-0755rm
xsltproc/-0755rm
acc.jam48000644editdlrm
asciidoctor.jam64800644editdlrm
auto-index.jam83240644editdlrm
bison.jam5890644editdlrm
boostbook-config.jam3890644editdlrm
boostbook.jam240560644editdlrm
borland.jam99920644editdlrm
builtin.jam30370644editdlrm
bzip2.jam80660644editdlrm
cast.jam32370644editdlrm
clang-darwin.jam67130644editdlrm
clang-linux.jam99840644editdlrm
clang-vxworks.jam40260644editdlrm
clang-win.jam60940644editdlrm
clang.jam23100644editdlrm
common.jam316790644editdlrm
como-linux.jam35280644editdlrm
como-win.jam42370644editdlrm
como.jam20630644editdlrm
convert.jam19870644editdlrm
cray.jam411280644editdlrm
cw-config.jam12830644editdlrm
cw.jam95490644editdlrm
cygwin.jam4030644editdlrm
darwin.jam221650644editdlrm
diab.jam43070644editdlrm
dmc.jam60940644editdlrm
docutils.jam34440644editdlrm
doxproc.py366210644editdlrm
doxygen-config.jam3880644editdlrm
doxygen.jam247450644editdlrm
embarcadero.jam214870644editdlrm
emscripten.jam37790644editdlrm
flags.jam45700644editdlrm
fop.jam16930644editdlrm
fortran.jam19890644editdlrm
gcc.jam552880644editdlrm
generate.jam33390644editdlrm
gettext.jam76630644editdlrm
gfortran.jam10080644editdlrm
hpfortran.jam9020644editdlrm
hp_cxx.jam80890644editdlrm
ifort.jam14950644editdlrm
intel-darwin.jam97850644editdlrm
intel-linux.jam91930644editdlrm
intel-vxworks.jam70850644editdlrm
intel-win.jam163960644editdlrm
intel.jam26260644editdlrm
lex.jam5590644editdlrm
libjpeg.jam73620644editdlrm
libpng.jam71040644editdlrm
libtiff.jam72080644editdlrm
link.jam150210644editdlrm
lzma.jam32770644editdlrm
make.jam22660644editdlrm
mc.jam13110644editdlrm
message.jam16670644editdlrm
midl.jam53670644editdlrm
mipspro.jam52910644editdlrm
mpi.jam218260644editdlrm
msvc-config.jam3930644editdlrm
msvc.jam846720644editdlrm
notfile.jam16540644editdlrm
openssl.jam36130644editdlrm
package.jam92810644editdlrm
pathscale.jam66290644editdlrm
pch.jam27190644editdlrm
pgi.jam48790644editdlrm
pkg-config.jam134430644editdlrm
python-config.jam8360644editdlrm
python.jam436790644editdlrm
qcc.jam108360644editdlrm
qt.jam5300644editdlrm
qt3.jam68100644editdlrm
qt4.jam239740644editdlrm
qt5.jam265170644editdlrm
quickbook-config.jam12660644editdlrm
quickbook.jam132770644editdlrm
rc.jam53640644editdlrm
sass.jam57020644editdlrm
saxonhe.jam13290644editdlrm
stage.jam285130644editdlrm
stlport.jam118800644editdlrm
sun.jam80540644editdlrm
symlink.jam43510644editdlrm
testing-aux.jam102380644editdlrm
testing.jam278890644editdlrm
unix.jam58470644editdlrm
vacpp.jam57250644editdlrm
vmsdecc.jam201850644editdlrm
whale.jam32530644editdlrm
xlcpp.jam61210644editdlrm
xlf.jam9000644editdlrm
xsltproc-config.jam8380644editdlrm
xsltproc.jam56030644editdlrm
zlib.jam69760644editdlrm
zstd.jam24460644editdlrm
Edit: /usr/share/boost-build/src/tools/sass.jam (5702B)
#| Copyright 2017 Dmitry Arkhipov Distributed under 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) |# import common ; import feature ; import generators ; import modules ; import sequence ; import toolset ; import "class" : new ; #| tag::doc[] = Sass This tool converts SASS and SCSS files into CSS. This tool explicitly supports both the version written in C (sassc) and the original Ruby implementation (scss) but other variants might also work. In addition to tool-specific features, described in this section, the tool recognizes features `` and ``. |# # end::doc[] feature.feature sass : : implicit propagated symmetric ; #| tag::doc[] == Feature: `sass-style` Sets the output style. Available values are * `nested`: each property is put on its own line, rules are indented based on how deeply they are nested; * `expanded`: each property is put on its own line, rules are not indented; * `compact`: each rule is put on a single line, nested rules occupy adjacent lines, while groups of unrelated rules are separated by newlines; * `compressed`: takes minimum amount of space: all unnecessary whitespace is removed, property values are compressed to have minimal representation. The feature is `optional` and is not `propagated` to dependent targets. If no style is specified, then, if property set contains property `on`, `compressed` style is selected. Otherwise, `nested` style is selected. |# # end::doc[] feature.subfeature sass : style : nested expanded compact compressed : optional ; #| tag::doc[] == Feature: `sass-line-numbers` Enables emitting comments showing original line numbers for rules. This can be useful for debugging a stylesheet. Available values are `on` and `off`. The feature is `optional` and is not `propagated` to dependent targets. If no value for this feature is specified, then one is copied from the feature `debug-symbols`. |# # end::doc[] feature.subfeature sass : line-numbers : on off : optional ; #| tag::doc[] == Initialization To use the `sass` tool you need to declare it in a configuration file with the `using` rule. The initialization takes the following arguments: * `command`: the command, with any extra arguments, to execute. For example you could insert the following in your `user-config.jam`: ``` using sass : /usr/local/bin/psass -p2 ; # Perl libsass-based version ``` If no `command` is given, `sassc` is tried, after which `scss` is tried. |# # end::doc[] rule init ( command * ) { if ! $(.initialized) { # Setup only if we were called via "using .. ;" .initialized = true ; # Register generators generators.register [ new sass-generator sass.convert : SASS : CSS ] ; } # Setting up command if ! $(command) { # If none was specified by the user, first try sassc, then scss SASS = [ common.find-tool sassc ] ; SASS ?= [ common.find-tool scss ] ; } else { # Otherwise we attempt to resolve each component of the command to # account for script interpreter wrappers. SASS = [ sequence.transform maybe-find-tool : $(command) ] ; } } class sass-generator : generator { import property-set ; rule run ( project name ? : property-set : sources + ) { local style = [ $(property-set).get ] ; local line-numbers = [ $(property-set).get ] ; # Only one source file is sensible; we accept only sass and scss files if ( ! $(sources[2]) ) && ( [ $(sources[1]).type ] in SASS ) { # If no output name was given, guess it from sources if ! $(name) { name = [ generator.determine-output-name $(sources) ] ; } # If output style was not given, then it is determined by # feature if ! $(style) { switch [ $(property-set).get ] { case "off" : style = nested ; case * : style = compressed ; } } # If line-numbers feature wasn't specified, copy it from # line-numbers ?= [ $(property-set).get ] ; } # We build a reduced property set so that we are not toolset dependent. local raw-set = $(style) $(line-numbers) ; raw-set += [ sequence.filter recognized-feature : [ $(property-set).raw ] ] ; raw-set = [ feature.expand-composites $(raw-set) ] ; raw-set += [ $(property-set).incidental ] ; property-set = [ property-set.create $(raw-set) ] ; return [ generator.run $(project) $(name) : $(property-set) : $(sources) ] ; } local rule recognized-feature ( feature ) { local result ; if $(feature:G) in { result = true ; } return $(result) ; } } _ = " " ; toolset.flags sass STYLE : ; toolset.flags sass LINE_NUMBERS on : --line-numbers ; toolset.flags sass INCLUDES : ; toolset.flags sass FLAGS : ; actions convert { "$(SASS)" -t$(_)"$(STYLE)" $(LINE_NUMBERS) -I$(_)"$(INCLUDES)" $(FLAGS) "$(>)" $(_)"$(<)" } local rule maybe-find-tool ( command ) { local tool = [ common.find-tool $(command) ] ; tool ?= $(command) ; return $(tool) ; }