Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: media/gpu/BUILD.gn

Issue 1969503002: Address more TOOD(GYP) in GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 "mfplat.lib", 340 "mfplat.lib",
341 "mfuuid.lib", 341 "mfuuid.lib",
342 ] 342 ]
343 ldflags += [ 343 ldflags += [
344 "/DELAYLOAD:d3d9.dll", 344 "/DELAYLOAD:d3d9.dll",
345 "/DELAYLOAD:d3d11.dll", 345 "/DELAYLOAD:d3d11.dll",
346 "/DELAYLOAD:dxva2.dll", 346 "/DELAYLOAD:dxva2.dll",
347 "/DELAYLOAD:mf.dll", 347 "/DELAYLOAD:mf.dll",
348 "/DELAYLOAD:mfplat.dll", 348 "/DELAYLOAD:mfplat.dll",
349 ] 349 ]
350
351 # TODO(GYP): extract_xinput action.
352 } 350 }
353 351
354 if (use_x11) { 352 if (use_x11) {
355 deps += [ "//ui/gfx/x" ] 353 deps += [ "//ui/gfx/x" ]
356 } 354 }
357 } 355 }
358 356
359 if (is_android || is_chromeos) { 357 if (is_win || is_android || is_chromeos) {
360 # TODO(GYP): Port Windows logic.
361 test("video_decode_accelerator_unittest") { 358 test("video_decode_accelerator_unittest") {
359 sources = [
360 "video_accelerator_unittest_helpers.h",
361 ]
362
362 deps = [ 363 deps = [
363 ":gpu", 364 ":gpu",
364 "//base", 365 "//base",
365 "//media", 366 "//media",
366 "//media/gpu", 367 "//media/gpu",
367 "//testing/gtest", 368 "//testing/gtest",
368 "//ui/base", 369 "//ui/base",
369 "//ui/gfx", 370 "//ui/gfx",
370 "//ui/gfx:test_support", 371 "//ui/gfx:test_support",
371 "//ui/gfx/geometry", 372 "//ui/gfx/geometry",
372 "//ui/gl", 373 "//ui/gl",
373 "//ui/gl:test_support", 374 "//ui/gl:test_support",
374 ] 375 ]
376
375 configs += [ "//third_party/khronos:khronos_headers" ] 377 configs += [ "//third_party/khronos:khronos_headers" ]
376 if (is_chromeos && target_cpu != "arm") { 378 if (is_chromeos && target_cpu != "arm") {
377 configs += [ "//third_party/libva:libva_config" ] 379 configs += [ "//third_party/libva:libva_config" ]
378 } 380 }
379 sources = [ 381
380 "video_accelerator_unittest_helpers.h",
381 ]
382 if (is_android) { 382 if (is_android) {
383 sources += [ "android_video_decode_accelerator_unittest.cc" ] 383 sources += [ "android_video_decode_accelerator_unittest.cc" ]
384 deps += [
385 "//gpu:test_support",
386 "//media/base/android",
387 "//media/base/android:media_java",
388 "//media/capture/video/android:capture_java",
389 "//mojo/public/c/system:for_shared_library",
390 "//testing/gmock",
391 "//ui/android:ui_java",
392 ]
384 } else { 393 } else {
385 sources += [ 394 sources += [
386 "rendering_helper.cc", 395 "rendering_helper.cc",
387 "rendering_helper.h", 396 "rendering_helper.h",
388 "video_decode_accelerator_unittest.cc", 397 "video_decode_accelerator_unittest.cc",
389 ] 398 ]
390 } 399 }
391 400
392 if (is_android) { 401 if (is_win) {
402 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
403 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
393 deps += [ 404 deps += [
394 "//gpu:test_support", 405 "//third_party/angle:libEGL",
395 "//media/base/android", 406 "//third_party/angle:libGLESv2",
396 "//media/base/android:media_java",
397 "//media/capture/video/android:capture_java",
398 "//mojo/public/c/system:for_shared_library",
399 "//testing/gmock",
400 "//ui/android:ui_java",
401 ] 407 ]
402 } 408 }
409
403 if (is_chromeos && use_ozone) { 410 if (is_chromeos && use_ozone) {
404 deps += [ 411 deps += [
405 "//ui/display", # Used by rendering_helper.cc 412 "//ui/display", # Used by rendering_helper.cc
406 "//ui/ozone", # Used by rendering_helper.cc 413 "//ui/ozone", # Used by rendering_helper.cc
407 ] 414 ]
408 } 415 }
409 if (use_x11) { 416 if (use_x11) {
410 configs += [ "//build/config/linux:x11" ] 417 configs += [ "//build/config/linux:x11" ]
411 deps += [ "//ui/gfx/x" ] 418 deps += [ "//ui/gfx/x" ]
412 } 419 }
(...skipping 24 matching lines...) Expand all
437 "video_encode_accelerator_unittest.cc", 444 "video_encode_accelerator_unittest.cc",
438 ] 445 ]
439 if (use_x11) { 446 if (use_x11) {
440 deps += [ "//ui/gfx/x" ] 447 deps += [ "//ui/gfx/x" ]
441 } 448 }
442 if (use_ozone) { 449 if (use_ozone) {
443 deps += [ "//ui/ozone" ] 450 deps += [ "//ui/ozone" ]
444 } 451 }
445 } 452 }
446 } 453 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698