| 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("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
| 6 | 6 |
| 7 # Target naming conventions: | 7 # Target naming conventions: |
| 8 # - converters: C++/Mojo type converters. | 8 # - converters: C++/Mojo type converters. |
| 9 # - proxy: C++ implementations supported by mojo services. | 9 # - proxy: C++ implementations supported by mojo services. |
| 10 # - service: Mojo interface implementations. | 10 # - service: Mojo interface implementations. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 "//mojo/public/interfaces/application", | 39 "//mojo/public/interfaces/application", |
| 40 "//mojo/common", | 40 "//mojo/common", |
| 41 "//mojo/environment:chromium", | 41 "//mojo/environment:chromium", |
| 42 "//mojo/public/c/system:for_component", | 42 "//mojo/public/c/system:for_component", |
| 43 "//mojo/public/cpp/application", | 43 "//mojo/public/cpp/application", |
| 44 ] | 44 ] |
| 45 | 45 |
| 46 sources = [ | 46 sources = [ |
| 47 "mojo_cdm.cc", | 47 "mojo_cdm.cc", |
| 48 "mojo_cdm.h", | 48 "mojo_cdm.h", |
| 49 "mojo_cdm_factory.cc", |
| 50 "mojo_cdm_factory.h", |
| 49 "mojo_type_trait.h", | 51 "mojo_type_trait.h", |
| 50 ] | 52 ] |
| 51 } | 53 } |
| 52 | 54 |
| 53 source_set("cdm_service") { | 55 source_set("cdm_service") { |
| 54 deps = [ | 56 deps = [ |
| 55 ":converters", | 57 ":converters", |
| 56 "//base", | 58 "//base", |
| 57 "//media", | 59 "//media", |
| 58 "//media/mojo/interfaces", | 60 "//media/mojo/interfaces", |
| 59 "//mojo/public/interfaces/application", | 61 "//mojo/public/interfaces/application", |
| 60 "//mojo/common", | 62 "//mojo/common", |
| 61 "//mojo/environment:chromium", | 63 "//mojo/environment:chromium", |
| 62 "//mojo/public/c/system:for_component", | 64 "//mojo/public/c/system:for_component", |
| 63 ] | 65 ] |
| 64 | 66 |
| 65 sources = [ | 67 sources = [ |
| 66 "mojo_cdm_promise.cc", | 68 "mojo_cdm_promise.cc", |
| 67 "mojo_cdm_promise.h", | 69 "mojo_cdm_promise.h", |
| 68 "mojo_cdm_service.cc", | 70 "mojo_cdm_service.cc", |
| 69 "mojo_cdm_service.h", | 71 "mojo_cdm_service.h", |
| 72 "mojo_cdm_service_context.cc", |
| 73 "mojo_cdm_service_context.h", |
| 74 "mojo_cdm_factory_service.cc", |
| 75 "mojo_cdm_factory_service.h", |
| 70 "mojo_type_trait.h", | 76 "mojo_type_trait.h", |
| 71 ] | 77 ] |
| 72 } | 78 } |
| 73 | 79 |
| 74 # media::Renderer implementation using mojo::MediaRenderer. | 80 # media::Renderer implementation using mojo::MediaRenderer. |
| 75 source_set("renderer_proxy") { | 81 source_set("renderer_proxy") { |
| 76 sources = [ | 82 sources = [ |
| 77 "mojo_demuxer_stream_impl.cc", | 83 "mojo_demuxer_stream_impl.cc", |
| 78 "mojo_demuxer_stream_impl.h", | 84 "mojo_demuxer_stream_impl.h", |
| 79 "mojo_renderer_factory.cc", | 85 "mojo_renderer_factory.cc", |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 ] | 156 ] |
| 151 } | 157 } |
| 152 | 158 |
| 153 if (!is_component_build) { | 159 if (!is_component_build) { |
| 154 mojo_native_application("media") { | 160 mojo_native_application("media") { |
| 155 sources = [ | 161 sources = [ |
| 156 "mojo_media_application.cc", | 162 "mojo_media_application.cc", |
| 157 ] | 163 ] |
| 158 | 164 |
| 159 deps = [ | 165 deps = [ |
| 166 ":cdm_service", |
| 160 ":renderer_service", | 167 ":renderer_service", |
| 161 "//mojo/application", | 168 "//mojo/application", |
| 162 "//mojo/public/c/system:for_shared_library", | 169 "//mojo/public/c/system:for_shared_library", |
| 163 ] | 170 ] |
| 164 } | 171 } |
| 165 | 172 |
| 166 # Not a 'test' because this is loaded via mojo_shell as an app. | 173 # Not a 'test' because this is loaded via mojo_shell as an app. |
| 167 # To run the test: | 174 # To run the test: |
| 168 # out/Debug/mojo_shell mojo:media_test | 175 # out/Debug/mojo_shell mojo:media_test |
| 169 # You can get "mojo_shell" using mojo/public/tools/download_shell_binary.py | 176 # You can get "mojo_shell" using mojo/public/tools/download_shell_binary.py |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 group("tests") { | 210 group("tests") { |
| 204 testonly = true | 211 testonly = true |
| 205 deps = [ | 212 deps = [ |
| 206 ":media_mojo_unittests", | 213 ":media_mojo_unittests", |
| 207 ] | 214 ] |
| 208 | 215 |
| 209 if (!is_component_build) { | 216 if (!is_component_build) { |
| 210 deps += [ ":media_test" ] | 217 deps += [ ":media_test" ] |
| 211 } | 218 } |
| 212 } | 219 } |
| OLD | NEW |