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

Side by Side Diff: chrome/browser/media/router/media_router.gyp

Issue 1136623003: Media Router GYP/GN cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove duplicate define Created 5 years, 7 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 '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',
14 'dependencies': [
15 ':media_router_core',
16 ':media_router_keyed_service_factories',
17 ],
18 },
19 {
20 # GN version: //chrome/browser/media/router:core
21 'target_name': 'media_router_core',
22 'type': 'static_library',
10 'include_dirs': [ 23 'include_dirs': [
11 '<(DEPTH)', 24 '<(DEPTH)',
12 '<(DEPTH)/third_party/mojo/src', 25 '<(DEPTH)/third_party/mojo/src',
13 ], 26 ],
14 'dependencies': [ 27 'dependencies': [
15 # media_router_type_converters.h needs the generated file. 28 # media_router_type_converters.h needs the generated file.
16 ':media_router_mojo_gen', 29 ':media_router_mojo_gen',
17 ':media_router_mojo', 30 ':media_router_mojo',
18 '<(DEPTH)/base/base.gyp:base', 31 '<(DEPTH)/base/base.gyp:base',
32 '<(DEPTH)/components/components.gyp:keyed_service_core',
33 '<(DEPTH)/extensions/extensions.gyp:extensions_browser',
34 '<(DEPTH)/skia/skia.gyp:skia',
19 '<(DEPTH)/url/url.gyp:url_lib', 35 '<(DEPTH)/url/url.gyp:url_lib',
20 ], 36 ],
21 'sources': [ 37 'sources': [
22 'create_session_request.cc', 38 '<@(media_router_core_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_impl.cc',
34 'media_router_impl.h',
35 'media_router_impl_factory.cc',
36 'media_router_impl_factory.h',
37 'media_router_type_converters.cc',
38 'media_router_type_converters.h',
39 'media_routes_observer.cc',
40 'media_routes_observer.h',
41 'media_sink.cc',
42 'media_sink.h',
43 'media_sinks_observer.cc',
44 'media_sinks_observer.h',
45 'media_source.cc',
46 'media_source.h',
47 'media_source_helper.cc',
48 'media_source_helper.h',
49 'presentation_media_sinks_observer.cc',
50 'presentation_media_sinks_observer.h',
51 'route_id_manager.cc',
52 'route_id_manager.h',
53 ], 39 ],
54 }, 40 },
55 { 41 {
56 # Mojo bindings for the Media Router internal API. 42 # GN version: //chrome/browser/media/router:keyed_service_factories
43 'target_name': 'media_router_keyed_service_factories',
44 'type': 'static_library',
45 'include_dirs': [
46 '<(DEPTH)',
47 '<(DEPTH)/third_party/mojo/src',
48 ],
49 'dependencies': [
50 ':media_router_core',
51 '<(DEPTH)/base/base.gyp:base',
52 '<(DEPTH)/components/components.gyp:keyed_service_content',
53 '<(DEPTH)/extensions/extensions.gyp:extensions_browser',
54 ],
55 'sources': [
56 '<@(media_router_keyed_service_factories_sources)',
57 ],
58 },
59 {
60 # Mojo compiler for the Media Router internal API.
57 'target_name': 'media_router_mojo_gen', 61 'target_name': 'media_router_mojo_gen',
58 'type': 'none', 62 'type': 'none',
59 'sources': [ 63 'sources': [
60 'media_router.mojom', 64 'media_router.mojom',
61 ], 65 ],
62 'includes': [ 66 'includes': [
63 '../../../../third_party/mojo/mojom_bindings_generator.gypi', 67 '../../../../third_party/mojo/mojom_bindings_generator.gypi',
64 ], 68 ],
65 }, 69 },
66 { 70 {
67 'target_name': 'media_router_mojo', 71 'target_name': 'media_router_mojo',
68 'type': 'static_library', 72 'type': 'static_library',
69 'include_dirs': [ 73 'include_dirs': [
70 '<(DEPTH)/third_party/mojo/src', 74 '<(DEPTH)/third_party/mojo/src',
71 ], 75 ],
72 'dependencies': [ 76 'dependencies': [
73 'media_router_mojo_gen', 77 'media_router_mojo_gen',
74 '<(DEPTH)/mojo/mojo_base.gyp:mojo_common_lib',
75 '<(DEPTH)/mojo/mojo_base.gyp:mojo_environment_chromium',
76 '<(DEPTH)/third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
77 ], 78 ],
78 'sources': [ 79 'sources': [
79 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/media/router/media_router.moj om.cc', 80 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/media/router/media_router.moj om.cc',
80 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/media/router/media_router.moj om.h', 81 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/media/router/media_router.moj om.h',
81 ], 82 ],
82 }, 83 },
83 { 84 {
85 # GN version: //chrome/browser/media/router:test_support
84 'target_name': 'media_router_test_support', 86 'target_name': 'media_router_test_support',
85 'type': 'static_library', 87 'type': 'static_library',
86 'include_dirs': [ 88 'include_dirs': [
87 '<(DEPTH)', 89 '<(DEPTH)',
88 ], 90 ],
89 'dependencies': [ 91 'dependencies': [
90 ':media_router', 92 ':media_router',
93 '<(DEPTH)/third_party/mojo/src',
94 ],
95 'dependencies': [
96 ':media_router_mojo',
97 ':media_router_core',
91 '<(DEPTH)/base/base.gyp:base', 98 '<(DEPTH)/base/base.gyp:base',
92 '<(DEPTH)/testing/gmock.gyp:gmock', 99 '<(DEPTH)/testing/gmock.gyp:gmock',
93 ], 100 ],
94 'sources': [ 101 'sources': [
95 'mock_media_router.cc', 102 '<@(media_router_test_support_sources)',
96 'mock_media_router.h',
97 'mock_screen_availability_listener.cc',
98 'mock_screen_availability_listener.h',
99 ], 103 ],
100 }, 104 },
101
102 ], 105 ],
103 } 106 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698