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("//third_party/mojo/src/mojo/public/mojo_application.gni") | 7 import("//third_party/mojo/src/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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 "//media/mojo/interfaces", | 45 "//media/mojo/interfaces", |
46 "//mojo/application/public/interfaces", | 46 "//mojo/application/public/interfaces", |
47 "//mojo/common", | 47 "//mojo/common", |
48 "//mojo/environment:chromium", | 48 "//mojo/environment:chromium", |
49 "//third_party/mojo/src/mojo/public/c/system:for_component", | 49 "//third_party/mojo/src/mojo/public/c/system:for_component", |
50 ] | 50 ] |
51 | 51 |
52 sources = [ | 52 sources = [ |
53 "mojo_cdm.cc", | 53 "mojo_cdm.cc", |
54 "mojo_cdm.h", | 54 "mojo_cdm.h", |
| 55 "mojo_cdm_factory.cc", |
| 56 "mojo_cdm_factory.h", |
55 "mojo_type_trait.h", | 57 "mojo_type_trait.h", |
56 ] | 58 ] |
57 } | 59 } |
58 | 60 |
59 source_set("cdm_service") { | 61 source_set("cdm_service") { |
60 deps = [ | 62 deps = [ |
61 ":converters", | 63 ":converters", |
62 "//base", | 64 "//base", |
63 "//media", | 65 "//media", |
64 "//media/mojo/interfaces", | 66 "//media/mojo/interfaces", |
65 "//mojo/application/public/interfaces", | 67 "//mojo/application/public/interfaces", |
66 "//mojo/common", | 68 "//mojo/common", |
67 "//mojo/environment:chromium", | 69 "//mojo/environment:chromium", |
68 "//third_party/mojo/src/mojo/public/c/system:for_component", | 70 "//third_party/mojo/src/mojo/public/c/system:for_component", |
69 ] | 71 ] |
70 | 72 |
71 sources = [ | 73 sources = [ |
| 74 "mojo_cdm_factory_service.cc", |
| 75 "mojo_cdm_factory_service.h", |
72 "mojo_cdm_promise.cc", | 76 "mojo_cdm_promise.cc", |
73 "mojo_cdm_promise.h", | 77 "mojo_cdm_promise.h", |
74 "mojo_cdm_service.cc", | 78 "mojo_cdm_service.cc", |
75 "mojo_cdm_service.h", | 79 "mojo_cdm_service.h", |
| 80 "mojo_cdm_service_context.cc", |
| 81 "mojo_cdm_service_context.h", |
76 "mojo_type_trait.h", | 82 "mojo_type_trait.h", |
77 ] | 83 ] |
78 | 84 |
79 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 85 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
80 } | 86 } |
81 | 87 |
82 # media::Renderer implementation using mojo::MediaRenderer. | 88 # media::Renderer implementation using mojo::MediaRenderer. |
83 source_set("renderer_proxy") { | 89 source_set("renderer_proxy") { |
84 sources = [ | 90 sources = [ |
85 "mojo_demuxer_stream_impl.cc", | 91 "mojo_demuxer_stream_impl.cc", |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 ] | 167 ] |
162 } | 168 } |
163 | 169 |
164 if (!is_component_build) { | 170 if (!is_component_build) { |
165 mojo_native_application("media") { | 171 mojo_native_application("media") { |
166 sources = [ | 172 sources = [ |
167 "mojo_media_application.cc", | 173 "mojo_media_application.cc", |
168 ] | 174 ] |
169 | 175 |
170 deps = [ | 176 deps = [ |
| 177 ":cdm_service", |
171 ":renderer_service", | 178 ":renderer_service", |
172 "//mojo/application/public/cpp", | 179 "//mojo/application/public/cpp", |
173 "//third_party/mojo/src/mojo/public/c/system:for_shared_library", | 180 "//third_party/mojo/src/mojo/public/c/system:for_shared_library", |
174 ] | 181 ] |
175 } | 182 } |
176 | 183 |
177 # Note, this 'test' must be loaded via mojo_shell as an app: | 184 # Note, this 'test' must be loaded via mojo_shell as an app: |
178 # | 185 # |
179 # out/Debug/mojo_shell mojo:media_test | 186 # out/Debug/mojo_shell mojo:media_test |
180 # | 187 # |
(...skipping 20 matching lines...) Expand all Loading... |
201 group("tests") { | 208 group("tests") { |
202 testonly = true | 209 testonly = true |
203 deps = [ | 210 deps = [ |
204 ":media_mojo_unittests", | 211 ":media_mojo_unittests", |
205 ] | 212 ] |
206 | 213 |
207 if (!is_component_build) { | 214 if (!is_component_build) { |
208 deps += [ ":media_test" ] | 215 deps += [ ":media_test" ] |
209 } | 216 } |
210 } | 217 } |
OLD | NEW |