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

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

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

Powered by Google App Engine
This is Rietveld 408576698