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

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

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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/media/router/media_router.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import("//testing/test.gni") 5 import("//testing/test.gni")
6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
7 7
8 gypi_values = exec_script("//build/gypi_to_gn.py",
9 [ rebase_path("media_router.gypi") ],
10 "scope",
11 [ "media_router.gypi" ])
12
8 source_set("router") { 13 source_set("router") {
9 deps = [ 14 deps = [
10 ":router_core", 15 ":core",
11 ":keyed_service_factories", 16 ":keyed_service_factories",
12 ] 17 ]
13 } 18 }
14 19
15 source_set("router_core") { 20 # TODO(mfoltz): Fix problem that requires explicitly listing //skia
21 source_set("core") {
22 defines = [ "ENABLE_MEDIA_ROUTER=1" ]
brettw 2015/05/11 21:53:37 You add this define here, twice (incorrectly) in /
mark a. foltz 2015/05/11 23:08:26 Okay, done. This current situation was done in re
16 deps = [ 23 deps = [
17 ":mojo_bindings", 24 ":mojo_bindings",
18 "//base", 25 "//base",
26 "//extensions/browser",
19 "//components/keyed_service/core", 27 "//components/keyed_service/core",
20 "//third_party/mojo/src/mojo/public/cpp/bindings", 28 "//third_party/mojo/src/mojo/public/cpp/bindings",
29 "//skia",
21 "//url", 30 "//url",
22 ] 31 ]
23 sources = [ 32 sources = rebase_path(gypi_values.media_router_core_sources,
24 "create_session_request.cc", 33 ".",
25 "create_session_request.h", 34 "//chrome/browser/media/router")
26 "issue.cc",
27 "issue.h",
28 "issue_manager.cc",
29 "issue_manager.h",
30 "issues_observer.h",
31 "media_route.cc",
32 "media_route.h",
33 "media_route_id.h",
34 "media_router.h",
35 "media_router_impl.cc",
36 "media_router_impl.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 ]
54 } 35 }
55 36
56 source_set("keyed_service_factories") { 37 source_set("keyed_service_factories") {
57 deps = [ 38 deps = [
58 ":router_core", 39 ":core",
59 "//components/keyed_service/content", 40 "//components/keyed_service/content",
60 ] 41 "//extensions/browser",
61 sources = [
62 "media_router_impl_factory.cc",
63 "media_router_impl_factory.h",
64 ]
65 }
66
67 source_set("unit_tests") {
68 testonly = true
69 deps = [
70 ":router_core",
71 ":unit_tests_support",
72 "//base/test:test_support",
73 "//chrome/test:test_support",
74 "//testing/gmock",
75 "//testing/gtest",
76 "//third_party/mojo/src/mojo/public/cpp/bindings", 42 "//third_party/mojo/src/mojo/public/cpp/bindings",
77 ] 43 ]
78 sources = [ 44 sources =
79 "media_route_unittest.cc", 45 rebase_path(gypi_values.media_router_keyed_service_factories_sources,
80 "media_router_type_converters_unittest.cc", 46 ".",
81 "media_sink_unittest.cc", 47 "//chrome/browser/media/router")
82 "media_source_unittest.cc",
83 "presentation_media_sinks_observer_unittest.cc",
84 "route_id_manager_unittest.cc",
85 ]
86 }
87
88 source_set("unit_tests_support") {
89 testonly = true
90 deps = [
91 ":router_core",
92 "//testing/gmock",
93 ]
94 sources = [
95 "mock_media_router.cc",
96 "mock_media_router.h",
97 "mock_screen_availability_listener.cc",
98 "mock_screen_availability_listener.h",
99 ]
100 } 48 }
101 49
102 mojom("mojo_bindings") { 50 mojom("mojo_bindings") {
103 sources = [ 51 sources = [
104 "media_router.mojom", 52 "media_router.mojom",
105 ] 53 ]
106 } 54 }
107 55
108 # Optional standalone test binary, for faster isolated builds. 56 # TODO(mfoltz): Fix problem that requires explicitly listing //skia
109 test("unit_tests_main") { 57 source_set("unit_tests") {
58 testonly = true
110 deps = [ 59 deps = [
111 ":unit_tests", 60 ":core",
112 "//testing/gmock:gmock_main", 61 ":mojo_bindings",
62 ":test_support",
63 "//base/test:test_support",
64 "//chrome/test:test_support",
65 "//skia",
66 "//testing/gmock",
67 "//testing/gtest",
68 "//third_party/mojo/src/mojo/public/cpp/bindings",
113 ] 69 ]
114 sources = [ 70 sources =
115 ":unittest_files", 71 rebase_path(gypi_values.media_router_unit_tests_sources, ".", "//chrome")
72 }
73
74 # TODO(mfoltz): Fix browser tests, then link into //chrome/test:browser_tests
75 source_set("browser_tests") {
76 testonly = true
77 deps = [
78 ":core",
79 ":test_support",
80 "//base",
81 "//base/test:test_support",
82 "//chrome/browser/ui",
83 "//chrome/common:constants",
84 "//content/test:test_support",
85 "//content/public/browser",
86 "//content/public/common",
87 "//net:test_support",
88 "//skia",
89 "//testing/gmock",
90 "//testing/gtest",
116 ] 91 ]
92 sources = rebase_path(gypi_values.media_router_ui_browser_tests_sources,
93 ".",
94 "//chrome/browser/media/router")
117 } 95 }
96
97 source_set("test_support") {
98 testonly = true
99 deps = [
100 ":core",
101 ":mojo_bindings",
102 "//chrome/test:test_support",
103 "//testing/gmock",
104 ]
105 sources = rebase_path(gypi_values.media_router_test_support_sources,
106 ".",
107 "//chrome/browser/media/router")
108 }
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/media/router/media_router.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698