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

Side by Side Diff: media/mojo/services/BUILD.gn

Issue 1649933002: [Chromecast] Hook up mojo media pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed gn check Created 4 years, 10 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 | « media/mojo/DEPS ('k') | media/mojo/services/main.cc » ('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 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("//media/media_options.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//mojo/public/mojo_application.gni") 7 import("//mojo/public/mojo_application.gni")
8 8
9 # Target naming conventions: 9 # Target naming conventions:
10 # - converters: C++/Mojo type converters. 10 # - converters: C++/Mojo type converters.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 "//base", 73 "//base",
74 "//media", 74 "//media",
75 "//media/mojo/interfaces", 75 "//media/mojo/interfaces",
76 "//mojo/common", 76 "//mojo/common",
77 "//mojo/environment:chromium", 77 "//mojo/environment:chromium",
78 "//mojo/public/c/system:for_component", 78 "//mojo/public/c/system:for_component",
79 "//mojo/shell/public/interfaces", 79 "//mojo/shell/public/interfaces",
80 ] 80 ]
81 } 81 }
82 82
83 source_set("media_client") {
84 sources = [
85 "mojo_media_client.cc",
86 "mojo_media_client.h",
87 ]
88 if (is_android) {
89 sources += [ "android_mojo_media_client.cc" ]
90 } else {
91 sources += [ "default_mojo_media_client.cc" ]
92 }
93
94 public_configs = [ ":enable_mojo_media_config" ]
95
96 deps = [
97 "//base",
98 "//media",
99 "//media:shared_memory_support",
100 ]
101 }
102
103 source_set("cdm_service") { 83 source_set("cdm_service") {
104 deps = [ 84 deps = [
105 ":converters", 85 ":converters",
106 "//base", 86 "//base",
107 "//media", 87 "//media",
108 "//media/mojo/interfaces", 88 "//media/mojo/interfaces",
109 "//mojo/common", 89 "//mojo/common",
110 "//mojo/environment:chromium", 90 "//mojo/environment:chromium",
111 "//mojo/public/c/system:for_component", 91 "//mojo/public/c/system:for_component",
112 "//mojo/shell/public/interfaces", 92 "//mojo/shell/public/interfaces",
(...skipping 11 matching lines...) Expand all
124 "mojo_type_trait.h", 104 "mojo_type_trait.h",
125 ] 105 ]
126 106
127 if (is_android) { 107 if (is_android) {
128 sources += [ 108 sources += [
129 "mojo_provision_fetcher.cc", 109 "mojo_provision_fetcher.cc",
130 "mojo_provision_fetcher.h", 110 "mojo_provision_fetcher.h",
131 ] 111 ]
132 } 112 }
133 113
114 # TODO(xhwang): Needed because targets can depend on cdm_service directly,
115 # which is a bit hacky since we need to access CdmService directly
116 # from C++ code (AVDA). In the future we'll make those decoders part of
117 # MojoMediaApplication, then we won't need this.
118 public_configs = [ ":enable_mojo_media_config" ]
119
134 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 120 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
135 } 121 }
136 122
137 source_set("renderer_service") { 123 source_set("renderer_service") {
138 sources = [ 124 sources = [
139 "demuxer_stream_provider_shim.cc", 125 "demuxer_stream_provider_shim.cc",
140 "demuxer_stream_provider_shim.h", 126 "demuxer_stream_provider_shim.h",
141 "mojo_demuxer_stream_adapter.cc", 127 "mojo_demuxer_stream_adapter.cc",
142 "mojo_demuxer_stream_adapter.h", 128 "mojo_demuxer_stream_adapter.h",
143 "mojo_renderer_service.cc", 129 "mojo_renderer_service.cc",
144 "mojo_renderer_service.h", 130 "mojo_renderer_service.h",
145 ] 131 ]
146 132
147 deps = [ 133 deps = [
148 ":converters", 134 ":converters",
149 "//base", 135 "//base",
150 "//media", 136 "//media",
151 "//media:shared_memory_support", 137 "//media:shared_memory_support",
152 "//media/mojo/interfaces", 138 "//media/mojo/interfaces",
153 "//mojo/common", 139 "//mojo/common",
154 ] 140 ]
155 } 141 }
156 142
157 source_set("application") { 143 source_set("application") {
158 sources = [ 144 sources = [
159 "mojo_media_application.cc", 145 "mojo_media_application.cc",
160 "mojo_media_application.h", 146 "mojo_media_application.h",
147 "mojo_media_client.cc",
148 "mojo_media_client.h",
161 "service_factory_impl.cc", 149 "service_factory_impl.cc",
162 "service_factory_impl.h", 150 "service_factory_impl.h",
163 ] 151 ]
164 152
165 public_configs = [ ":enable_mojo_media_config" ] 153 public_configs = [ ":enable_mojo_media_config" ]
166 154
167 deps = [ 155 deps = [
168 ":cdm_service", 156 ":cdm_service",
169 ":media_client",
170 ":renderer_service", 157 ":renderer_service",
171 "//base",
172 "//mojo/public/c/system:for_component",
173 "//mojo/shell/public/cpp", 158 "//mojo/shell/public/cpp",
174 ] 159 ]
175 } 160 }
176 161
162 source_set("default_application") {
163 if (is_android) {
164 sources = [
165 "android_mojo_media_client.cc",
166 ]
167 } else {
168 sources = [
169 "default_mojo_media_client.cc",
170 ]
171 }
172
173 public_configs = [ ":enable_mojo_media_config" ]
174
175 deps = [
176 ":application",
177 ]
178 }
179
177 test("media_mojo_unittests") { 180 test("media_mojo_unittests") {
178 sources = [ 181 sources = [
179 "media_type_converters_unittest.cc", 182 "media_type_converters_unittest.cc",
180 ] 183 ]
181 184
182 deps = [ 185 deps = [
183 ":converters", 186 ":converters",
184 "//base", 187 "//base",
185 "//base/test:test_support", 188 "//base/test:test_support",
186 "//media", 189 "//media",
187 "//media/base:test_support", 190 "//media/base:test_support",
188 "//media/mojo/interfaces", 191 "//media/mojo/interfaces",
189 "//mojo/environment:chromium", 192 "//mojo/environment:chromium",
190 "//testing/gmock", 193 "//testing/gmock",
191 "//testing/gtest", 194 "//testing/gtest",
192 "//third_party/mojo/src/mojo/edk/system", 195 "//third_party/mojo/src/mojo/edk/system",
193 "//third_party/mojo/src/mojo/edk/test:run_all_unittests", 196 "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
194 ] 197 ]
195 } 198 }
196 199
197 mojo_native_application("media") { 200 mojo_native_application("media") {
198 sources = [ 201 sources = [
199 "main.cc", 202 "main.cc",
200 ] 203 ]
201 204
202 deps = [ 205 deps = [
203 ":application", 206 ":default_application",
207 "//mojo/logging",
204 "//mojo/public/c/system:for_shared_library", 208 "//mojo/public/c/system:for_shared_library",
205 ] 209 ]
206 } 210 }
207 211
208 # Note, the following tests must be loaded via mojo_runner as an app, e.g. 212 # Note, the following tests must be loaded via mojo_runner as an app, e.g.
209 # 213 #
210 # mojo/tools/apptest_runner.py 214 # mojo/tools/apptest_runner.py
211 # --apptest-filter mojo:media_apptests out/Debug 215 # --apptest-filter mojo:media_apptests out/Debug
212 # 216 #
213 # mojo/tools/apptest_runner.py 217 # mojo/tools/apptest_runner.py
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 ":media_mojo_unittests", 265 ":media_mojo_unittests",
262 ] 266 ]
263 267
264 if (!is_component_build) { 268 if (!is_component_build) {
265 deps += [ 269 deps += [
266 ":media_apptests", 270 ":media_apptests",
267 ":media_pipeline_integration_apptests", 271 ":media_pipeline_integration_apptests",
268 ] 272 ]
269 } 273 }
270 } 274 }
OLDNEW
« no previous file with comments | « media/mojo/DEPS ('k') | media/mojo/services/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698