| 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. |
| 11 # - proxy: C++ implementations supported by mojo services. | 11 # - proxy: C++ implementations supported by mojo services. |
| 12 # - service: Mojo interface implementations. | 12 # - service: Mojo interface implementations. |
| 13 # - unittests: Unit tests for a particular class/file. | 13 # - unittests: Unit tests for a particular class/file. |
| 14 # - test: Tests for a particular app, e.g. media. | 14 # - test: Tests for a particular app, e.g. media. |
| 15 | 15 |
| 16 config("enable_mojo_media_config") { | 16 config("enable_mojo_media_config") { |
| 17 assert(enable_mojo_media == "none" || enable_mojo_media == "browser" || | 17 assert(enable_mojo_media == "none" || enable_mojo_media == "browser" || |
| 18 enable_mojo_media == "utility") | 18 enable_mojo_media == "gpu" || enable_mojo_media == "utility") |
| 19 | 19 |
| 20 if (enable_mojo_media != "none") { | 20 if (enable_mojo_media != "none") { |
| 21 defines = [ "ENABLE_MOJO_MEDIA" ] | 21 defines = [ "ENABLE_MOJO_MEDIA" ] |
| 22 } | 22 } |
| 23 | 23 |
| 24 if (enable_mojo_media == "browser") { | 24 if (enable_mojo_media == "browser") { |
| 25 defines += [ "ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS" ] | 25 defines += [ "ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS" ] |
| 26 } else if (enable_mojo_media == "gpu") { |
| 27 defines += [ "ENABLE_MOJO_MEDIA_IN_GPU_PROCESS" ] |
| 26 } else if (enable_mojo_media == "utility") { | 28 } else if (enable_mojo_media == "utility") { |
| 27 defines += [ "ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS" ] | 29 defines += [ "ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS" ] |
| 28 } | 30 } |
| 29 } | 31 } |
| 30 | 32 |
| 31 source_set("converters") { | 33 source_set("converters") { |
| 32 sources = [ | 34 sources = [ |
| 33 "media_type_converters.cc", | 35 "media_type_converters.cc", |
| 34 "media_type_converters.h", | 36 "media_type_converters.h", |
| 35 ] | 37 ] |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 ] | 204 ] |
| 203 | 205 |
| 204 deps = [ | 206 deps = [ |
| 205 ":proxy", | 207 ":proxy", |
| 206 "//media/base:test_support", | 208 "//media/base:test_support", |
| 207 "//mojo/application/public/cpp:test_support", | 209 "//mojo/application/public/cpp:test_support", |
| 208 "//testing/gmock", | 210 "//testing/gmock", |
| 209 "//testing/gtest", | 211 "//testing/gtest", |
| 210 ] | 212 ] |
| 211 | 213 |
| 212 data_deps = [ ":media" ] | 214 data_deps = [ |
| 215 ":media", |
| 216 ] |
| 213 } | 217 } |
| 214 | 218 |
| 215 mojo_native_application("media_pipeline_integration_apptests") { | 219 mojo_native_application("media_pipeline_integration_apptests") { |
| 216 testonly = true | 220 testonly = true |
| 217 | 221 |
| 218 deps = [ | 222 deps = [ |
| 219 "//media/test:mojo_pipeline_integration_tests", | 223 "//media/test:mojo_pipeline_integration_tests", |
| 220 ] | 224 ] |
| 221 | 225 |
| 222 data_deps = [ ":media" ] | 226 data_deps = [ |
| 227 ":media", |
| 228 ] |
| 223 } | 229 } |
| 224 } | 230 } |
| 225 | 231 |
| 226 group("services") { | 232 group("services") { |
| 227 deps = [ | 233 deps = [ |
| 228 ":proxy", | 234 ":proxy", |
| 229 ] | 235 ] |
| 230 | 236 |
| 231 if (!is_component_build) { | 237 if (!is_component_build) { |
| 232 deps += [ ":media" ] | 238 deps += [ ":media" ] |
| 233 } | 239 } |
| 234 } | 240 } |
| 235 | 241 |
| 236 group("tests") { | 242 group("tests") { |
| 237 testonly = true | 243 testonly = true |
| 238 deps = [ | 244 deps = [ |
| 239 ":media_mojo_unittests", | 245 ":media_mojo_unittests", |
| 240 ] | 246 ] |
| 241 | 247 |
| 242 if (!is_component_build) { | 248 if (!is_component_build) { |
| 243 deps += [ | 249 deps += [ |
| 244 ":media_apptests", | 250 ":media_apptests", |
| 245 ":media_pipeline_integration_apptests", | 251 ":media_pipeline_integration_apptests", |
| 246 ] | 252 ] |
| 247 } | 253 } |
| 248 } | 254 } |
| OLD | NEW |