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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//content/common/common.gni") | 7 import("//content/common/common.gni") |
8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
9 import("//mojo/public/tools/bindings/mojom.gni") | 9 import("//mojo/public/tools/bindings/mojom.gni") |
10 if (is_mac) { | 10 if (is_mac) { |
11 import("//build/config/mac/mac_sdk.gni") | 11 import("//build/config/mac/mac_sdk.gni") |
12 } | 12 } |
13 | 13 |
14 if (is_chromeos && current_cpu != "arm") { | 14 if (is_linux && current_cpu != "arm") { |
15 action("libva_generate_stubs") { | 15 action("libva_generate_stubs") { |
16 extra_header = "gpu/media/va_stub_header.fragment" | 16 extra_header = "gpu/media/va_stub_header.fragment" |
17 | 17 |
18 script = "../../tools/generate_stubs/generate_stubs.py" | 18 script = "../../tools/generate_stubs/generate_stubs.py" |
19 sources = [ | 19 sources = [ |
20 "gpu/media/va.sigs", | 20 "gpu/media/va.sigs", |
21 ] | 21 ] |
22 inputs = [ | 22 inputs = [ |
23 extra_header, | 23 extra_header, |
24 ] | 24 ] |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 "gpu/media/android_video_encode_accelerator.cc", | 369 "gpu/media/android_video_encode_accelerator.cc", |
370 "gpu/media/android_video_encode_accelerator.h", | 370 "gpu/media/android_video_encode_accelerator.h", |
371 ] | 371 ] |
372 } | 372 } |
373 | 373 |
374 if (mojo_media_host == "gpu") { | 374 if (mojo_media_host == "gpu") { |
375 deps += [ "//media/mojo/services:cdm_service" ] | 375 deps += [ "//media/mojo/services:cdm_service" ] |
376 } | 376 } |
377 } | 377 } |
378 | 378 |
379 if (is_chromeos) { | 379 if (is_linux) { |
380 sources += [ | 380 sources += [ |
381 "gpu/media/accelerated_video_decoder.h", | 381 "gpu/media/accelerated_video_decoder.h", |
382 "gpu/media/h264_decoder.cc", | 382 "gpu/media/h264_decoder.cc", |
383 "gpu/media/h264_decoder.h", | 383 "gpu/media/h264_decoder.h", |
384 "gpu/media/h264_dpb.cc", | 384 "gpu/media/h264_dpb.cc", |
385 "gpu/media/h264_dpb.h", | 385 "gpu/media/h264_dpb.h", |
386 "gpu/media/vp8_decoder.cc", | 386 "gpu/media/vp8_decoder.cc", |
387 "gpu/media/vp8_decoder.h", | 387 "gpu/media/vp8_decoder.h", |
388 "gpu/media/vp8_picture.cc", | 388 "gpu/media/vp8_picture.cc", |
389 "gpu/media/vp8_picture.h", | 389 "gpu/media/vp8_picture.h", |
390 "gpu/media/vp9_decoder.cc", | 390 "gpu/media/vp9_decoder.cc", |
391 "gpu/media/vp9_decoder.h", | 391 "gpu/media/vp9_decoder.h", |
392 "gpu/media/vp9_picture.cc", | 392 "gpu/media/vp9_picture.cc", |
393 "gpu/media/vp9_picture.h", | 393 "gpu/media/vp9_picture.h", |
394 ] | 394 ] |
395 if (use_v4lplugin) { | 395 if (is_chromeos && use_v4lplugin) { |
396 defines += [ "USE_LIBV4L2" ] | 396 defines += [ "USE_LIBV4L2" ] |
397 sources += get_target_outputs(":libv4l2_generate_stubs") | 397 sources += get_target_outputs(":libv4l2_generate_stubs") |
398 deps += [ ":libv4l2_generate_stubs" ] | 398 deps += [ ":libv4l2_generate_stubs" ] |
399 } | 399 } |
400 if (use_v4l2_codec) { | 400 if (is_chromeos && use_v4l2_codec) { |
401 defines += [ "USE_V4L2_CODEC" ] | 401 defines += [ "USE_V4L2_CODEC" ] |
402 deps += [ "//third_party/libyuv" ] | 402 deps += [ "//third_party/libyuv" ] |
403 sources += [ | 403 sources += [ |
404 "gpu/media/generic_v4l2_device.cc", | 404 "gpu/media/generic_v4l2_device.cc", |
405 "gpu/media/generic_v4l2_device.h", | 405 "gpu/media/generic_v4l2_device.h", |
406 "gpu/media/v4l2_device.cc", | 406 "gpu/media/v4l2_device.cc", |
407 "gpu/media/v4l2_device.h", | 407 "gpu/media/v4l2_device.h", |
408 "gpu/media/v4l2_image_processor.cc", | 408 "gpu/media/v4l2_image_processor.cc", |
409 "gpu/media/v4l2_image_processor.h", | 409 "gpu/media/v4l2_image_processor.h", |
410 "gpu/media/v4l2_jpeg_decode_accelerator.cc", | 410 "gpu/media/v4l2_jpeg_decode_accelerator.cc", |
411 "gpu/media/v4l2_jpeg_decode_accelerator.h", | 411 "gpu/media/v4l2_jpeg_decode_accelerator.h", |
412 "gpu/media/v4l2_slice_video_decode_accelerator.cc", | 412 "gpu/media/v4l2_slice_video_decode_accelerator.cc", |
413 "gpu/media/v4l2_slice_video_decode_accelerator.h", | 413 "gpu/media/v4l2_slice_video_decode_accelerator.h", |
414 "gpu/media/v4l2_video_decode_accelerator.cc", | 414 "gpu/media/v4l2_video_decode_accelerator.cc", |
415 "gpu/media/v4l2_video_decode_accelerator.h", | 415 "gpu/media/v4l2_video_decode_accelerator.h", |
416 "gpu/media/v4l2_video_encode_accelerator.cc", | 416 "gpu/media/v4l2_video_encode_accelerator.cc", |
417 "gpu/media/v4l2_video_encode_accelerator.h", | 417 "gpu/media/v4l2_video_encode_accelerator.h", |
418 ] | 418 ] |
419 libs = [ | 419 libs = [ |
420 "EGL", | 420 "EGL", |
421 "GLESv2", | 421 "GLESv2", |
422 ] | 422 ] |
423 } | 423 } |
424 if (current_cpu == "arm") { | 424 if (is_chromeos && current_cpu == "arm") { |
425 sources += [ | 425 sources += [ |
426 "gpu/media/tegra_v4l2_device.cc", | 426 "gpu/media/tegra_v4l2_device.cc", |
427 "gpu/media/tegra_v4l2_device.h", | 427 "gpu/media/tegra_v4l2_device.h", |
428 ] | 428 ] |
429 } | 429 } |
430 if (current_cpu != "arm") { | 430 if (current_cpu != "arm") { |
431 sources += [ | 431 sources += [ |
432 "gpu/media/va_surface.h", | 432 "gpu/media/va_surface.h", |
433 "gpu/media/vaapi_jpeg_decode_accelerator.cc", | 433 "gpu/media/vaapi_jpeg_decode_accelerator.cc", |
434 "gpu/media/vaapi_jpeg_decode_accelerator.h", | 434 "gpu/media/vaapi_jpeg_decode_accelerator.h", |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 | 549 |
550 public_deps = [ | 550 public_deps = [ |
551 "//components/leveldb/public/interfaces", | 551 "//components/leveldb/public/interfaces", |
552 "//components/mus/public/interfaces", | 552 "//components/mus/public/interfaces", |
553 "//content/public/common:mojo_bindings", | 553 "//content/public/common:mojo_bindings", |
554 "//mojo/shell/public/interfaces", | 554 "//mojo/shell/public/interfaces", |
555 "//skia/public/interfaces", | 555 "//skia/public/interfaces", |
556 "//ui/mojo/geometry:interfaces", | 556 "//ui/mojo/geometry:interfaces", |
557 ] | 557 ] |
558 } | 558 } |
OLD | NEW |