| 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 | 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 Loading... |
| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 deps = [ | 127 deps = [ |
| 148 ":converters", | 128 ":converters", |
| 149 "//base", | 129 "//base", |
| 150 "//media", | 130 "//media", |
| 151 "//media:shared_memory_support", | 131 "//media:shared_memory_support", |
| 152 "//media/mojo/interfaces", | 132 "//media/mojo/interfaces", |
| 153 "//mojo/common", | 133 "//mojo/common", |
| 154 ] | 134 ] |
| 155 } | 135 } |
| 156 | 136 |
| 157 source_set("application") { | 137 source_set("service_factory") { |
| 158 sources = [ | 138 sources = [ |
| 159 "mojo_media_application.cc", | 139 "mojo_media_client.cc", |
| 160 "mojo_media_application.h", | 140 "mojo_media_client.h", |
| 161 "service_factory_impl.cc", | 141 "service_factory_impl.cc", |
| 162 "service_factory_impl.h", | 142 "service_factory_impl.h", |
| 163 ] | 143 ] |
| 164 | 144 |
| 165 public_configs = [ ":enable_mojo_media_config" ] | 145 public_configs = [ ":enable_mojo_media_config" ] |
| 166 | 146 |
| 167 deps = [ | 147 deps = [ |
| 168 ":cdm_service", | 148 ":cdm_service", |
| 169 ":media_client", | |
| 170 ":renderer_service", | 149 ":renderer_service", |
| 171 "//base", | |
| 172 "//mojo/public/c/system:for_component", | |
| 173 "//mojo/shell/public/cpp", | |
| 174 ] | 150 ] |
| 175 } | 151 } |
| 176 | 152 |
| 153 source_set("application") { |
| 154 sources = [ |
| 155 "mojo_media_application.cc", |
| 156 "mojo_media_application.h", |
| 157 ] |
| 158 if (is_android) { |
| 159 sources += [ "android_mojo_media_client.cc" ] |
| 160 } else { |
| 161 sources += [ "default_mojo_media_client.cc" ] |
| 162 } |
| 163 |
| 164 public_configs = [ ":enable_mojo_media_config" ] |
| 165 |
| 166 deps = [ |
| 167 ":service_factory", |
| 168 ] |
| 169 } |
| 170 |
| 177 test("media_mojo_unittests") { | 171 test("media_mojo_unittests") { |
| 178 sources = [ | 172 sources = [ |
| 179 "media_type_converters_unittest.cc", | 173 "media_type_converters_unittest.cc", |
| 180 ] | 174 ] |
| 181 | 175 |
| 182 deps = [ | 176 deps = [ |
| 183 ":converters", | 177 ":converters", |
| 184 "//base", | 178 "//base", |
| 185 "//base/test:test_support", | 179 "//base/test:test_support", |
| 186 "//media", | 180 "//media", |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 ":media_mojo_unittests", | 255 ":media_mojo_unittests", |
| 262 ] | 256 ] |
| 263 | 257 |
| 264 if (!is_component_build) { | 258 if (!is_component_build) { |
| 265 deps += [ | 259 deps += [ |
| 266 ":media_apptests", | 260 ":media_apptests", |
| 267 ":media_pipeline_integration_apptests", | 261 ":media_pipeline_integration_apptests", |
| 268 ] | 262 ] |
| 269 } | 263 } |
| 270 } | 264 } |
| OLD | NEW |