| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//media/gpu/args.gni") | 7 import("//media/gpu/args.gni") |
| 8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 | 10 |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 ldflags += [ | 361 ldflags += [ |
| 362 "/DELAYLOAD:d3d9.dll", | 362 "/DELAYLOAD:d3d9.dll", |
| 363 "/DELAYLOAD:d3d11.dll", | 363 "/DELAYLOAD:d3d11.dll", |
| 364 "/DELAYLOAD:dxva2.dll", | 364 "/DELAYLOAD:dxva2.dll", |
| 365 "/DELAYLOAD:mf.dll", | 365 "/DELAYLOAD:mf.dll", |
| 366 "/DELAYLOAD:mfplat.dll", | 366 "/DELAYLOAD:mfplat.dll", |
| 367 ] | 367 ] |
| 368 } | 368 } |
| 369 } | 369 } |
| 370 | 370 |
| 371 # TODO(watk): Run this on bots. http://crbug.com/461437 |
| 371 if (is_win || is_android || is_chromeos) { | 372 if (is_win || is_android || is_chromeos) { |
| 372 test("video_decode_accelerator_unittest") { | 373 test("video_decode_accelerator_unittest") { |
| 373 sources = [ | 374 sources = [ |
| 374 "video_accelerator_unittest_helpers.h", | 375 "video_accelerator_unittest_helpers.h", |
| 375 ] | 376 ] |
| 376 | 377 |
| 377 deps = [ | 378 deps = [ |
| 378 ":gpu", | 379 ":gpu", |
| 379 "//base", | 380 "//base", |
| 380 "//media", | 381 "//media", |
| 381 "//media/gpu", | |
| 382 "//testing/gtest", | 382 "//testing/gtest", |
| 383 "//ui/base", | 383 "//ui/base", |
| 384 "//ui/gfx", | 384 "//ui/gfx", |
| 385 "//ui/gfx:test_support", | 385 "//ui/gfx:test_support", |
| 386 "//ui/gfx/geometry", | 386 "//ui/gfx/geometry", |
| 387 "//ui/gl", | 387 "//ui/gl", |
| 388 "//ui/gl:test_support", | 388 "//ui/gl:test_support", |
| 389 "//ui/gl/init", | 389 "//ui/gl/init", |
| 390 ] | 390 ] |
| 391 | 391 |
| 392 configs += [ | 392 configs += [ |
| 393 "//third_party/khronos:khronos_headers", | 393 "//third_party/khronos:khronos_headers", |
| 394 ":gpu_config", | 394 ":gpu_config", |
| 395 ] | 395 ] |
| 396 if (is_chromeos && current_cpu != "arm") { | 396 if (is_chromeos && current_cpu != "arm") { |
| 397 configs += [ "//third_party/libva:libva_config" ] | 397 configs += [ "//third_party/libva:libva_config" ] |
| 398 } | 398 } |
| 399 | 399 |
| 400 if (is_android) { | 400 if (is_win || is_chromeos) { |
| 401 sources += [ | |
| 402 "android_video_decode_accelerator_unittest.cc", | |
| 403 "avda_codec_allocator_unittest.cc", | |
| 404 ] | |
| 405 deps += [ | |
| 406 "//gpu:test_support", | |
| 407 "//media/base/android", | |
| 408 "//media/base/android:media_java", | |
| 409 "//testing/gmock", | |
| 410 "//ui/android:ui_java", | |
| 411 ] | |
| 412 } else { | |
| 413 sources += [ | 401 sources += [ |
| 414 "rendering_helper.cc", | 402 "rendering_helper.cc", |
| 415 "rendering_helper.h", | 403 "rendering_helper.h", |
| 416 "video_decode_accelerator_unittest.cc", | 404 "video_decode_accelerator_unittest.cc", |
| 417 ] | 405 ] |
| 418 deps += [ | 406 deps += [ |
| 419 "//ui/display", | 407 "//ui/display", |
| 420 "//ui/display/types", | 408 "//ui/display/types", |
| 421 "//ui/platform_window", | 409 "//ui/platform_window", |
| 422 ] | 410 ] |
| 423 if (use_ozone) { | 411 } |
| 424 deps += [ "//ui/ozone" ] | 412 |
| 425 } | 413 if (is_android) { |
| 414 deps += [ |
| 415 ":android_video_decode_accelerator_unittests", |
| 416 "//media/base/android:media_java", |
| 417 "//media/test:run_all_unittests", |
| 418 "//ui/android:ui_java", |
| 419 ] |
| 426 } | 420 } |
| 427 | 421 |
| 428 if (is_win) { | 422 if (is_win) { |
| 429 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 423 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 430 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 424 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 431 deps += [ | 425 deps += [ |
| 432 "//third_party/angle:libEGL", | 426 "//third_party/angle:libEGL", |
| 433 "//third_party/angle:libGLESv2", | 427 "//third_party/angle:libGLESv2", |
| 434 ] | 428 ] |
| 435 } | 429 } |
| 436 | 430 |
| 437 if (use_x11) { | 431 if (use_x11) { |
| 438 configs += [ "//build/config/linux:x11" ] | 432 configs += [ "//build/config/linux:x11" ] |
| 439 deps += [ "//ui/gfx/x" ] | 433 deps += [ "//ui/gfx/x" ] |
| 440 } | 434 } |
| 435 |
| 436 if (use_ozone) { |
| 437 deps += [ "//ui/ozone" ] |
| 438 } |
| 441 } | 439 } |
| 442 } | 440 } |
| 443 | 441 |
| 442 source_set("android_video_decode_accelerator_unittests") { |
| 443 if (is_android) { |
| 444 testonly = true |
| 445 sources = [ |
| 446 "android_video_decode_accelerator_unittest.cc", |
| 447 "avda_codec_allocator_unittest.cc", |
| 448 ] |
| 449 deps = [ |
| 450 ":gpu", |
| 451 "//gpu:test_support", |
| 452 "//media/base/android", |
| 453 "//testing/gmock", |
| 454 "//testing/gtest", |
| 455 ] |
| 456 } |
| 457 } |
| 458 |
| 444 if (is_chromeos || is_mac || is_win) { | 459 if (is_chromeos || is_mac || is_win) { |
| 445 test("video_encode_accelerator_unittest") { | 460 test("video_encode_accelerator_unittest") { |
| 446 deps = [ | 461 deps = [ |
| 447 "//base", | 462 "//base", |
| 448 "//media", | 463 "//media", |
| 449 "//media/base:test_support", | 464 "//media/base:test_support", |
| 450 "//media/gpu", | 465 "//media/gpu", |
| 451 "//testing/gtest", | 466 "//testing/gtest", |
| 452 "//ui/base", | 467 "//ui/base", |
| 453 "//ui/gfx", | 468 "//ui/gfx", |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 "video_accelerator_unittest_helpers.h", | 515 "video_accelerator_unittest_helpers.h", |
| 501 ] | 516 ] |
| 502 if (use_x11) { | 517 if (use_x11) { |
| 503 deps += [ "//ui/gfx/x" ] | 518 deps += [ "//ui/gfx/x" ] |
| 504 } | 519 } |
| 505 if (use_ozone) { | 520 if (use_ozone) { |
| 506 deps += [ "//ui/ozone" ] | 521 deps += [ "//ui/ozone" ] |
| 507 } | 522 } |
| 508 } | 523 } |
| 509 } | 524 } |
| OLD | NEW |