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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//content/common/common.gni") | 6 import("//content/common/common.gni") |
7 | 7 |
8 source_set("common") { | 8 # See //content/BUILD.gn for how this works. |
| 9 group("common") { |
| 10 if (is_component_build) { |
| 11 deps = [ "//content" ] |
| 12 } else { |
| 13 deps = [ ":common_sources" ] |
| 14 } |
| 15 forward_dependent_configs_from = deps |
| 16 } |
| 17 |
| 18 source_set("common_sources") { |
| 19 visibility = [ "//content/*" ] |
| 20 |
9 sources = rebase_path(content_common_gypi_values.public_common_sources, | 21 sources = rebase_path(content_common_gypi_values.public_common_sources, |
10 ".", "//content") | 22 ".", "//content") |
11 | 23 |
12 configs += [ | 24 configs += [ |
13 "//content:content_implementation", | 25 "//content:content_implementation", |
14 ] | 26 ] |
15 | 27 |
16 deps = [ | 28 deps = [ |
17 "//content/common", | 29 "//content/common", |
18 "//net", | 30 "//net", |
19 "//skia", | 31 "//skia", |
20 "//third_party/WebKit/public:blink_headers", | 32 "//third_party/WebKit/public:blink_headers", |
21 "//third_party/icu", | 33 "//third_party/icu", |
22 "//ui/base", | 34 "//ui/base", |
23 "//ui/gfx", | 35 "//ui/gfx", |
24 ] | 36 ] |
25 | 37 |
26 forward_dependent_configs_from = [ "//content/common" ] | 38 forward_dependent_configs_from = [ "//content/common" ] |
27 | 39 |
28 if (!enable_plugins) { | 40 if (!enable_plugins) { |
29 sources -= [ | 41 sources -= [ |
30 "pepper_plugin_info.cc", | 42 "pepper_plugin_info.cc", |
31 "pepper_plugin_info.h", | 43 "pepper_plugin_info.h", |
32 ] | 44 ] |
33 } | 45 } |
34 } | 46 } |
OLD | NEW |