Roll harfbuzz-ng to 1.0.2
[chromium-blink-merge.git] / third_party / brotli / brotli.gyp
blob38c472976dc5c87d327a826acf5f2f00c2ca5ee3
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.
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.h',
20         'dec/huffman.c',
21         'dec/huffman.h',
22         'dec/prefix.h',
23         'dec/safe_malloc.c',
24         'dec/safe_malloc.h',
25         'dec/state.c',
26         'dec/state.h',
27         'dec/streams.c',
28         'dec/streams.h',
29         'dec/transform.h',
30         'dec/types.h',
31       ],
32       'variables': {
33         'clang_warning_flags': [
34           # IncrementalCopyFastPath in decode.c can be unused.
35           # (The file looks very different upstream, this is probably no longer
36           # needed after rolling brotli the next time.)
37           '-Wno-unused-function',
38         ],
39       },
40       'conditions': [
41         ['os_posix==1 and (target_arch=="arm" or target_arch=="armv7" or target_arch=="arm64")', {
42           'cflags!': ['-Os'],
43           'cflags': ['-O2'],
44         }],
45       ],
46     },
47   ],