OLD | NEW |
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 'includes': [ |
| 7 'media_router.gypi', |
| 8 ], |
6 'targets': [ | 9 'targets': [ |
7 { | 10 { |
| 11 # GN version: //chrome/browser/media/router:router |
8 'target_name': 'media_router', | 12 'target_name': 'media_router', |
9 'type': 'static_library', | 13 'type': 'static_library', |
10 'include_dirs': [ | 14 'include_dirs': [ |
11 '<(DEPTH)', | 15 '<(DEPTH)', |
12 '<(DEPTH)/third_party/mojo/src', | 16 '<(DEPTH)/third_party/mojo/src', |
13 ], | 17 ], |
14 'dependencies': [ | 18 'dependencies': [ |
15 # media_router_type_converters.h needs the generated file. | 19 # media_router_type_converters.h needs the generated file. |
16 ':media_router_mojo_gen', | 20 'media_router_mojo_gen', |
17 ':media_router_mojo', | 21 'media_router_mojo', |
18 '<(DEPTH)/base/base.gyp:base', | 22 '<(DEPTH)/base/base.gyp:base', |
| 23 '<(DEPTH)/components/components.gyp:keyed_service_core', |
| 24 '<(DEPTH)/extensions/extensions.gyp:extensions_browser', |
| 25 '<(DEPTH)/skia/skia.gyp:skia', |
19 '<(DEPTH)/url/url.gyp:url_lib', | 26 '<(DEPTH)/url/url.gyp:url_lib', |
20 ], | 27 ], |
21 'sources': [ | 28 'sources': [ |
22 'create_session_request.cc', | 29 '<@(media_router_sources)', |
23 'create_session_request.h', | |
24 'issue.cc', | |
25 'issue.h', | |
26 'issue_manager.cc', | |
27 'issue_manager.h', | |
28 'issue_observer.h', | |
29 'media_route.cc', | |
30 'media_route.h', | |
31 'media_route_id.h', | |
32 'media_router.h', | |
33 'media_router_type_converters.cc', | |
34 'media_router_type_converters.h', | |
35 'media_routes_observer.cc', | |
36 'media_routes_observer.h', | |
37 'media_sink.cc', | |
38 'media_sink.h', | |
39 'media_sinks_observer.cc', | |
40 'media_sinks_observer.h', | |
41 'media_source.cc', | |
42 'media_source.h', | |
43 'media_source_helper.cc', | |
44 'media_source_helper.h', | |
45 'presentation_media_sinks_observer.cc', | |
46 'presentation_media_sinks_observer.h', | |
47 'route_id_manager.cc', | |
48 'route_id_manager.h', | |
49 ], | 30 ], |
50 }, | 31 }, |
51 { | 32 { |
52 # Mojo bindings for the Media Router internal API. | 33 # Mojo compiler for the Media Router internal API. |
53 'target_name': 'media_router_mojo_gen', | 34 'target_name': 'media_router_mojo_gen', |
54 'type': 'none', | 35 'type': 'none', |
55 'sources': [ | 36 'sources': [ |
56 'media_router.mojom', | 37 'media_router.mojom', |
57 ], | 38 ], |
58 'includes': [ | 39 'includes': [ |
59 '../../../../third_party/mojo/mojom_bindings_generator.gypi', | 40 '../../../../third_party/mojo/mojom_bindings_generator.gypi', |
60 ], | 41 ], |
61 }, | 42 }, |
62 { | 43 { |
63 'target_name': 'media_router_mojo', | 44 'target_name': 'media_router_mojo', |
64 'type': 'static_library', | 45 'type': 'static_library', |
65 'include_dirs': [ | 46 'include_dirs': [ |
66 '<(DEPTH)/third_party/mojo/src', | 47 '<(DEPTH)/third_party/mojo/src', |
67 ], | 48 ], |
68 'dependencies': [ | 49 'dependencies': [ |
69 'media_router_mojo_gen', | 50 'media_router_mojo_gen', |
70 '<(DEPTH)/mojo/mojo_base.gyp:mojo_common_lib', | |
71 '<(DEPTH)/mojo/mojo_base.gyp:mojo_environment_chromium', | |
72 '<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_cpp_bindings', | |
73 ], | 51 ], |
74 'sources': [ | 52 'sources': [ |
75 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/media/router/media_router.moj
om.cc', | 53 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/media/router/media_router.moj
om.cc', |
76 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/media/router/media_router.moj
om.h', | 54 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/media/router/media_router.moj
om.h', |
77 ], | 55 ], |
78 }, | 56 }, |
79 { | 57 { |
| 58 # GN version: //chrome/browser/media/router:test_support |
80 'target_name': 'media_router_test_support', | 59 'target_name': 'media_router_test_support', |
81 'type': 'static_library', | 60 'type': 'static_library', |
82 'include_dirs': [ | 61 'include_dirs': [ |
83 '<(DEPTH)', | 62 '<(DEPTH)', |
84 ], | 63 ], |
85 'dependencies': [ | 64 'dependencies': [ |
86 ':media_router', | 65 'media_router', |
| 66 'media_router_mojo', |
87 '<(DEPTH)/base/base.gyp:base', | 67 '<(DEPTH)/base/base.gyp:base', |
88 '<(DEPTH)/testing/gmock.gyp:gmock', | 68 '<(DEPTH)/testing/gmock.gyp:gmock', |
89 ], | 69 ], |
90 'sources': [ | 70 'sources': [ |
91 'mock_media_router.cc', | 71 '<@(media_router_test_support_sources)', |
92 'mock_media_router.h', | |
93 'mock_screen_availability_listener.cc', | |
94 'mock_screen_availability_listener.h', | |
95 ], | 72 ], |
96 }, | 73 }, |
97 | |
98 ], | 74 ], |
99 } | 75 } |
OLD | NEW |