Chromium Code Reviews| 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
| 8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
| 9 import("//build/config/linux/pkg_config.gni") | 9 import("//build/config/linux/pkg_config.gni") |
| 10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 370 | 370 |
| 371 if (media_use_libvpx) { | 371 if (media_use_libvpx) { |
| 372 sources += [ | 372 sources += [ |
| 373 "filters/vpx_video_decoder.cc", | 373 "filters/vpx_video_decoder.cc", |
| 374 "filters/vpx_video_decoder.h", | 374 "filters/vpx_video_decoder.h", |
| 375 ] | 375 ] |
| 376 deps += [ "//third_party/libvpx" ] | 376 deps += [ "//third_party/libvpx" ] |
| 377 } | 377 } |
| 378 | 378 |
| 379 if (disable_ffmpeg_video_decoders) { | 379 if (disable_ffmpeg_video_decoders) { |
| 380 sources -= [ | 380 sources -= [ |
| 381 "filters/decrypting_video_decoder.cc", | 381 "filters/decrypting_video_decoder.cc", |
| 382 "filters/decrypting_video_decoder.h", | 382 "filters/decrypting_video_decoder.h", |
| 383 ] | 383 ] |
| 384 } | 384 } |
| 385 | 385 |
| 386 if (is_android) { | 386 if (is_android) { |
| 387 sources -= [ | 387 sources -= [ |
| 388 "filters/decrypting_audio_decoder.cc", | 388 "filters/decrypting_audio_decoder.cc", |
| 389 "filters/decrypting_audio_decoder.h", | 389 "filters/decrypting_audio_decoder.h", |
| 390 ] | 390 ] |
| 391 sources += [ | 391 sources += [ |
| 392 "filters/android/media_codec_audio_decoder.cc", | 392 "filters/android/media_codec_audio_decoder.cc", |
| 393 "filters/android/media_codec_audio_decoder.h", | 393 "filters/android/media_codec_audio_decoder.h", |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 509 | 509 |
| 510 if (use_udev) { | 510 if (use_udev) { |
| 511 deps += [ "//device/udev_linux" ] | 511 deps += [ "//device/udev_linux" ] |
| 512 sources += [ | 512 sources += [ |
| 513 "device_monitors/device_monitor_udev.cc", | 513 "device_monitors/device_monitor_udev.cc", |
| 514 "device_monitors/device_monitor_udev.h", | 514 "device_monitors/device_monitor_udev.h", |
| 515 ] | 515 ] |
| 516 } | 516 } |
| 517 } | 517 } |
| 518 | 518 |
| 519 # Must not be a source_set() because CdmManager exposes a static singleton, | |
| 520 # shared by multiple component()s. | |
| 521 component("cdm_manager") { | |
| 522 # Because we share :media_implementation, no other targets depending on | |
| 523 # :media_implementation can depend on us. To fix that, create a separate | |
| 524 # cdm_manager_export.h, with its own independent config. | |
|
xhwang
2017/05/04 21:06:31
But we are already depending on ":media" which als
sandersd (OOO until July 31)
2017/05/04 21:17:47
Done.
| |
| 525 visibility = [ | |
| 526 "//media/gpu", | |
| 527 "//media/mojo/services:lib", | |
| 528 ] | |
| 529 sources = [ | |
| 530 "cdm/cdm_manager.cc", | |
| 531 "cdm/cdm_manager.h", | |
| 532 ] | |
| 533 configs += [ ":media_implementation" ] | |
| 534 deps = [ | |
| 535 ":media", | |
| 536 "//base", | |
| 537 ] | |
| 538 } | |
| 539 | |
| 519 static_library("cdm_paths") { | 540 static_library("cdm_paths") { |
| 520 sources = [ | 541 sources = [ |
| 521 "cdm/cdm_paths.cc", | 542 "cdm/cdm_paths.cc", |
| 522 "cdm/cdm_paths.h", | 543 "cdm/cdm_paths.h", |
| 523 ] | 544 ] |
| 524 deps = [ | 545 deps = [ |
| 525 "//base", | 546 "//base", |
| 526 ] | 547 ] |
| 527 } | 548 } |
| 528 | 549 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 652 ] | 673 ] |
| 653 | 674 |
| 654 deps += [ | 675 deps += [ |
| 655 "//media/ffmpeg:ffmpeg_unittests", | 676 "//media/ffmpeg:ffmpeg_unittests", |
| 656 | 677 |
| 657 # Direct dependency needed for the config | 678 # Direct dependency needed for the config |
| 658 "//third_party/opus", | 679 "//third_party/opus", |
| 659 ] | 680 ] |
| 660 | 681 |
| 661 if (!disable_ffmpeg_video_decoders) { | 682 if (!disable_ffmpeg_video_decoders) { |
| 662 sources += [ | 683 sources += [ "filters/ffmpeg_video_decoder_unittest.cc" ] |
| 663 "filters/ffmpeg_video_decoder_unittest.cc", | |
| 664 ] | |
| 665 } | 684 } |
| 666 } | 685 } |
| 667 | 686 |
| 668 if (current_cpu != "arm" && is_chromeos) { | 687 if (current_cpu != "arm" && is_chromeos) { |
| 669 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] | 688 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] |
| 670 } | 689 } |
| 671 | 690 |
| 672 if (proprietary_codecs) { | 691 if (proprietary_codecs) { |
| 673 sources += [ | 692 sources += [ |
| 674 "cdm/cenc_utils_unittest.cc", | 693 "cdm/cenc_utils_unittest.cc", |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 977 fuzzer_test("media_mp4_avcc_parser_fuzzer") { | 996 fuzzer_test("media_mp4_avcc_parser_fuzzer") { |
| 978 sources = [ | 997 sources = [ |
| 979 "formats/mp4/mp4_avcc_parser_fuzzer.cc", | 998 "formats/mp4/mp4_avcc_parser_fuzzer.cc", |
| 980 ] | 999 ] |
| 981 deps = [ | 1000 deps = [ |
| 982 ":media", | 1001 ":media", |
| 983 "//base", | 1002 "//base", |
| 984 ] | 1003 ] |
| 985 } | 1004 } |
| 986 } | 1005 } |
| OLD | NEW |