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