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