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