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", | 23 "//components/scheduler", |
24 "//content:export", | 24 "//content:export", |
25 "//content/child", | 25 "//content/child", |
26 "//content/public/child:child_sources", | 26 "//content/public/child:child_sources", |
27 "//content/public/common:common_sources", | 27 "//content/public/common:common_sources", |
28 "//courgette:courgette_lib", | |
29 "//mojo/common", | 28 "//mojo/common", |
30 "//mojo/public/cpp/bindings", | 29 "//mojo/public/cpp/bindings", |
31 "//sandbox", | 30 "//sandbox", |
32 "//services/shell", | 31 "//services/shell", |
33 "//services/shell/public/cpp", | 32 "//services/shell/public/cpp", |
34 "//services/shell/public/interfaces", | 33 "//services/shell/public/interfaces", |
35 "//third_party/WebKit/public:blink_headers", | 34 "//third_party/WebKit/public:blink_headers", |
36 "//third_party/WebKit/public:mojo_bindings", | 35 "//third_party/WebKit/public:mojo_bindings", |
37 "//url", | 36 "//url", |
38 ] | 37 ] |
39 | 38 |
40 if (mojo_media_host == "utility") { | 39 if (mojo_media_host == "utility") { |
41 deps += [ "//media/mojo/services" ] | 40 deps += [ "//media/mojo/services" ] |
42 } | 41 } |
43 } | 42 } |
44 | 43 |
45 # See comment at the top of //content/BUILD.gn for how this works. | 44 # See comment at the top of //content/BUILD.gn for how this works. |
46 group("for_content_tests") { | 45 group("for_content_tests") { |
47 visibility = [ "//content/test/*" ] | 46 visibility = [ "//content/test/*" ] |
48 if (!is_component_build) { | 47 if (!is_component_build) { |
49 public_deps = [ | 48 public_deps = [ |
50 ":utility", | 49 ":utility", |
51 ] | 50 ] |
52 } | 51 } |
53 } | 52 } |
OLD | NEW |