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