MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / create

Function create

tools/ports/boost_headers.py:21–33  ·  view source on GitHub ↗
(final)

Source from the content-addressed store, hash-verified

19 sha512hash=HASH)
20
21 def create(final):
22 # includes
23 source_path = ports.get_dir('boost_headers')
24 source_path_include = os.path.join(source_path, 'boost')
25 ports.install_header_dir(source_path_include, 'boost')
26
27 # write out a dummy cpp file, to create an empty library
28 # this is needed as emscripted ports expect this, even if it is not used
29 dummy_file = os.path.join(source_path, 'dummy.cpp')
30 shared.safe_ensure_dirs(os.path.dirname(dummy_file))
31 ports.write_file(dummy_file, 'static void dummy() {}')
32
33 ports.build_port(source_path, final, 'boost_headers', srcs=['dummy.cpp'])
34
35 return [shared.cache.get_lib('libboost_headers.a', create, what='port')]
36

Callers

nothing calls this directly

Calls 5

install_header_dirMethod · 0.80
write_fileMethod · 0.80
build_portMethod · 0.80
get_dirMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected