moz.build (1754B)
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 7 with Files('**'): 8 BUG_COMPONENT = ('Core', 'General') 9 10 EXPORTS.brotli += [ 11 'include/brotli/decode.h', 12 'include/brotli/encode.h', 13 'include/brotli/port.h', 14 'include/brotli/shared_dictionary.h', 15 'include/brotli/types.h', 16 ] 17 18 UNIFIED_SOURCES += [ 19 'common/constants.c', 20 'common/context.c', 21 'common/dictionary.c', 22 'common/platform.c', 23 'common/shared_dictionary.c', 24 'common/transform.c', 25 'dec/bit_reader.c', 26 'dec/decode.c', 27 'dec/huffman.c', 28 'dec/prefix.c', 29 'dec/state.c', 30 'dec/static_init.c', 31 'enc/backward_references.c', 32 'enc/backward_references_hq.c', 33 'enc/bit_cost.c', 34 'enc/block_splitter.c', 35 'enc/brotli_bit_stream.c', 36 'enc/cluster.c', 37 'enc/command.c', 38 'enc/compound_dictionary.c', 39 'enc/dictionary_hash.c', 40 'enc/encode.c', 41 'enc/encoder_dict.c', 42 'enc/fast_log.c', 43 'enc/histogram.c', 44 'enc/literal_cost.c', 45 'enc/memory.c', 46 'enc/metablock.c', 47 'enc/static_dict.c', 48 'enc/static_dict_lut.c', 49 'enc/static_init_enc.c', 50 'enc/utf8_util.c', 51 ] 52 53 SOURCES += [ 54 # These files conflict with enc/hash.h and also with each other 55 'enc/compress_fragment.c', 56 'enc/compress_fragment_two_pass.c', 57 58 # Conflict with enc/brotli_bit_stream.c 59 'enc/entropy_encode.c' 60 ] 61 62 # We allow warnings for third-party code that can be updated from upstream. 63 AllowCompilerWarnings() 64 65 CFLAGS += ['-DBROTLI_BUILD_PORTABLE'] 66 67 Library('brotli')