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

Method __init__

v2/manager.py:18–42  ·  view source on GitHub ↗

Constructor. engine: the build engine that will actually construct the targets.

(self, engine, global_build_dir)

Source from the content-addressed store, hash-verified

16 """
17
18 def __init__ (self, engine, global_build_dir):
19 """ Constructor.
20 engine: the build engine that will actually construct the targets.
21 """
22 from build.virtual_target import VirtualTargetRegistry
23 from build.targets import TargetRegistry
24 from build.project import ProjectRegistry
25 from build.scanner import ScannerRegistry
26 from build.errors import Errors
27 from b2.util.logger import NullLogger
28 from build import build_request, property_set, feature
29
30 self.engine_ = engine
31 self.virtual_targets_ = VirtualTargetRegistry (self)
32 self.projects_ = ProjectRegistry (self, global_build_dir)
33 self.targets_ = TargetRegistry ()
34 self.logger_ = NullLogger ()
35 self.scanners_ = ScannerRegistry (self)
36 self.argv_ = bjam.variable("ARGV")
37 self.boost_build_path_ = bjam.variable("BOOST_BUILD_PATH")
38 self.errors_ = Errors()
39 self.command_line_free_features_ = property_set.empty()
40
41 global the_manager
42 the_manager = self
43
44 def scanners (self):
45 return self.scanners_

Callers

nothing calls this directly

Calls 2

NullLoggerClass · 0.90
emptyMethod · 0.80

Tested by

no test coverage detected