Function
expand_target_variable
(target,var,prefix=None,suffix=None)
Source from the content-addressed store, hash-verified
| 266 | |
| 267 | # Equivalent to [ on $(target) return $(prefix)$(var)$(suffix) ]. Note that $(var) can be a list. |
| 268 | def expand_target_variable(target,var,prefix=None,suffix=None): |
| 269 | list = bjam.call( 'get-target-variable', target, var ) |
| 270 | return " ".join([ ("" if prefix is None else prefix) + elem + ("" if suffix is None else suffix) for elem in list ]) |
| 271 | |
| 272 | |
| 273 | compile_c_cpp_pch = '''$(.CC) @"@($(<[1]:W).rsp:E="$(>[2]:W)" -Fo"$(<[2]:W)" -Yc"$(>[1]:D=)" $(YLOPTION)"__bjam_pch_symbol_$(>[1]:D=)" -Fp"$(<[1]:W)" $(CC_RSPLINE))" "@($(<[1]:W).cpp:E=#include $(.escaped-double-quote)$(>[1]:D=)$(.escaped-double-quote)$(.nl))" $(.CC.FILTER)''' |
Tested by
no test coverage detected