| 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 } | 322 } |
| 323 } | 323 } |
| 324 } | 324 } |
| 325 | 325 |
| 326 if (is_win) { | 326 if (is_win) { |
| 327 sources += [ | 327 sources += [ |
| 328 "dxva_picture_buffer_win.cc", | 328 "dxva_picture_buffer_win.cc", |
| 329 "dxva_picture_buffer_win.h", | 329 "dxva_picture_buffer_win.h", |
| 330 "dxva_video_decode_accelerator_win.cc", | 330 "dxva_video_decode_accelerator_win.cc", |
| 331 "dxva_video_decode_accelerator_win.h", | 331 "dxva_video_decode_accelerator_win.h", |
| 332 "media_foundation_video_encode_accelerator_win.cc", |
| 333 "media_foundation_video_encode_accelerator_win.h", |
| 332 ] | 334 ] |
| 333 configs += [ | 335 configs += [ |
| 334 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 336 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 335 "//build/config/compiler:no_size_t_to_int_warning", | 337 "//build/config/compiler:no_size_t_to_int_warning", |
| 336 "//third_party/khronos:khronos_headers", | 338 "//third_party/khronos:khronos_headers", |
| 337 ] | 339 ] |
| 338 public_deps += [ "//media/base/win" ] | 340 public_deps += [ "//media/base/win" ] |
| 339 deps += [ "//third_party/angle:includes" ] | 341 deps += [ |
| 342 "//third_party/angle:includes", |
| 343 "//third_party/libyuv", |
| 344 ] |
| 340 libs += [ | 345 libs += [ |
| 341 "d3d9.lib", | 346 "d3d9.lib", |
| 342 "d3d11.lib", | 347 "d3d11.lib", |
| 343 "dxva2.lib", | 348 "dxva2.lib", |
| 344 "strmiids.lib", | 349 "strmiids.lib", |
| 345 "mf.lib", | 350 "mf.lib", |
| 346 "mfplat.lib", | 351 "mfplat.lib", |
| 347 "mfuuid.lib", | 352 "mfuuid.lib", |
| 348 ] | 353 ] |
| 349 ldflags += [ | 354 ldflags += [ |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 ] | 422 ] |
| 418 } | 423 } |
| 419 | 424 |
| 420 if (use_x11) { | 425 if (use_x11) { |
| 421 configs += [ "//build/config/linux:x11" ] | 426 configs += [ "//build/config/linux:x11" ] |
| 422 deps += [ "//ui/gfx/x" ] | 427 deps += [ "//ui/gfx/x" ] |
| 423 } | 428 } |
| 424 } | 429 } |
| 425 } | 430 } |
| 426 | 431 |
| 427 if (is_chromeos || is_mac) { | 432 if (is_chromeos || is_mac || is_win) { |
| 428 test("video_encode_accelerator_unittest") { | 433 test("video_encode_accelerator_unittest") { |
| 429 deps = [ | 434 deps = [ |
| 430 "//base", | 435 "//base", |
| 431 "//media", | 436 "//media", |
| 432 "//media/base:test_support", | 437 "//media/base:test_support", |
| 433 "//media/gpu", | 438 "//media/gpu", |
| 434 "//testing/gtest", | 439 "//testing/gtest", |
| 435 "//ui/base", | 440 "//ui/base", |
| 436 "//ui/gfx", | 441 "//ui/gfx", |
| 437 "//ui/gfx:test_support", | 442 "//ui/gfx:test_support", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 448 "video_encode_accelerator_unittest.cc", | 453 "video_encode_accelerator_unittest.cc", |
| 449 ] | 454 ] |
| 450 if (use_x11) { | 455 if (use_x11) { |
| 451 deps += [ "//ui/gfx/x" ] | 456 deps += [ "//ui/gfx/x" ] |
| 452 } | 457 } |
| 453 if (use_ozone) { | 458 if (use_ozone) { |
| 454 deps += [ "//ui/ozone" ] | 459 deps += [ "//ui/ozone" ] |
| 455 } | 460 } |
| 456 } | 461 } |
| 457 } | 462 } |
| OLD | NEW |