1# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2# vim: set filetype=python:
3# This Source Code Form is subject to the terms of the Mozilla Public
4# License, v. 2.0. If a copy of the MPL was not distributed with this
5# file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7Library("bz2")
8FINAL_LIBRARY = "rnp"
9
10# Honor --with-system-bz2
11if CONFIG["MZLA_SYSTEM_BZIP2"]:
12    OS_LIBS += CONFIG["MZLA_BZIP2_LIBS"]
13else:
14    include("../rnpdefs.mozbuild")
15
16    COMPILE_FLAGS["WARNINGS_CFLAGS"] += [
17        "-Wno-unreachable-code-return",
18    ]
19
20    SOURCES += [
21        "blocksort.c",
22        "bzlib.c",
23        "compress.c",
24        "crctable.c",
25        "decompress.c",
26        "huffman.c",
27        "randtable.c",
28    ]
29