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("//content/utility/utility.gni") | 5 import("//content/utility/utility.gni") |
6 import("//media/media_options.gni") | 6 import("//media/media_options.gni") |
7 | 7 |
8 source_set("utility") { | 8 source_set("utility") { |
9 # Only the public target should depend on this. All other targets (even | 9 # Only the public target should depend on this. All other targets (even |
10 # internal content ones other than test) should depend on the public one. | 10 # internal content ones other than test) should depend on the public one. |
11 visibility = [ | 11 visibility = [ |
12 ":for_content_tests", | 12 ":for_content_tests", |
13 "//content/public/utility:utility_sources", | 13 "//content/public/utility:utility_sources", |
14 ] | 14 ] |
15 | 15 |
16 sources = | 16 sources = |
17 rebase_path(content_utility_gypi_values.utility_sources, ".", "//content") | 17 rebase_path(content_utility_gypi_values.utility_sources, ".", "//content") |
18 | 18 |
19 configs += [ "//content:content_implementation" ] | 19 configs += [ "//content:content_implementation" ] |
20 | 20 |
21 deps = [ | 21 deps = [ |
22 "//base", | 22 "//base", |
23 "//components/scheduler", | |
24 "//content:export", | 23 "//content:export", |
25 "//content/child", | 24 "//content/child", |
26 "//content/public/child:child_sources", | 25 "//content/public/child:child_sources", |
27 "//content/public/common:common_sources", | 26 "//content/public/common:common_sources", |
28 "//mojo/common", | 27 "//mojo/common", |
29 "//mojo/public/cpp/bindings", | 28 "//mojo/public/cpp/bindings", |
30 "//sandbox", | 29 "//sandbox", |
31 "//services/shell", | 30 "//services/shell", |
32 "//services/shell/public/cpp", | 31 "//services/shell/public/cpp", |
33 "//services/shell/public/interfaces", | 32 "//services/shell/public/interfaces", |
34 "//third_party/WebKit/public:blink_headers", | 33 "//third_party/WebKit/public:blink_headers", |
35 "//third_party/WebKit/public:mojo_bindings", | 34 "//third_party/WebKit/public:mojo_bindings", |
36 "//url", | 35 "//url", |
37 ] | 36 ] |
38 | 37 |
39 if (mojo_media_host == "utility") { | 38 if (mojo_media_host == "utility") { |
40 deps += [ "//media/mojo/services" ] | 39 deps += [ "//media/mojo/services" ] |
41 } | 40 } |
42 } | 41 } |
43 | 42 |
44 # See comment at the top of //content/BUILD.gn for how this works. | 43 # See comment at the top of //content/BUILD.gn for how this works. |
45 group("for_content_tests") { | 44 group("for_content_tests") { |
46 visibility = [ "//content/test/*" ] | 45 visibility = [ "//content/test/*" ] |
47 if (!is_component_build) { | 46 if (!is_component_build) { |
48 public_deps = [ | 47 public_deps = [ |
49 ":utility", | 48 ":utility", |
50 ] | 49 ] |
51 } | 50 } |
52 } | 51 } |
OLD | NEW |