| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | |
| 165 public_configs = [ ":enable_mojo_media_config" ] | 153 public_configs = [ ":enable_mojo_media_config" ] |
| 166 | 154 |
| 167 deps = [ | 155 deps = [ |
| 168 ":cdm_service", | 156 ":cdm_service", |
| 169 ":renderer_service", | 157 ":renderer_service", |
| 170 "//mojo/shell/public/cpp", | 158 "//mojo/shell/public/cpp", |
| 171 ] | 159 ] |
| 172 } | 160 } |
| 173 | 161 |
| 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 |
| 174 test("media_mojo_unittests") { | 180 test("media_mojo_unittests") { |
| 175 sources = [ | 181 sources = [ |
| 176 "media_type_converters_unittest.cc", | 182 "media_type_converters_unittest.cc", |
| 177 ] | 183 ] |
| 178 | 184 |
| 179 deps = [ | 185 deps = [ |
| 180 ":converters", | 186 ":converters", |
| 181 "//base", | 187 "//base", |
| 182 "//base/test:test_support", | 188 "//base/test:test_support", |
| 183 "//media", | 189 "//media", |
| 184 "//media/base:test_support", | 190 "//media/base:test_support", |
| 185 "//media/mojo/interfaces", | 191 "//media/mojo/interfaces", |
| 186 "//mojo/edk/system", | 192 "//mojo/edk/system", |
| 187 "//mojo/edk/test:run_all_unittests", | 193 "//mojo/edk/test:run_all_unittests", |
| 188 "//mojo/environment:chromium", | 194 "//mojo/environment:chromium", |
| 189 "//testing/gmock", | 195 "//testing/gmock", |
| 190 "//testing/gtest", | 196 "//testing/gtest", |
| 191 ] | 197 ] |
| 192 } | 198 } |
| 193 | 199 |
| 194 mojo_native_application("media") { | 200 mojo_native_application("media") { |
| 195 sources = [ | 201 sources = [ |
| 196 "main.cc", | 202 "main.cc", |
| 197 ] | 203 ] |
| 198 | 204 |
| 199 deps = [ | 205 deps = [ |
| 200 ":application", | 206 ":default_application", |
| 201 "//mojo/logging", | 207 "//mojo/logging", |
| 202 "//mojo/public/c/system:for_shared_library", | 208 "//mojo/public/c/system:for_shared_library", |
| 203 ] | 209 ] |
| 204 } | 210 } |
| 205 | 211 |
| 206 # Note, the following tests must be loaded via mojo_runner as an app, e.g. | 212 # Note, the following tests must be loaded via mojo_runner as an app, e.g. |
| 207 # | 213 # |
| 208 # mojo/tools/apptest_runner.py | 214 # mojo/tools/apptest_runner.py |
| 209 # --apptest-filter mojo:media_apptests out/Debug | 215 # --apptest-filter mojo:media_apptests out/Debug |
| 210 # | 216 # |
| 211 # mojo/tools/apptest_runner.py | 217 # mojo/tools/apptest_runner.py |
| 212 # --apptest-filter mojo:media_pipeline_integration_apptests out/Debug | 218 # --apptest-filter mojo:media_pipeline_integration_apptests out/Debug |
| 213 # | 219 # |
| 214 mojo_native_application("media_apptests") { | 220 mojo_native_application("media_apptests") { |
| 215 testonly = true | 221 testonly = true |
| 216 | 222 |
| 217 sources = [ | 223 sources = [ |
| 218 "media_apptest.cc", | 224 "media_apptest.cc", |
| 219 ] | 225 ] |
| 220 | 226 |
| 221 deps = [ | 227 deps = [ |
| 222 ":proxy", | 228 ":proxy", |
| 223 "//media/base:test_support", | 229 "//media/base:test_support", |
| 224 "//mojo/shell/public/cpp:test_support", | 230 "//mojo/shell/public/cpp:test_support", |
| 225 "//testing/gmock", | 231 "//testing/gmock", |
| 226 "//testing/gtest", | 232 "//testing/gtest", |
| 227 ] | 233 ] |
| 228 | 234 |
| 229 data_deps = [ | 235 data_deps = [ ":media" ] |
| 230 ":media", | |
| 231 ] | |
| 232 } | 236 } |
| 233 | 237 |
| 234 mojo_native_application("media_pipeline_integration_apptests") { | 238 mojo_native_application("media_pipeline_integration_apptests") { |
| 235 testonly = true | 239 testonly = true |
| 236 | 240 |
| 237 deps = [ | 241 deps = [ |
| 238 "//media/test:mojo_pipeline_integration_tests", | 242 "//media/test:mojo_pipeline_integration_tests", |
| 239 ] | 243 ] |
| 240 | 244 |
| 241 data_deps = [ | 245 data_deps = [ ":media" ] |
| 242 ":media", | |
| 243 ] | |
| 244 } | 246 } |
| 245 | 247 |
| 246 group("services") { | 248 group("services") { |
| 247 public_deps = [ | 249 public_deps = [ |
| 248 ":proxy", | 250 ":proxy", |
| 249 ] | 251 ] |
| 250 | 252 |
| 251 if (!is_component_build) { | 253 if (!is_component_build) { |
| 252 public_deps += [ ":media" ] | 254 public_deps += [ ":media" ] |
| 253 } | 255 } |
| 254 } | 256 } |
| 255 | 257 |
| 256 group("tests") { | 258 group("tests") { |
| 257 testonly = true | 259 testonly = true |
| 258 deps = [ | 260 deps = [ |
| 259 ":media_mojo_unittests", | 261 ":media_mojo_unittests", |
| 260 ] | 262 ] |
| 261 | 263 |
| 262 if (!is_component_build) { | 264 if (!is_component_build) { |
| 263 deps += [ | 265 deps += [ |
| 264 ":media_apptests", | 266 ":media_apptests", |
| 265 ":media_pipeline_integration_apptests", | 267 ":media_pipeline_integration_apptests", |
| 266 ] | 268 ] |
| 267 } | 269 } |
| 268 } | 270 } |
| OLD | NEW |