Create DependencyManager API.
[chromium-blink-merge.git] / third_party / brotli / BUILD.gn
blob8e1c111260ed150101d2049508fe6ce1e5d5f095
1 # Copyright 2014 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.
5 source_set("brotli") {
6   sources = [
7     "dec/bit_reader.c",
8     "dec/bit_reader.h",
9     "dec/context.h",
10     "dec/decode.c",
11     "dec/decode.h",
12     "dec/dictionary.h",
13     "dec/huffman.c",
14     "dec/huffman.h",
15     "dec/prefix.h",
16     "dec/safe_malloc.c",
17     "dec/safe_malloc.h",
18     "dec/state.c",
19     "dec/state.h",
20     "dec/streams.c",
21     "dec/streams.h",
22     "dec/transform.h",
23     "dec/types.h",
24   ]
26   configs -= [ "//build/config/compiler:chromium_code" ]
27   configs += [ "//build/config/compiler:no_chromium_code" ]
29   # Since we are never debug brotli, freeze the optimizations to -O2.
30   if (is_debug) {
31     configs -= [ "//build/config/compiler:no_optimize" ]
32   } else {
33     configs -= [ "//build/config/compiler:optimize" ]
34   }
35   configs += [ "//build/config/compiler:optimize_max" ]
37   include_dirs = [ "dec" ]