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

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

Issue 1690213002: Reland "media: Refactor MojoMediaClient" with fix. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix 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 | « content/shell/BUILD.gn ('k') | media/mojo/services/android_mojo_media_client.h » ('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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 source_set("application") { 143 source_set("application") {
144 sources = [ 144 sources = [
145 "mojo_media_application.cc", 145 "mojo_media_application.cc",
146 "mojo_media_application.h", 146 "mojo_media_application.h",
147 "mojo_media_client.cc", 147 "mojo_media_client.cc",
148 "mojo_media_client.h", 148 "mojo_media_client.h",
149 "service_factory_impl.cc", 149 "service_factory_impl.cc",
150 "service_factory_impl.h", 150 "service_factory_impl.h",
151 ] 151 ]
152 152
153 if (is_android) {
154 sources += [
155 "android_mojo_media_client.cc",
156 "android_mojo_media_client.h",
157 ]
158 } else {
159 sources += [
160 "default_mojo_media_client.cc",
161 "default_mojo_media_client.h",
162 ]
163 }
164
153 public_configs = [ ":enable_mojo_media_config" ] 165 public_configs = [ ":enable_mojo_media_config" ]
154 166
155 deps = [ 167 deps = [
156 ":cdm_service", 168 ":cdm_service",
157 ":renderer_service", 169 ":renderer_service",
158 "//mojo/shell/public/cpp", 170 "//mojo/shell/public/cpp",
159 ] 171 ]
160 } 172 }
161 173
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
180 test("media_mojo_unittests") { 174 test("media_mojo_unittests") {
181 sources = [ 175 sources = [
182 "media_type_converters_unittest.cc", 176 "media_type_converters_unittest.cc",
183 ] 177 ]
184 178
185 deps = [ 179 deps = [
186 ":converters", 180 ":converters",
187 "//base", 181 "//base",
188 "//base/test:test_support", 182 "//base/test:test_support",
189 "//media", 183 "//media",
190 "//media/base:test_support", 184 "//media/base:test_support",
191 "//media/mojo/interfaces", 185 "//media/mojo/interfaces",
192 "//mojo/edk/system", 186 "//mojo/edk/system",
193 "//mojo/edk/test:run_all_unittests", 187 "//mojo/edk/test:run_all_unittests",
194 "//mojo/environment:chromium", 188 "//mojo/environment:chromium",
195 "//testing/gmock", 189 "//testing/gmock",
196 "//testing/gtest", 190 "//testing/gtest",
197 ] 191 ]
198 } 192 }
199 193
200 mojo_native_application("media") { 194 mojo_native_application("media") {
201 sources = [ 195 sources = [
202 "main.cc", 196 "main.cc",
203 ] 197 ]
204 198
205 deps = [ 199 deps = [
206 ":default_application", 200 ":application",
207 "//mojo/logging", 201 "//mojo/logging",
208 "//mojo/public/c/system:for_shared_library", 202 "//mojo/public/c/system:for_shared_library",
209 ] 203 ]
210 } 204 }
211 205
212 # Note, the following tests must be loaded via mojo_runner as an app, e.g. 206 # Note, the following tests must be loaded via mojo_runner as an app, e.g.
213 # 207 #
214 # mojo/tools/apptest_runner.py 208 # mojo/tools/apptest_runner.py
215 # --apptest-filter mojo:media_apptests out/Debug 209 # --apptest-filter mojo:media_apptests out/Debug
216 # 210 #
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 ":media_mojo_unittests", 259 ":media_mojo_unittests",
266 ] 260 ]
267 261
268 if (!is_component_build) { 262 if (!is_component_build) {
269 deps += [ 263 deps += [
270 ":media_apptests", 264 ":media_apptests",
271 ":media_pipeline_integration_apptests", 265 ":media_pipeline_integration_apptests",
272 ] 266 ]
273 } 267 }
274 } 268 }
OLDNEW
« no previous file with comments | « content/shell/BUILD.gn ('k') | media/mojo/services/android_mojo_media_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698