| 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 "mfplat.lib", | 336 "mfplat.lib", |
| 337 "mfuuid.lib", | 337 "mfuuid.lib", |
| 338 ] | 338 ] |
| 339 ldflags += [ | 339 ldflags += [ |
| 340 "/DELAYLOAD:d3d9.dll", | 340 "/DELAYLOAD:d3d9.dll", |
| 341 "/DELAYLOAD:d3d11.dll", | 341 "/DELAYLOAD:d3d11.dll", |
| 342 "/DELAYLOAD:dxva2.dll", | 342 "/DELAYLOAD:dxva2.dll", |
| 343 "/DELAYLOAD:mf.dll", | 343 "/DELAYLOAD:mf.dll", |
| 344 "/DELAYLOAD:mfplat.dll", | 344 "/DELAYLOAD:mfplat.dll", |
| 345 ] | 345 ] |
| 346 | |
| 347 # TODO(GYP): extract_xinput action. | |
| 348 } | 346 } |
| 349 | 347 |
| 350 if (use_x11) { | 348 if (use_x11) { |
| 351 deps += [ "//ui/gfx/x" ] | 349 deps += [ "//ui/gfx/x" ] |
| 352 } | 350 } |
| 353 } | 351 } |
| 354 | 352 |
| 355 if (is_android || is_chromeos) { | 353 if (is_win || is_android || is_chromeos) { |
| 356 # TODO(GYP): Port Windows logic. | |
| 357 test("video_decode_accelerator_unittest") { | 354 test("video_decode_accelerator_unittest") { |
| 355 sources = [ |
| 356 "video_accelerator_unittest_helpers.h", |
| 357 ] |
| 358 |
| 358 deps = [ | 359 deps = [ |
| 359 ":gpu", | 360 ":gpu", |
| 360 "//base", | 361 "//base", |
| 361 "//media", | 362 "//media", |
| 362 "//media/gpu", | 363 "//media/gpu", |
| 363 "//testing/gtest", | 364 "//testing/gtest", |
| 364 "//ui/base", | 365 "//ui/base", |
| 365 "//ui/gfx", | 366 "//ui/gfx", |
| 366 "//ui/gfx:test_support", | 367 "//ui/gfx:test_support", |
| 367 "//ui/gfx/geometry", | 368 "//ui/gfx/geometry", |
| 368 "//ui/gl", | 369 "//ui/gl", |
| 369 "//ui/gl:test_support", | 370 "//ui/gl:test_support", |
| 370 ] | 371 ] |
| 372 |
| 371 configs += [ "//third_party/khronos:khronos_headers" ] | 373 configs += [ "//third_party/khronos:khronos_headers" ] |
| 372 if (is_chromeos && target_cpu != "arm") { | 374 if (is_chromeos && target_cpu != "arm") { |
| 373 configs += [ "//third_party/libva:libva_config" ] | 375 configs += [ "//third_party/libva:libva_config" ] |
| 374 } | 376 } |
| 375 sources = [ | 377 |
| 376 "video_accelerator_unittest_helpers.h", | |
| 377 ] | |
| 378 if (is_android) { | 378 if (is_android) { |
| 379 sources += [ "android_video_decode_accelerator_unittest.cc" ] | 379 sources += [ "android_video_decode_accelerator_unittest.cc" ] |
| 380 deps += [ |
| 381 "//gpu:test_support", |
| 382 "//media/base/android", |
| 383 "//media/base/android:media_java", |
| 384 "//media/capture/video/android:capture_java", |
| 385 "//mojo/public/c/system:for_shared_library", |
| 386 "//testing/gmock", |
| 387 "//ui/android:ui_java", |
| 388 ] |
| 380 } else { | 389 } else { |
| 381 sources += [ | 390 sources += [ |
| 382 "rendering_helper.cc", | 391 "rendering_helper.cc", |
| 383 "rendering_helper.h", | 392 "rendering_helper.h", |
| 384 "video_decode_accelerator_unittest.cc", | 393 "video_decode_accelerator_unittest.cc", |
| 385 ] | 394 ] |
| 386 } | 395 } |
| 387 | 396 |
| 388 if (is_android) { | 397 if (is_win) { |
| 398 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 399 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 389 deps += [ | 400 deps += [ |
| 390 "//gpu:test_support", | 401 "//third_party/angle:libEGL", |
| 391 "//media/base/android", | 402 "//third_party/angle:libGLESv2", |
| 392 "//media/base/android:media_java", | |
| 393 "//media/capture/video/android:capture_java", | |
| 394 "//mojo/public/c/system:for_shared_library", | |
| 395 "//testing/gmock", | |
| 396 "//ui/android:ui_java", | |
| 397 ] | 403 ] |
| 398 } | 404 } |
| 405 |
| 399 if (is_chromeos && use_ozone) { | 406 if (is_chromeos && use_ozone) { |
| 400 deps += [ | 407 deps += [ |
| 401 "//ui/display", # Used by rendering_helper.cc | 408 "//ui/display", # Used by rendering_helper.cc |
| 402 "//ui/ozone", # Used by rendering_helper.cc | 409 "//ui/ozone", # Used by rendering_helper.cc |
| 403 ] | 410 ] |
| 404 } | 411 } |
| 405 if (use_x11) { | 412 if (use_x11) { |
| 406 configs += [ "//build/config/linux:x11" ] | 413 configs += [ "//build/config/linux:x11" ] |
| 407 deps += [ "//ui/gfx/x" ] | 414 deps += [ "//ui/gfx/x" ] |
| 408 } | 415 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 433 "video_encode_accelerator_unittest.cc", | 440 "video_encode_accelerator_unittest.cc", |
| 434 ] | 441 ] |
| 435 if (use_x11) { | 442 if (use_x11) { |
| 436 deps += [ "//ui/gfx/x" ] | 443 deps += [ "//ui/gfx/x" ] |
| 437 } | 444 } |
| 438 if (use_ozone) { | 445 if (use_ozone) { |
| 439 deps += [ "//ui/ozone" ] | 446 deps += [ "//ui/ozone" ] |
| 440 } | 447 } |
| 441 } | 448 } |
| 442 } | 449 } |
| OLD | NEW |