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