OLD | NEW |
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 import("config.gni") | 5 import("config.gni") |
6 if (is_clang) { | 6 if (is_clang) { |
7 import("//build/config/clang/clang.gni") | 7 import("//build/config/clang/clang.gni") |
8 } | 8 } |
9 | 9 |
10 visibility = [ "//third_party/WebKit/*" ] | 10 visibility = [ "//third_party/WebKit/*" ] |
11 | 11 |
| 12 config("public_features") { |
| 13 defines = public_feature_defines_list |
| 14 } |
| 15 |
12 # features --------------------------------------------------------------------- | 16 # features --------------------------------------------------------------------- |
13 | 17 |
14 config("features") { | 18 config("features") { |
15 defines = feature_defines_list | 19 defines = feature_defines_list + public_feature_defines_list |
16 } | 20 } |
17 | 21 |
18 # inside_blink ----------------------------------------------------------------- | 22 # inside_blink ----------------------------------------------------------------- |
19 | 23 |
20 config("inside_blink") { | 24 config("inside_blink") { |
21 defines = [ | 25 defines = [ |
22 "BLINK_IMPLEMENTATION=1", | 26 "BLINK_IMPLEMENTATION=1", |
23 "INSIDE_BLINK", | 27 "INSIDE_BLINK", |
24 ] | 28 ] |
25 } | 29 } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 75 |
72 # The follow configs apply to all targets except for unit tests, which rely on | 76 # The follow configs apply to all targets except for unit tests, which rely on |
73 # static initializers. | 77 # static initializers. |
74 config("non_test_config") { | 78 config("non_test_config") { |
75 cflags = [] | 79 cflags = [] |
76 | 80 |
77 if (is_clang) { | 81 if (is_clang) { |
78 cflags += [ "-Wglobal-constructors" ] | 82 cflags += [ "-Wglobal-constructors" ] |
79 } | 83 } |
80 } | 84 } |
OLD | NEW |