mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
a3f3cfc7c5
Co-authored-by: Anna Henningsen <anna@addaleax.net> PR-URL: https://github.com/nodejs/node/pull/24938 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
64 lines
1.4 KiB
Python
64 lines
1.4 KiB
Python
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'brotli',
|
|
'type': 'static_library',
|
|
'include_dirs': ['c/include'],
|
|
'conditions': [
|
|
['OS=="linux"', {
|
|
'defines': [
|
|
'OS_LINUX'
|
|
]
|
|
}],
|
|
['OS=="freebsd"', {
|
|
'defines': [
|
|
'OS_FREEBSD'
|
|
]
|
|
}],
|
|
['OS=="mac"', {
|
|
'defines': [
|
|
'OS_MACOSX'
|
|
]
|
|
}],
|
|
],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [ 'c/include' ]
|
|
},
|
|
'libraries': [
|
|
'-lm',
|
|
],
|
|
'sources': [
|
|
# Common
|
|
'c/common/dictionary.c',
|
|
'c/common/transform.c',
|
|
|
|
# Decoder
|
|
'c/dec/bit_reader.c',
|
|
'c/dec/decode.c',
|
|
'c/dec/huffman.c',
|
|
'c/dec/state.c',
|
|
|
|
# Encoder
|
|
'c/enc/backward_references.c',
|
|
'c/enc/backward_references_hq.c',
|
|
'c/enc/bit_cost.c',
|
|
'c/enc/block_splitter.c',
|
|
'c/enc/brotli_bit_stream.c',
|
|
'c/enc/cluster.c',
|
|
'c/enc/compress_fragment.c',
|
|
'c/enc/compress_fragment_two_pass.c',
|
|
'c/enc/dictionary_hash.c',
|
|
'c/enc/encode.c',
|
|
'c/enc/encoder_dict.c',
|
|
'c/enc/entropy_encode.c',
|
|
'c/enc/histogram.c',
|
|
'c/enc/literal_cost.c',
|
|
'c/enc/memory.c',
|
|
'c/enc/metablock.c',
|
|
'c/enc/static_dict.c',
|
|
'c/enc/utf8_util.c'
|
|
]
|
|
}
|
|
]
|
|
}
|