• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  'targets': [
3    {
4      'target_name': 'brotli',
5      'type': 'static_library',
6      'include_dirs': ['c/include'],
7      'conditions': [
8        ['OS=="linux"', {
9          'defines': [
10            'OS_LINUX'
11          ]
12        }],
13        ['OS=="freebsd"', {
14          'defines': [
15            'OS_FREEBSD'
16          ]
17        }],
18        ['OS=="mac"', {
19          'defines': [
20            'OS_MACOSX'
21          ]
22        }],
23      ],
24      'direct_dependent_settings': {
25        'include_dirs': [ 'c/include' ]
26      },
27      'libraries': [
28        '-lm',
29      ],
30      'sources': [
31        # Common
32        'c/common/constants.c',
33        'c/common/context.c',
34        'c/common/dictionary.c',
35        'c/common/platform.c',
36        'c/common/transform.c',
37
38        # Decoder
39        'c/dec/bit_reader.c',
40        'c/dec/decode.c',
41        'c/dec/huffman.c',
42        'c/dec/state.c',
43
44        # Encoder
45        'c/enc/backward_references.c',
46        'c/enc/backward_references_hq.c',
47        'c/enc/bit_cost.c',
48        'c/enc/block_splitter.c',
49        'c/enc/brotli_bit_stream.c',
50        'c/enc/cluster.c',
51        'c/enc/command.c',
52        'c/enc/compress_fragment.c',
53        'c/enc/compress_fragment_two_pass.c',
54        'c/enc/dictionary_hash.c',
55        'c/enc/encode.c',
56        'c/enc/encoder_dict.c',
57        'c/enc/entropy_encode.c',
58        'c/enc/fast_log.c',
59        'c/enc/histogram.c',
60        'c/enc/literal_cost.c',
61        'c/enc/memory.c',
62        'c/enc/metablock.c',
63        'c/enc/static_dict.c',
64        'c/enc/utf8_util.c'
65      ]
66    }
67  ]
68}
69