OLD | NEW |
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 import("//mojo/public/mojo_application_manifest.gni") | 8 import("//mojo/public/mojo_application_manifest.gni") |
9 | 9 |
10 # Target naming conventions: | 10 # Target naming conventions: |
(...skipping 10 matching lines...) Expand all Loading... |
21 defines = [ "ENABLE_MOJO_MEDIA" ] | 21 defines = [ "ENABLE_MOJO_MEDIA" ] |
22 | 22 |
23 assert(mojo_media_services != [], "No mojo media service specified") | 23 assert(mojo_media_services != [], "No mojo media service specified") |
24 foreach(service, mojo_media_services) { | 24 foreach(service, mojo_media_services) { |
25 if (service == "renderer") { | 25 if (service == "renderer") { |
26 defines += [ "ENABLE_MOJO_RENDERER" ] | 26 defines += [ "ENABLE_MOJO_RENDERER" ] |
27 } else if (service == "cdm") { | 27 } else if (service == "cdm") { |
28 defines += [ "ENABLE_MOJO_CDM" ] | 28 defines += [ "ENABLE_MOJO_CDM" ] |
29 } else if (service == "audio_decoder") { | 29 } else if (service == "audio_decoder") { |
30 defines += [ "ENABLE_MOJO_AUDIO_DECODER" ] | 30 defines += [ "ENABLE_MOJO_AUDIO_DECODER" ] |
| 31 } else if (service == "video_decoder") { |
| 32 defines += [ "ENABLE_MOJO_VIDEO_DECODER" ] |
31 } else { | 33 } else { |
32 assert(false, "Invalid mojo media service: $service") | 34 assert(false, "Invalid mojo media service: $service") |
33 } | 35 } |
34 } | 36 } |
35 | 37 |
36 if (mojo_media_host == "browser") { | 38 if (mojo_media_host == "browser") { |
37 defines += [ "ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS" ] | 39 defines += [ "ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS" ] |
38 } else if (mojo_media_host == "gpu") { | 40 } else if (mojo_media_host == "gpu") { |
39 defines += [ "ENABLE_MOJO_MEDIA_IN_GPU_PROCESS" ] | 41 defines += [ "ENABLE_MOJO_MEDIA_IN_GPU_PROCESS" ] |
40 } else if (mojo_media_host == "utility") { | 42 } else if (mojo_media_host == "utility") { |
(...skipping 17 matching lines...) Expand all Loading... |
58 "mojo_decoder_factory.h", | 60 "mojo_decoder_factory.h", |
59 "mojo_decryptor.cc", | 61 "mojo_decryptor.cc", |
60 "mojo_decryptor.h", | 62 "mojo_decryptor.h", |
61 "mojo_demuxer_stream_impl.cc", | 63 "mojo_demuxer_stream_impl.cc", |
62 "mojo_demuxer_stream_impl.h", | 64 "mojo_demuxer_stream_impl.h", |
63 "mojo_renderer_factory.cc", | 65 "mojo_renderer_factory.cc", |
64 "mojo_renderer_factory.h", | 66 "mojo_renderer_factory.h", |
65 "mojo_renderer_impl.cc", | 67 "mojo_renderer_impl.cc", |
66 "mojo_renderer_impl.h", | 68 "mojo_renderer_impl.h", |
67 "mojo_type_trait.h", | 69 "mojo_type_trait.h", |
| 70 "mojo_video_decoder.cc", |
| 71 "mojo_video_decoder.h", |
68 ] | 72 ] |
69 | 73 |
70 public_configs = [ ":mojo_media_config" ] | 74 public_configs = [ ":mojo_media_config" ] |
71 | 75 |
72 deps = [ | 76 deps = [ |
73 "//base", | 77 "//base", |
74 "//media", | 78 "//media", |
75 "//media/mojo/common", | 79 "//media/mojo/common", |
76 "//media/mojo/interfaces", | 80 "//media/mojo/interfaces", |
77 "//mojo/common", | 81 "//mojo/common", |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 source = "pipeline_apptest_manifest.json" | 266 source = "pipeline_apptest_manifest.json" |
263 } | 267 } |
264 | 268 |
265 group("tests") { | 269 group("tests") { |
266 testonly = true | 270 testonly = true |
267 deps = [ | 271 deps = [ |
268 ":media_apptests", | 272 ":media_apptests", |
269 ":media_pipeline_integration_apptests", | 273 ":media_pipeline_integration_apptests", |
270 ] | 274 ] |
271 } | 275 } |
OLD | NEW |