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 static_library("cdm_manager") { | |
|
xhwang
2017/05/04 01:41:41
In a component build this will still cause multipl
sandersd (OOO until July 31)
2017/05/04 19:56:11
Done.
| |
| 522 sources = [ | |
| 523 "cdm/cdm_manager.cc", | |
| 524 "cdm/cdm_manager.h", | |
| 525 ] | |
| 526 deps = [ | |
| 527 ":media", | |
| 528 "//base", | |
| 529 ] | |
| 530 } | |
| 531 | |
| 519 static_library("cdm_paths") { | 532 static_library("cdm_paths") { |
| 520 sources = [ | 533 sources = [ |
| 521 "cdm/cdm_paths.cc", | 534 "cdm/cdm_paths.cc", |
| 522 "cdm/cdm_paths.h", | 535 "cdm/cdm_paths.h", |
| 523 ] | 536 ] |
| 524 deps = [ | 537 deps = [ |
| 525 "//base", | 538 "//base", |
| 526 ] | 539 ] |
| 527 } | 540 } |
| 528 | 541 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 652 ] | 665 ] |
| 653 | 666 |
| 654 deps += [ | 667 deps += [ |
| 655 "//media/ffmpeg:ffmpeg_unittests", | 668 "//media/ffmpeg:ffmpeg_unittests", |
| 656 | 669 |
| 657 # Direct dependency needed for the config | 670 # Direct dependency needed for the config |
| 658 "//third_party/opus", | 671 "//third_party/opus", |
| 659 ] | 672 ] |
| 660 | 673 |
| 661 if (!disable_ffmpeg_video_decoders) { | 674 if (!disable_ffmpeg_video_decoders) { |
| 662 sources += [ | 675 sources += [ "filters/ffmpeg_video_decoder_unittest.cc" ] |
| 663 "filters/ffmpeg_video_decoder_unittest.cc", | |
| 664 ] | |
| 665 } | 676 } |
| 666 } | 677 } |
| 667 | 678 |
| 668 if (current_cpu != "arm" && is_chromeos) { | 679 if (current_cpu != "arm" && is_chromeos) { |
| 669 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] | 680 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] |
| 670 } | 681 } |
| 671 | 682 |
| 672 if (proprietary_codecs) { | 683 if (proprietary_codecs) { |
| 673 sources += [ | 684 sources += [ |
| 674 "cdm/cenc_utils_unittest.cc", | 685 "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") { | 988 fuzzer_test("media_mp4_avcc_parser_fuzzer") { |
| 978 sources = [ | 989 sources = [ |
| 979 "formats/mp4/mp4_avcc_parser_fuzzer.cc", | 990 "formats/mp4/mp4_avcc_parser_fuzzer.cc", |
| 980 ] | 991 ] |
| 981 deps = [ | 992 deps = [ |
| 982 ":media", | 993 ":media", |
| 983 "//base", | 994 "//base", |
| 984 ] | 995 ] |
| 985 } | 996 } |
| 986 } | 997 } |
| OLD | NEW |