MCPcopy Create free account
hub / github.com/boostorg/build / expand_target_variable

Function expand_target_variable

v2/tools/msvc.py:268–270  ·  view source on GitHub ↗
(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.
268def 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
273compile_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)'''

Callers 1

get_rsplineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected