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

Function set_library_order

v2/tools/unix.py:129–146  ·  view source on GitHub ↗
(manager, sources, prop_set, result)

Source from the content-addressed store, hash-verified

127 __order.add_pair (f, t)
128
129def set_library_order (manager, sources, prop_set, result):
130 used_libraries = []
131 deps = prop_set.dependency ()
132
133 sources.extend(d.value() for d in deps)
134 sources = sequence.unique(sources)
135
136 for l in sources:
137 if l.type () and type.is_derived (l.type (), 'LIB'):
138 used_libraries.append (l)
139
140 created_libraries = []
141 for l in result:
142 if l.type () and type.is_derived (l.type (), 'LIB'):
143 created_libraries.append (l)
144
145 created_libraries = set.difference (created_libraries, used_libraries)
146 set_library_order_aux (created_libraries, used_libraries)
147
148def order_libraries (libraries):
149 return __order.order (libraries)

Callers 3

runMethod · 0.85
runMethod · 0.85
runMethod · 0.85

Calls 2

set_library_order_auxFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected