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/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/linux/pkg_config.gni") | 8 import("//build/config/linux/pkg_config.gni") |
9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") |
(...skipping 20 matching lines...) Expand all Loading... | |
31 if (!link_pulseaudio) { | 31 if (!link_pulseaudio) { |
32 defines += [ "DLOPEN_PULSEAUDIO" ] | 32 defines += [ "DLOPEN_PULSEAUDIO" ] |
33 } | 33 } |
34 } | 34 } |
35 if (use_cras) { | 35 if (use_cras) { |
36 defines += [ "USE_CRAS" ] | 36 defines += [ "USE_CRAS" ] |
37 } | 37 } |
38 if (proprietary_codecs && enable_hevc_demuxing) { | 38 if (proprietary_codecs && enable_hevc_demuxing) { |
39 defines += [ "ENABLE_HEVC_DEMUXING" ] | 39 defines += [ "ENABLE_HEVC_DEMUXING" ] |
40 } | 40 } |
41 if (proprietary_codecs && enable_hls_sample_aes) { | |
42 defines += [ "ENABLE_HLS_SAMPLE_AES" ] | |
43 } | |
41 } | 44 } |
42 | 45 |
43 config("media_implementation") { | 46 config("media_implementation") { |
44 defines = [ "MEDIA_IMPLEMENTATION" ] | 47 defines = [ "MEDIA_IMPLEMENTATION" ] |
45 } | 48 } |
46 | 49 |
47 config("media_dependent_config") { | 50 config("media_dependent_config") { |
48 defines = [] | 51 defines = [] |
49 if (!media_use_libvpx) { | 52 if (!media_use_libvpx) { |
50 defines += [ "MEDIA_DISABLE_LIBVPX" ] | 53 defines += [ "MEDIA_DISABLE_LIBVPX" ] |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
354 "formats/mp4/hevc.h", | 357 "formats/mp4/hevc.h", |
355 ] | 358 ] |
356 if (media_use_ffmpeg) { | 359 if (media_use_ffmpeg) { |
357 sources += [ | 360 sources += [ |
358 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.cc", | 361 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.cc", |
359 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.h", | 362 "filters/ffmpeg_h265_to_annex_b_bitstream_converter.h", |
360 ] | 363 ] |
361 } | 364 } |
362 } | 365 } |
363 | 366 |
367 if (proprietary_codecs && enable_hls_sample_aes) { | |
368 sources += [ | |
369 "formats/mp2t/ts_section_cat.cc", | |
370 "formats/mp2t/ts_section_cat.h", | |
371 "formats/mp2t/ts_section_cets_ecm.cc", | |
372 "formats/mp2t/ts_section_cets_ecm.h", | |
373 "formats/mp2t/ts_section_cets_pssh.cc", | |
374 "formats/mp2t/ts_section_cets_pssh.h", | |
375 ] | |
376 } | |
377 | |
364 if (current_cpu == "arm" && arm_use_neon) { | 378 if (current_cpu == "arm" && arm_use_neon) { |
365 defines += [ "USE_NEON" ] | 379 defines += [ "USE_NEON" ] |
366 } | 380 } |
367 | 381 |
368 if (media_use_libvpx) { | 382 if (media_use_libvpx) { |
369 sources += [ | 383 sources += [ |
370 "filters/vpx_video_decoder.cc", | 384 "filters/vpx_video_decoder.cc", |
371 "filters/vpx_video_decoder.h", | 385 "filters/vpx_video_decoder.h", |
372 ] | 386 ] |
373 deps += [ "//third_party/libvpx_new" ] | 387 deps += [ "//third_party/libvpx_new" ] |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
473 "mfuuid.lib", | 487 "mfuuid.lib", |
474 ] | 488 ] |
475 } | 489 } |
476 | 490 |
477 if (proprietary_codecs) { | 491 if (proprietary_codecs) { |
478 sources += [ | 492 sources += [ |
479 "cdm/cenc_utils.cc", | 493 "cdm/cenc_utils.cc", |
480 "cdm/cenc_utils.h", | 494 "cdm/cenc_utils.h", |
481 "filters/h264_to_annex_b_bitstream_converter.cc", | 495 "filters/h264_to_annex_b_bitstream_converter.cc", |
482 "filters/h264_to_annex_b_bitstream_converter.h", | 496 "filters/h264_to_annex_b_bitstream_converter.h", |
497 "formats/mp2t/descriptors.cc", | |
498 "formats/mp2t/descriptors.h", | |
483 "formats/mp2t/es_adapter_video.cc", | 499 "formats/mp2t/es_adapter_video.cc", |
484 "formats/mp2t/es_adapter_video.h", | 500 "formats/mp2t/es_adapter_video.h", |
485 "formats/mp2t/es_parser.cc", | 501 "formats/mp2t/es_parser.cc", |
486 "formats/mp2t/es_parser.h", | 502 "formats/mp2t/es_parser.h", |
487 "formats/mp2t/es_parser_adts.cc", | 503 "formats/mp2t/es_parser_adts.cc", |
488 "formats/mp2t/es_parser_adts.h", | 504 "formats/mp2t/es_parser_adts.h", |
489 "formats/mp2t/es_parser_h264.cc", | 505 "formats/mp2t/es_parser_h264.cc", |
490 "formats/mp2t/es_parser_h264.h", | 506 "formats/mp2t/es_parser_h264.h", |
491 "formats/mp2t/es_parser_mpeg1audio.cc", | 507 "formats/mp2t/es_parser_mpeg1audio.cc", |
492 "formats/mp2t/es_parser_mpeg1audio.h", | 508 "formats/mp2t/es_parser_mpeg1audio.h", |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
763 ] | 779 ] |
764 if (media_use_ffmpeg) { | 780 if (media_use_ffmpeg) { |
765 sources += [ | 781 sources += [ |
766 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", | 782 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", |
767 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", | 783 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", |
768 ] | 784 ] |
769 } | 785 } |
770 if (enable_hevc_demuxing) { | 786 if (enable_hevc_demuxing) { |
771 sources += [ "filters/h265_parser_unittest.cc" ] | 787 sources += [ "filters/h265_parser_unittest.cc" ] |
772 } | 788 } |
789 if (enable_hls_sample_aes) { | |
790 deps += [ "//third_party/boringssl" ] | |
ddorwin
2015/12/10 20:10:58
Is there a reason to use boringssl directly instea
dougsteed
2015/12/14 22:51:45
Yes. The code in //crypto doesn't support CBC mode
| |
791 } | |
773 } | 792 } |
774 | 793 |
775 if (is_mac || is_ios) { | 794 if (is_mac || is_ios) { |
776 deps += [ "//media/base/mac" ] | 795 deps += [ "//media/base/mac" ] |
777 } | 796 } |
778 | 797 |
779 if (is_mac) { | 798 if (is_mac) { |
780 sources += | 799 sources += |
781 [ "capture/video/mac/video_capture_device_factory_mac_unittest.mm" ] | 800 [ "capture/video/mac/video_capture_device_factory_mac_unittest.mm" ] |
782 } | 801 } |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
896 "//media/base:test_support", | 915 "//media/base:test_support", |
897 "//media/test:pipeline_integration_tests", | 916 "//media/test:pipeline_integration_tests", |
898 "//testing/gmock", | 917 "//testing/gmock", |
899 "//testing/gtest", | 918 "//testing/gtest", |
900 "//third_party/ffmpeg", | 919 "//third_party/ffmpeg", |
901 "//ui/gfx:test_support", | 920 "//ui/gfx:test_support", |
902 "//ui/gfx/geometry", | 921 "//ui/gfx/geometry", |
903 ] | 922 ] |
904 } | 923 } |
905 } | 924 } |
OLD | NEW |