| 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/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 6 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
| 7 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
| 8 import("//build/config/linux/pkg_config.gni") | 9 import("//build/config/linux/pkg_config.gni") |
| 9 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| 10 import("//media/media_options.gni") | 11 import("//media/media_options.gni") |
| 11 import("//testing/test.gni") | 12 import("//testing/test.gni") |
| 12 | 13 |
| 14 buildflag_header("media_features") { |
| 15 header = "media_features.h" |
| 16 |
| 17 flags = |
| 18 [ "ENABLE_MSE_MPEG2TS_STREAM_PARSER=$enable_mse_mpeg2ts_stream_parser" ] |
| 19 } |
| 20 |
| 13 # Common configuration for targets in the media directory. | 21 # Common configuration for targets in the media directory. |
| 14 # NOT for exporting. | 22 # NOT for exporting. |
| 15 config("media_config") { | 23 config("media_config") { |
| 16 defines = [] | 24 defines = [] |
| 17 if (!media_use_libvpx) { | 25 if (!media_use_libvpx) { |
| 18 defines += [ "MEDIA_DISABLE_LIBVPX" ] | 26 defines += [ "MEDIA_DISABLE_LIBVPX" ] |
| 19 } | 27 } |
| 20 if (!media_use_ffmpeg) { | 28 if (!media_use_ffmpeg) { |
| 21 defines += [ "MEDIA_DISABLE_FFMPEG" ] | 29 defines += [ "MEDIA_DISABLE_FFMPEG" ] |
| 22 } | 30 } |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 "mfuuid.lib", | 480 "mfuuid.lib", |
| 473 ] | 481 ] |
| 474 } | 482 } |
| 475 | 483 |
| 476 if (proprietary_codecs) { | 484 if (proprietary_codecs) { |
| 477 sources += [ | 485 sources += [ |
| 478 "cdm/cenc_utils.cc", | 486 "cdm/cenc_utils.cc", |
| 479 "cdm/cenc_utils.h", | 487 "cdm/cenc_utils.h", |
| 480 "filters/h264_to_annex_b_bitstream_converter.cc", | 488 "filters/h264_to_annex_b_bitstream_converter.cc", |
| 481 "filters/h264_to_annex_b_bitstream_converter.h", | 489 "filters/h264_to_annex_b_bitstream_converter.h", |
| 482 "formats/mp2t/es_adapter_video.cc", | |
| 483 "formats/mp2t/es_adapter_video.h", | |
| 484 "formats/mp2t/es_parser.cc", | |
| 485 "formats/mp2t/es_parser.h", | |
| 486 "formats/mp2t/es_parser_adts.cc", | |
| 487 "formats/mp2t/es_parser_adts.h", | |
| 488 "formats/mp2t/es_parser_h264.cc", | |
| 489 "formats/mp2t/es_parser_h264.h", | |
| 490 "formats/mp2t/es_parser_mpeg1audio.cc", | |
| 491 "formats/mp2t/es_parser_mpeg1audio.h", | |
| 492 "formats/mp2t/mp2t_common.h", | |
| 493 "formats/mp2t/mp2t_stream_parser.cc", | |
| 494 "formats/mp2t/mp2t_stream_parser.h", | |
| 495 "formats/mp2t/timestamp_unroller.cc", | |
| 496 "formats/mp2t/timestamp_unroller.h", | |
| 497 "formats/mp2t/ts_packet.cc", | |
| 498 "formats/mp2t/ts_packet.h", | |
| 499 "formats/mp2t/ts_section.h", | |
| 500 "formats/mp2t/ts_section_pat.cc", | |
| 501 "formats/mp2t/ts_section_pat.h", | |
| 502 "formats/mp2t/ts_section_pes.cc", | |
| 503 "formats/mp2t/ts_section_pes.h", | |
| 504 "formats/mp2t/ts_section_pmt.cc", | |
| 505 "formats/mp2t/ts_section_pmt.h", | |
| 506 "formats/mp2t/ts_section_psi.cc", | |
| 507 "formats/mp2t/ts_section_psi.h", | |
| 508 "formats/mp4/aac.cc", | 490 "formats/mp4/aac.cc", |
| 509 "formats/mp4/aac.h", | 491 "formats/mp4/aac.h", |
| 510 "formats/mp4/avc.cc", | 492 "formats/mp4/avc.cc", |
| 511 "formats/mp4/avc.h", | 493 "formats/mp4/avc.h", |
| 512 "formats/mp4/bitstream_converter.cc", | 494 "formats/mp4/bitstream_converter.cc", |
| 513 "formats/mp4/bitstream_converter.h", | 495 "formats/mp4/bitstream_converter.h", |
| 514 "formats/mp4/box_definitions.cc", | 496 "formats/mp4/box_definitions.cc", |
| 515 "formats/mp4/box_definitions.h", | 497 "formats/mp4/box_definitions.h", |
| 516 "formats/mp4/box_reader.cc", | 498 "formats/mp4/box_reader.cc", |
| 517 "formats/mp4/box_reader.h", | 499 "formats/mp4/box_reader.h", |
| 518 "formats/mp4/cenc.cc", | 500 "formats/mp4/cenc.cc", |
| 519 "formats/mp4/cenc.h", | 501 "formats/mp4/cenc.h", |
| 520 "formats/mp4/es_descriptor.cc", | 502 "formats/mp4/es_descriptor.cc", |
| 521 "formats/mp4/es_descriptor.h", | 503 "formats/mp4/es_descriptor.h", |
| 522 "formats/mp4/mp4_stream_parser.cc", | 504 "formats/mp4/mp4_stream_parser.cc", |
| 523 "formats/mp4/mp4_stream_parser.h", | 505 "formats/mp4/mp4_stream_parser.h", |
| 524 "formats/mp4/sample_to_group_iterator.cc", | 506 "formats/mp4/sample_to_group_iterator.cc", |
| 525 "formats/mp4/sample_to_group_iterator.h", | 507 "formats/mp4/sample_to_group_iterator.h", |
| 526 "formats/mp4/track_run_iterator.cc", | 508 "formats/mp4/track_run_iterator.cc", |
| 527 "formats/mp4/track_run_iterator.h", | 509 "formats/mp4/track_run_iterator.h", |
| 528 "formats/mpeg/adts_constants.cc", | 510 "formats/mpeg/adts_constants.cc", |
| 529 "formats/mpeg/adts_constants.h", | 511 "formats/mpeg/adts_constants.h", |
| 530 "formats/mpeg/adts_stream_parser.cc", | 512 "formats/mpeg/adts_stream_parser.cc", |
| 531 "formats/mpeg/adts_stream_parser.h", | 513 "formats/mpeg/adts_stream_parser.h", |
| 532 "formats/mpeg/mpeg1_audio_stream_parser.cc", | 514 "formats/mpeg/mpeg1_audio_stream_parser.cc", |
| 533 "formats/mpeg/mpeg1_audio_stream_parser.h", | 515 "formats/mpeg/mpeg1_audio_stream_parser.h", |
| 534 "formats/mpeg/mpeg_audio_stream_parser_base.cc", | 516 "formats/mpeg/mpeg_audio_stream_parser_base.cc", |
| 535 "formats/mpeg/mpeg_audio_stream_parser_base.h", | 517 "formats/mpeg/mpeg_audio_stream_parser_base.h", |
| 536 ] | 518 ] |
| 519 if (enable_mse_mpeg2ts_stream_parser) { |
| 520 sources += [ |
| 521 "formats/mp2t/es_adapter_video.cc", |
| 522 "formats/mp2t/es_adapter_video.h", |
| 523 "formats/mp2t/es_parser.cc", |
| 524 "formats/mp2t/es_parser.h", |
| 525 "formats/mp2t/es_parser_adts.cc", |
| 526 "formats/mp2t/es_parser_adts.h", |
| 527 "formats/mp2t/es_parser_h264.cc", |
| 528 "formats/mp2t/es_parser_h264.h", |
| 529 "formats/mp2t/es_parser_mpeg1audio.cc", |
| 530 "formats/mp2t/es_parser_mpeg1audio.h", |
| 531 "formats/mp2t/mp2t_common.h", |
| 532 "formats/mp2t/mp2t_stream_parser.cc", |
| 533 "formats/mp2t/mp2t_stream_parser.h", |
| 534 "formats/mp2t/timestamp_unroller.cc", |
| 535 "formats/mp2t/timestamp_unroller.h", |
| 536 "formats/mp2t/ts_packet.cc", |
| 537 "formats/mp2t/ts_packet.h", |
| 538 "formats/mp2t/ts_section.h", |
| 539 "formats/mp2t/ts_section_pat.cc", |
| 540 "formats/mp2t/ts_section_pat.h", |
| 541 "formats/mp2t/ts_section_pes.cc", |
| 542 "formats/mp2t/ts_section_pes.h", |
| 543 "formats/mp2t/ts_section_pmt.cc", |
| 544 "formats/mp2t/ts_section_pmt.h", |
| 545 "formats/mp2t/ts_section_psi.cc", |
| 546 "formats/mp2t/ts_section_psi.h", |
| 547 ] |
| 548 } |
| 537 } | 549 } |
| 538 | 550 |
| 539 if (use_low_memory_buffer) { | 551 if (use_low_memory_buffer) { |
| 540 sources += [ | 552 sources += [ |
| 541 "filters/source_buffer_platform.h", | 553 "filters/source_buffer_platform.h", |
| 542 "filters/source_buffer_platform_lowmem.cc", | 554 "filters/source_buffer_platform_lowmem.cc", |
| 543 ] | 555 ] |
| 544 } else { | 556 } else { |
| 545 sources += [ | 557 sources += [ |
| 546 "filters/source_buffer_platform.cc", | 558 "filters/source_buffer_platform.cc", |
| 547 "filters/source_buffer_platform.h", | 559 "filters/source_buffer_platform.h", |
| 548 ] | 560 ] |
| 549 } | 561 } |
| 550 | 562 |
| 551 public_deps = [ | 563 public_deps = [ |
| 564 ":media_features", |
| 552 ":shared_memory_support", | 565 ":shared_memory_support", |
| 553 "//media/audio", | 566 "//media/audio", |
| 554 "//media/base", | 567 "//media/base", |
| 555 "//third_party/opus", | 568 "//third_party/opus", |
| 556 ] | 569 ] |
| 557 | 570 |
| 558 deps += [ | 571 deps += [ |
| 559 "//base", | 572 "//base", |
| 560 "//base:i18n", | 573 "//base:i18n", |
| 561 "//base/third_party/dynamic_annotations", | 574 "//base/third_party/dynamic_annotations", |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 if (current_cpu != "arm" && is_chromeos) { | 751 if (current_cpu != "arm" && is_chromeos) { |
| 739 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] | 752 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] |
| 740 } | 753 } |
| 741 | 754 |
| 742 if (proprietary_codecs) { | 755 if (proprietary_codecs) { |
| 743 sources += [ | 756 sources += [ |
| 744 "cdm/cenc_utils_unittest.cc", | 757 "cdm/cenc_utils_unittest.cc", |
| 745 "filters/h264_to_annex_b_bitstream_converter_unittest.cc", | 758 "filters/h264_to_annex_b_bitstream_converter_unittest.cc", |
| 746 "formats/common/stream_parser_test_base.cc", | 759 "formats/common/stream_parser_test_base.cc", |
| 747 "formats/common/stream_parser_test_base.h", | 760 "formats/common/stream_parser_test_base.h", |
| 748 "formats/mp2t/es_adapter_video_unittest.cc", | |
| 749 "formats/mp2t/es_parser_adts_unittest.cc", | |
| 750 "formats/mp2t/es_parser_h264_unittest.cc", | |
| 751 "formats/mp2t/es_parser_mpeg1audio_unittest.cc", | |
| 752 "formats/mp2t/es_parser_test_base.cc", | |
| 753 "formats/mp2t/es_parser_test_base.h", | |
| 754 "formats/mp2t/mp2t_stream_parser_unittest.cc", | |
| 755 "formats/mp2t/timestamp_unroller_unittest.cc", | |
| 756 "formats/mp4/aac_unittest.cc", | 761 "formats/mp4/aac_unittest.cc", |
| 757 "formats/mp4/avc_unittest.cc", | 762 "formats/mp4/avc_unittest.cc", |
| 758 "formats/mp4/box_reader_unittest.cc", | 763 "formats/mp4/box_reader_unittest.cc", |
| 759 "formats/mp4/es_descriptor_unittest.cc", | 764 "formats/mp4/es_descriptor_unittest.cc", |
| 760 "formats/mp4/mp4_stream_parser_unittest.cc", | 765 "formats/mp4/mp4_stream_parser_unittest.cc", |
| 761 "formats/mp4/sample_to_group_iterator_unittest.cc", | 766 "formats/mp4/sample_to_group_iterator_unittest.cc", |
| 762 "formats/mp4/track_run_iterator_unittest.cc", | 767 "formats/mp4/track_run_iterator_unittest.cc", |
| 763 "formats/mpeg/adts_stream_parser_unittest.cc", | 768 "formats/mpeg/adts_stream_parser_unittest.cc", |
| 764 "formats/mpeg/mpeg1_audio_stream_parser_unittest.cc", | 769 "formats/mpeg/mpeg1_audio_stream_parser_unittest.cc", |
| 765 ] | 770 ] |
| 771 if (enable_mse_mpeg2ts_stream_parser) { |
| 772 sources += [ |
| 773 "formats/mp2t/es_adapter_video_unittest.cc", |
| 774 "formats/mp2t/es_parser_adts_unittest.cc", |
| 775 "formats/mp2t/es_parser_h264_unittest.cc", |
| 776 "formats/mp2t/es_parser_mpeg1audio_unittest.cc", |
| 777 "formats/mp2t/es_parser_test_base.cc", |
| 778 "formats/mp2t/es_parser_test_base.h", |
| 779 "formats/mp2t/mp2t_stream_parser_unittest.cc", |
| 780 "formats/mp2t/timestamp_unroller_unittest.cc", |
| 781 ] |
| 782 } |
| 766 if (media_use_ffmpeg) { | 783 if (media_use_ffmpeg) { |
| 767 sources += [ | 784 sources += [ |
| 768 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", | 785 "filters/ffmpeg_aac_bitstream_converter_unittest.cc", |
| 769 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", | 786 "filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc", |
| 770 ] | 787 ] |
| 771 } | 788 } |
| 772 if (enable_hevc_demuxing) { | 789 if (enable_hevc_demuxing) { |
| 773 sources += [ "filters/h265_parser_unittest.cc" ] | 790 sources += [ "filters/h265_parser_unittest.cc" ] |
| 774 } | 791 } |
| 775 } | 792 } |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 "//media/base:test_support", | 926 "//media/base:test_support", |
| 910 "//media/test:pipeline_integration_tests", | 927 "//media/test:pipeline_integration_tests", |
| 911 "//testing/gmock", | 928 "//testing/gmock", |
| 912 "//testing/gtest", | 929 "//testing/gtest", |
| 913 "//third_party/ffmpeg", | 930 "//third_party/ffmpeg", |
| 914 "//ui/gfx:test_support", | 931 "//ui/gfx:test_support", |
| 915 "//ui/gfx/geometry", | 932 "//ui/gfx/geometry", |
| 916 ] | 933 ] |
| 917 } | 934 } |
| 918 } | 935 } |
| OLD | NEW |