Files
mozilla45esr/modules/brotli/moz.build
T
roytam1 61b754e63f ported from UXP:
- Issue #61 - Reinstate buildability with shared gkmedias dll (371d7cf05d)
- Issue #61 - Add configure option for non-windows platforms (924bf92e4b)
- Issue #61 - Add missing external symbol cubeb_set_log_callback to gkmedias symbols.def (c85f28b0c0)
- Issue #61 - Add missing external symbols for gkmedias when WebRTC is built (6b510a74e7)
- Issue #61 - Follow-up: Fix gkmedias.dll link bustage related to Skia. (6e2f70a70f)
- Issue #61 - Follow-up: Fix xul.dll link bustage related to Skia. (4584069f26)
2023-08-26 00:00:53 +08:00

77 lines
1.8 KiB
INI

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#with Files('**'):
# BUG_COMPONENT = ('Core', 'General')
EXPORTS += [
'dec/state.h',
]
EXPORTS.brotli += [
'include/brotli/decode.h',
'include/brotli/encode.h',
'include/brotli/port.h',
'include/brotli/types.h',
]
UNIFIED_SOURCES += [
'common/constants.c',
'common/context.c',
'common/dictionary.c',
'common/platform.c',
'common/transform.c',
'dec/bit_reader.c',
'dec/decode.c',
'dec/huffman.c',
'dec/state.c',
]
if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
NO_VISIBILITY_FLAGS = True
# We allow warnings for third-party code that can be updated from upstream.
ALLOW_COMPILER_WARNINGS = True
CFLAGS += ['-DBROTLI_BUILD_PORTABLE']
Library('brotli')
FINAL_LIBRARY = 'gkmedias'
HostProgram('brotli')
HOST_SOURCES += UNIFIED_SOURCES
HOST_SOURCES += [
'enc/backward_references.c',
'enc/backward_references_hq.c',
'enc/bit_cost.c',
'enc/block_splitter.c',
'enc/brotli_bit_stream.c',
'enc/cluster.c',
'enc/command.c',
'enc/compress_fragment.c',
'enc/compress_fragment_two_pass.c',
'enc/dictionary_hash.c',
'enc/encode.c',
'enc/encoder_dict.c',
'enc/entropy_encode.c',
'enc/fast_log.c',
'enc/histogram.c',
'enc/literal_cost.c',
'enc/memory.c',
'enc/metablock.c',
'enc/static_dict.c',
'enc/utf8_util.c',
'tools/brotli.c',
]
#if CONFIG['HOST_CC_TYPE'] not in ('msvc', 'clang-cl'):
# HOST_OS_LIBS += [
# 'm' # for log2() function used by Brotli encoder
# ]