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

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

Issue 1316843006: Revert of Un-nest configs in GN files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « sdch/BUILD.gn ('k') | third_party/cld_2/BUILD.gn » ('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 config("brotli_warnings") {
6 if (is_clang) {
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" ]
11 }
12 }
13
14 source_set("brotli") { 5 source_set("brotli") {
15 sources = [ 6 sources = [
16 "dec/bit_reader.c", 7 "dec/bit_reader.c",
17 "dec/bit_reader.h", 8 "dec/bit_reader.h",
18 "dec/context.h", 9 "dec/context.h",
19 "dec/decode.c", 10 "dec/decode.c",
20 "dec/decode.h", 11 "dec/decode.h",
21 "dec/dictionary.h", 12 "dec/dictionary.h",
22 "dec/huffman.c", 13 "dec/huffman.c",
23 "dec/huffman.h", 14 "dec/huffman.h",
24 "dec/prefix.h", 15 "dec/prefix.h",
25 "dec/safe_malloc.c", 16 "dec/safe_malloc.c",
26 "dec/safe_malloc.h", 17 "dec/safe_malloc.h",
27 "dec/state.c", 18 "dec/state.c",
28 "dec/state.h", 19 "dec/state.h",
29 "dec/streams.c", 20 "dec/streams.c",
30 "dec/streams.h", 21 "dec/streams.h",
31 "dec/transform.h", 22 "dec/transform.h",
32 "dec/types.h", 23 "dec/types.h",
33 ] 24 ]
34 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 }
35 configs -= [ "//build/config/compiler:chromium_code" ] 34 configs -= [ "//build/config/compiler:chromium_code" ]
36 configs += [ 35 configs += [ "//build/config/compiler:no_chromium_code" ]
37 ":brotli_warnings", 36 configs += [ ":brotli_warnings" ]
38 "//build/config/compiler:no_chromium_code",
39 ]
40 37
41 # Since we are never debug brotli, freeze the optimizations to -O2. 38 # Since we are never debug brotli, freeze the optimizations to -O2.
42 if (is_debug) { 39 if (is_debug) {
43 configs -= [ "//build/config/compiler:no_optimize" ] 40 configs -= [ "//build/config/compiler:no_optimize" ]
44 } else { 41 } else {
45 configs -= [ "//build/config/compiler:optimize" ] 42 configs -= [ "//build/config/compiler:optimize" ]
46 } 43 }
47 configs += [ "//build/config/compiler:optimize_max" ] 44 configs += [ "//build/config/compiler:optimize_max" ]
48 45
49 include_dirs = [ "dec" ] 46 include_dirs = [ "dec" ]
50 } 47 }
OLDNEW
« no previous file with comments | « sdch/BUILD.gn ('k') | third_party/cld_2/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698