Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: third_party/brotli/BUILD.gn

Issue 1269293003: Explicitly pass -Wno-unused-function to the targets that need it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gnnnnnnnnnnn Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/brotli/brotli.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 source_set("brotli") { 5 source_set("brotli") {
6 sources = [ 6 sources = [
7 "dec/bit_reader.c", 7 "dec/bit_reader.c",
8 "dec/bit_reader.h", 8 "dec/bit_reader.h",
9 "dec/context.h", 9 "dec/context.h",
10 "dec/decode.c", 10 "dec/decode.c",
11 "dec/decode.h", 11 "dec/decode.h",
12 "dec/dictionary.h", 12 "dec/dictionary.h",
13 "dec/huffman.c", 13 "dec/huffman.c",
14 "dec/huffman.h", 14 "dec/huffman.h",
15 "dec/prefix.h", 15 "dec/prefix.h",
16 "dec/safe_malloc.c", 16 "dec/safe_malloc.c",
17 "dec/safe_malloc.h", 17 "dec/safe_malloc.h",
18 "dec/state.c", 18 "dec/state.c",
19 "dec/state.h", 19 "dec/state.h",
20 "dec/streams.c", 20 "dec/streams.c",
21 "dec/streams.h", 21 "dec/streams.h",
22 "dec/transform.h", 22 "dec/transform.h",
23 "dec/types.h", 23 "dec/types.h",
24 ] 24 ]
25 25
26 config("brotli_warnings") {
27 if (is_clang) {
28 # IncrementalCopyFastPath in decode.c can be unused.
29 # (The file looks very different upstream, this is probably no longer
30 # needed after rolling brotli the next time.)
31 cflags = [ "-Wno-unused-function" ]
32 }
33 }
26 configs -= [ "//build/config/compiler:chromium_code" ] 34 configs -= [ "//build/config/compiler:chromium_code" ]
27 configs += [ "//build/config/compiler:no_chromium_code" ] 35 configs += [ "//build/config/compiler:no_chromium_code" ]
36 configs += [ ":brotli_warnings" ]
28 37
29 # Since we are never debug brotli, freeze the optimizations to -O2. 38 # Since we are never debug brotli, freeze the optimizations to -O2.
30 if (is_debug) { 39 if (is_debug) {
31 configs -= [ "//build/config/compiler:no_optimize" ] 40 configs -= [ "//build/config/compiler:no_optimize" ]
32 } else { 41 } else {
33 configs -= [ "//build/config/compiler:optimize" ] 42 configs -= [ "//build/config/compiler:optimize" ]
34 } 43 }
35 configs += [ "//build/config/compiler:optimize_max" ] 44 configs += [ "//build/config/compiler:optimize_max" ]
36 45
37 include_dirs = [ "dec" ] 46 include_dirs = [ "dec" ]
38 } 47 }
OLDNEW
« no previous file with comments | « no previous file | third_party/brotli/brotli.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698