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 config("brotli_warnings") {
7 # IncrementalCopyFastPath in decode.c can be unused.
8 # (The file looks very different upstream, this is probably no longer
9 # needed after rolling brotli the next time.)
10 cflags = [ "-Wno-unused-function" ]
14 source_set("brotli") {
35 configs -= [ "//build/config/compiler:chromium_code" ]
37 "//build/config/compiler:no_chromium_code",
39 # Must be after no_chromium_code for warning flags to be ordered correctly.
43 # Since we are never debug brotli, freeze the optimizations to -O2.
45 configs -= [ "//build/config/compiler:no_optimize" ]
47 configs -= [ "//build/config/compiler:optimize" ]
49 configs += [ "//build/config/compiler:optimize_max" ]
51 include_dirs = [ "dec" ]