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

Function generate_example

example/generate/gen.py:4–16  ·  view source on GitHub ↗
(project, name, ps, sources)

Source from the content-addressed store, hash-verified

2from b2.build.virtual_target import NonScanningAction, FileTarget
3
4def generate_example(project, name, ps, sources):
5
6 result = []
7 for s in sources:
8
9 a = NonScanningAction([s], "common.copy", ps)
10
11 # Create a target to represent the action result. Uses the target name
12 # passed here via the 'name' parameter and the same type and project as
13 # the source.
14 result.append(FileTarget(name, s.type(), project, a))
15
16 return result

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected