summaryrefslogtreecommitdiffstats
path: root/third_party/brotli/brotli.gyp
blob: f7b3aa1a2c4b4738bd2889d93a6f7b7ae7e7456b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      'target_name': 'brotli',
      'type': 'static_library',
      'include_dirs': [
        'dec',
      ],
      'sources': [
        'dec/bit_reader.c',
        'dec/bit_reader.h',
        'dec/context.h',
        'dec/decode.c',
        'dec/decode.h',
        'dec/dictionary.c',
        'dec/dictionary.h',
        'dec/huffman.c',
        'dec/huffman.h',
        'dec/port.h',
        'dec/prefix.h',
        'dec/state.c',
        'dec/state.h',
        'dec/streams.c',
        'dec/streams.h',
        'dec/transform.h',
        'dec/types.h',
      ],
      'conditions': [
        ['os_posix==1 and (target_arch=="arm" or target_arch=="armv7" or target_arch=="arm64")', {
          'cflags!': ['-Os'],
          'cflags': ['-O2'],
        }],
      ],
    },
  ],
}