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

Function create

tools/ports/bzip2.py:17–27  ·  view source on GitHub ↗
(final)

Source from the content-addressed store, hash-verified

15 ports.fetch_project('bzip2', f'https://github.com/emscripten-ports/bzip2/archive/{VERSION}.zip', sha512hash=HASH)
16
17 def create(final):
18 source_path = ports.get_dir('bzip2', 'bzip2-' + VERSION)
19 ports.install_headers(source_path)
20 ports.make_pkg_config('bzip2', VERSION, '-sUSE_BZIP2')
21
22 # build
23 srcs = [
24 'blocksort.c', 'compress.c', 'decompress.c', 'huffman.c',
25 'randtable.c', 'bzlib.c', 'crctable.c',
26 ]
27 ports.build_port(source_path, final, 'bzip2', srcs=srcs)
28
29 return [shared.cache.get_lib('libbz2.a', create, what='port')]
30

Callers

nothing calls this directly

Calls 4

install_headersMethod · 0.80
make_pkg_configMethod · 0.80
build_portMethod · 0.80
get_dirMethod · 0.45

Tested by

no test coverage detected