(final)
| 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 |
nothing calls this directly
no test coverage detected