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("//media/media_options.gni") | 5 import("//ppapi/features/features.gni") |
6 | 6 |
7 source_set("utility") { | 7 source_set("utility") { |
8 # Only the public target should depend on this. All other targets (even | 8 # Only the public target should depend on this. All other targets (even |
9 # internal content ones other than test) should depend on the public one. | 9 # internal content ones other than test) should depend on the public one. |
10 visibility = [ | 10 visibility = [ |
11 ":for_content_tests", | 11 ":for_content_tests", |
12 "//content/app:*", | 12 "//content/app:*", |
13 "//content/public/utility:utility_sources", | 13 "//content/public/utility:utility_sources", |
14 ] | 14 ] |
15 | 15 |
(...skipping 11 matching lines...) Expand all Loading... |
27 | 27 |
28 configs += [ "//content:content_implementation" ] | 28 configs += [ "//content:content_implementation" ] |
29 | 29 |
30 deps = [ | 30 deps = [ |
31 "//base", | 31 "//base", |
32 "//content:export", | 32 "//content:export", |
33 "//content/child", | 33 "//content/child", |
34 "//content/network:network_sources", | 34 "//content/network:network_sources", |
35 "//content/public/child:child_sources", | 35 "//content/public/child:child_sources", |
36 "//content/public/common:common_sources", | 36 "//content/public/common:common_sources", |
37 "//media/mojo:features", | |
38 "//mojo/common", | 37 "//mojo/common", |
39 "//mojo/public/cpp/bindings", | 38 "//mojo/public/cpp/bindings", |
40 "//ppapi/features", | 39 "//ppapi/features", |
41 "//sandbox", | 40 "//sandbox", |
42 "//services/data_decoder:lib", | 41 "//services/data_decoder:lib", |
43 "//services/data_decoder/public/cpp", | 42 "//services/data_decoder/public/cpp", |
44 "//services/service_manager", | 43 "//services/service_manager", |
45 "//services/service_manager/public/cpp", | 44 "//services/service_manager/public/cpp", |
46 "//services/service_manager/public/interfaces", | 45 "//services/service_manager/public/interfaces", |
47 "//services/shape_detection:lib", | 46 "//services/shape_detection:lib", |
48 "//services/shape_detection/public/interfaces", | 47 "//services/shape_detection/public/interfaces", |
49 "//services/video_capture:lib", | 48 "//services/video_capture:lib", |
50 "//services/video_capture/public/interfaces:constants", | 49 "//services/video_capture/public/interfaces:constants", |
51 "//third_party/WebKit/public:blink_headers", | 50 "//third_party/WebKit/public:blink_headers", |
52 "//third_party/WebKit/public:mojo_bindings", | 51 "//third_party/WebKit/public:mojo_bindings", |
53 "//url", | 52 "//url", |
54 ] | 53 ] |
55 | 54 |
56 if (mojo_media_host == "utility") { | 55 # When pepper CDMs are supported, we also support running the CDM in the |
57 deps += [ "//media/mojo/services" ] | 56 # utility process using mojo MediaService. |
| 57 # TODO(xhwang): Replace "enable_pepper_cdms" with a better buildflag. See |
| 58 # http://crbug.com/725394 |
| 59 if (enable_pepper_cdms) { |
| 60 deps += [ |
| 61 "//media", |
| 62 "//media/mojo:features", |
| 63 "//media/mojo/services", |
| 64 ] |
58 } | 65 } |
59 } | 66 } |
60 | 67 |
61 # See comment at the top of //content/BUILD.gn for how this works. | 68 # See comment at the top of //content/BUILD.gn for how this works. |
62 group("for_content_tests") { | 69 group("for_content_tests") { |
63 visibility = [ "//content/test/*" ] | 70 visibility = [ "//content/test/*" ] |
64 if (!is_component_build) { | 71 if (!is_component_build) { |
65 public_deps = [ | 72 public_deps = [ |
66 ":utility", | 73 ":utility", |
67 ] | 74 ] |
68 } | 75 } |
69 } | 76 } |
OLD | NEW |