OLD | NEW |
| (Empty) |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'targets': [ | |
7 { | |
8 'target_name': 'brotli', | |
9 'type': 'static_library', | |
10 'include_dirs': [ | |
11 'dec', | |
12 ], | |
13 'sources': [ | |
14 'dec/bit_reader.c', | |
15 'dec/bit_reader.h', | |
16 'dec/context.h', | |
17 'dec/decode.c', | |
18 'dec/decode.h', | |
19 'dec/dictionary.c', | |
20 'dec/dictionary.h', | |
21 'dec/huffman.c', | |
22 'dec/huffman.h', | |
23 'dec/port.h', | |
24 'dec/prefix.h', | |
25 'dec/state.c', | |
26 'dec/state.h', | |
27 'dec/transform.h', | |
28 'dec/types.h', | |
29 ], | |
30 'conditions': [ | |
31 ['os_posix==1 and (target_arch=="arm" or target_arch=="armv7" or target_
arch=="arm64")', { | |
32 'cflags!': ['-Os'], | |
33 'cflags': ['-O2'], | |
34 }], | |
35 ], | |
36 'toolsets': ['host', 'target'], | |
37 }, | |
38 { | |
39 'target_name': 'bro', | |
40 'type': 'executable', | |
41 'dependencies': [ | |
42 'brotli', | |
43 ], | |
44 'sources': [ | |
45 'enc/backward_references.cc', | |
46 'enc/backward_references.h', | |
47 'enc/bit_cost.h', | |
48 'enc/block_splitter.cc', | |
49 'enc/block_splitter.h', | |
50 'enc/brotli_bit_stream.cc', | |
51 'enc/brotli_bit_stream.h', | |
52 'enc/cluster.h', | |
53 'enc/command.h', | |
54 'enc/compress_fragment.cc', | |
55 'enc/compress_fragment.h', | |
56 'enc/compress_fragment_two_pass.cc', | |
57 'enc/compress_fragment_two_pass.h', | |
58 'enc/compressor.h', | |
59 'enc/context.h', | |
60 'enc/dictionary_hash.h', | |
61 'enc/encode.cc', | |
62 'enc/encode.h', | |
63 'enc/encode_parallel.cc', | |
64 'enc/encode_parallel.h', | |
65 'enc/entropy_encode.cc', | |
66 'enc/entropy_encode.h', | |
67 'enc/entropy_encode_static.h', | |
68 'enc/fast_log.h', | |
69 'enc/find_match_length.h', | |
70 'enc/hash.h ', | |
71 'enc/histogram.cc', | |
72 'enc/histogram.h', | |
73 'enc/literal_cost.cc', | |
74 'enc/literal_cost.h', | |
75 'enc/metablock.cc', | |
76 'enc/metablock.h', | |
77 'enc/port.h ', | |
78 'enc/prefix.h', | |
79 'enc/ringbuffer.h', | |
80 'enc/static_dict.cc', | |
81 'enc/static_dict.h', | |
82 'enc/static_dict_lut.h', | |
83 'enc/streams.cc', | |
84 'enc/streams.h', | |
85 'enc/transform.h', | |
86 'enc/types.h', | |
87 'enc/utf8_util.cc', | |
88 'enc/utf8_util.h', | |
89 'enc/write_bits.h', | |
90 'tools/bro.cc', | |
91 ], | |
92 'toolsets': ['host'], | |
93 'conditions': [ | |
94 ['OS=="win" and MSVS_VERSION == "2015"', { | |
95 # Disabling "result of 32-bit shift implicitly converted to 64 bits", | |
96 # caused by code like: foo |= (1 << i); // warning 4334 | |
97 'msvs_disabled_warnings': [ 4334, ], | |
98 }], | |
99 ], | |
100 } | |
101 ], | |
102 } | |
OLD | NEW |