Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Side by Side Diff: chrome/browser/media/router/BUILD.gn

Issue 2771413003: Move c/b/media/router/mojo/*.mojom to chrome/common/media_router/mojo/*.mojom (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 5
6 import("//mojo/public/tools/bindings/mojom.gni")
7 import("//testing/test.gni") 6 import("//testing/test.gni")
8 7
9 static_library("router") { 8 static_library("router") {
10 deps = [ 9 deps = [
11 ":mojo_bindings_common",
12 "//base", 10 "//base",
13 "//chrome/common:constants", 11 "//chrome/common:constants",
14 "//components/keyed_service/content", 12 "//components/keyed_service/content",
15 "//components/keyed_service/core", 13 "//components/keyed_service/core",
16 "//content/public/browser", 14 "//content/public/browser",
17 "//content/public/common", 15 "//content/public/common",
18 "//net", 16 "//net",
19 "//third_party/icu", 17 "//third_party/icu",
20 "//url", 18 "//url",
21 ] 19 ]
20 public_deps = [
21 "//chrome/common/media_router:router",
22 ]
22 sources = [ 23 sources = [
23 "browser_presentation_connection_proxy.cc", 24 "browser_presentation_connection_proxy.cc",
24 "browser_presentation_connection_proxy.h", 25 "browser_presentation_connection_proxy.h",
25 "create_presentation_connection_request.cc", 26 "create_presentation_connection_request.cc",
26 "create_presentation_connection_request.h", 27 "create_presentation_connection_request.h",
27 "discovery/media_sink_internal.cc",
28 "discovery/media_sink_internal.h",
29 "issue.cc",
30 "issue.h",
31 "issue_manager.cc", 28 "issue_manager.cc",
32 "issue_manager.h", 29 "issue_manager.h",
33 "issues_observer.cc", 30 "issues_observer.cc",
34 "issues_observer.h", 31 "issues_observer.h",
35 "media_route.cc",
36 "media_route.h",
37 "media_router.h", 32 "media_router.h",
38 "media_router_base.cc", 33 "media_router_base.cc",
39 "media_router_base.h", 34 "media_router_base.h",
40 "media_router_dialog_controller.cc", 35 "media_router_dialog_controller.cc",
41 "media_router_dialog_controller.h", 36 "media_router_dialog_controller.h",
42 "media_router_factory.cc", 37 "media_router_factory.cc",
43 "media_router_factory.h", 38 "media_router_factory.h",
44 "media_router_metrics.cc", 39 "media_router_metrics.cc",
45 "media_router_metrics.h", 40 "media_router_metrics.h",
46 "media_routes_observer.cc", 41 "media_routes_observer.cc",
47 "media_routes_observer.h", 42 "media_routes_observer.h",
48 "media_sink.cc",
49 "media_sink.h",
50 "media_sink_service.cc", 43 "media_sink_service.cc",
51 "media_sink_service.h", 44 "media_sink_service.h",
52 "media_sinks_observer.cc", 45 "media_sinks_observer.cc",
53 "media_sinks_observer.h", 46 "media_sinks_observer.h",
54 "media_source.cc",
55 "media_source.h",
56 "media_source_helper.cc",
57 "media_source_helper.h",
58 "media_status.cc",
59 "media_status.h",
60 "mojo/media_route_controller.cc", 47 "mojo/media_route_controller.cc",
61 "mojo/media_route_controller.h", 48 "mojo/media_route_controller.h",
62 "offscreen_presentation_manager.cc", 49 "offscreen_presentation_manager.cc",
63 "offscreen_presentation_manager.h", 50 "offscreen_presentation_manager.h",
64 "offscreen_presentation_manager_factory.cc", 51 "offscreen_presentation_manager_factory.cc",
65 "offscreen_presentation_manager_factory.h", 52 "offscreen_presentation_manager_factory.h",
66 "presentation_media_sinks_observer.cc", 53 "presentation_media_sinks_observer.cc",
67 "presentation_media_sinks_observer.h", 54 "presentation_media_sinks_observer.h",
68 "presentation_request.cc", 55 "presentation_request.cc",
69 "presentation_request.h", 56 "presentation_request.h",
70 "presentation_service_delegate_impl.cc", 57 "presentation_service_delegate_impl.cc",
71 "presentation_service_delegate_impl.h", 58 "presentation_service_delegate_impl.h",
72 "presentation_service_delegate_observers.cc", 59 "presentation_service_delegate_observers.cc",
73 "presentation_service_delegate_observers.h", 60 "presentation_service_delegate_observers.h",
74 "receiver_presentation_service_delegate_impl.cc", 61 "receiver_presentation_service_delegate_impl.cc",
75 "receiver_presentation_service_delegate_impl.h", 62 "receiver_presentation_service_delegate_impl.h",
76 "render_frame_host_id.h", 63 "render_frame_host_id.h",
77 "route_message.cc",
78 "route_message.h",
79 "route_message_observer.cc", 64 "route_message_observer.cc",
80 "route_message_observer.h", 65 "route_message_observer.h",
81 "route_request_result.cc",
82 "route_request_result.h",
83 ] 66 ]
84 67
85 if (!is_android) { 68 if (!is_android) {
86 deps += [ 69 deps += [
87 ":mojo_bindings",
88 "discovery", 70 "discovery",
89 "//extensions/browser", 71 "//extensions/browser",
90 "//mojo/public/cpp/bindings", 72 "//mojo/public/cpp/bindings",
91 ] 73 ]
92 sources += [ 74 sources += [
93 # TODO(crbug.com/646627): Move media_router_ui_service* to 75 # TODO(crbug.com/646627): Move media_router_ui_service* to
94 # chrome/browser/ui/. 76 # chrome/browser/ui/.
95 "media_router_ui_service.cc", 77 "media_router_ui_service.cc",
96 "media_router_ui_service.h", 78 "media_router_ui_service.h",
97 "media_router_ui_service_factory.cc", 79 "media_router_ui_service_factory.cc",
98 "media_router_ui_service_factory.h", 80 "media_router_ui_service_factory.h",
99 "mojo/media_route_provider_util_win.cc", 81 "mojo/media_route_provider_util_win.cc",
100 "mojo/media_route_provider_util_win.h", 82 "mojo/media_route_provider_util_win.h",
101 "mojo/media_router_mojo_impl.cc", 83 "mojo/media_router_mojo_impl.cc",
102 "mojo/media_router_mojo_impl.h", 84 "mojo/media_router_mojo_impl.h",
103 "mojo/media_router_mojo_metrics.cc", 85 "mojo/media_router_mojo_metrics.cc",
104 "mojo/media_router_mojo_metrics.h", 86 "mojo/media_router_mojo_metrics.h",
105 ] 87 ]
106 } 88 }
107 } 89 }
108 90
109 mojom("mojo_bindings_common") {
110 sources = [
111 "mojo/media_controller.mojom",
112 "mojo/media_status.mojom",
113 ]
114
115 public_deps = [
116 "//mojo/common:common_custom_types",
117 ]
118 }
119
120 mojom("mojo_bindings") {
121 sources = [
122 "mojo/media_router.mojom",
123 ]
124
125 public_deps = [
126 ":mojo_bindings_common",
127 "//mojo/common:common_custom_types",
128 "//net/interfaces:interfaces",
129 "//url/mojo:url_mojom_gurl",
130 "//url/mojo:url_mojom_origin",
131 ]
132 }
133
134 mojom("mojo_test_interfaces") {
135 sources = [
136 "mojo/media_router_traits_test_service.mojom",
137 ]
138
139 public_deps = [
140 ":mojo_bindings",
141 ]
142 }
143
144 static_library("test_support") { 91 static_library("test_support") {
145 testonly = true 92 testonly = true
146 deps = [ 93 deps = [
147 ":router", 94 ":router",
148 "//chrome/test:test_support", 95 "//chrome/test:test_support",
149 "//testing/gmock", 96 "//testing/gmock",
150 ] 97 ]
151 sources = [ 98 sources = [
152 "mock_media_router.cc", 99 "mock_media_router.cc",
153 "mock_media_router.h", 100 "mock_media_router.h",
154 "mock_screen_availability_listener.cc", 101 "mock_screen_availability_listener.cc",
155 "mock_screen_availability_listener.h", 102 "mock_screen_availability_listener.h",
156 "test_helper.cc", 103 "test_helper.cc",
157 "test_helper.h", 104 "test_helper.h",
158 ] 105 ]
159 106
160 if (!is_android) { 107 if (!is_android) {
161 deps += [ 108 deps += [
162 ":mojo_bindings", 109 "//chrome/common/media_router/mojo:media_router",
163 ":mojo_test_interfaces", 110 "//chrome/common/media_router/mojo:media_router_test_interfaces",
164 "//extensions/common", 111 "//extensions/common",
165 ] 112 ]
166 sources += [ 113 sources += [
167 "mojo/media_router_mojo_test.cc", 114 "mojo/media_router_mojo_test.cc",
168 "mojo/media_router_mojo_test.h", 115 "mojo/media_router_mojo_test.h",
169 ] 116 ]
170 } 117 }
171 } 118 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698