| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 "cdm/cdm_helpers.h", | 91 "cdm/cdm_helpers.h", |
| 92 "cdm/cdm_wrapper.h", | 92 "cdm/cdm_wrapper.h", |
| 93 "cdm/default_cdm_factory.cc", | 93 "cdm/default_cdm_factory.cc", |
| 94 "cdm/default_cdm_factory.h", | 94 "cdm/default_cdm_factory.h", |
| 95 "cdm/json_web_key.cc", | 95 "cdm/json_web_key.cc", |
| 96 "cdm/json_web_key.h", | 96 "cdm/json_web_key.h", |
| 97 "cdm/player_tracker_impl.cc", | 97 "cdm/player_tracker_impl.cc", |
| 98 "cdm/player_tracker_impl.h", | 98 "cdm/player_tracker_impl.h", |
| 99 "cdm/supported_cdm_versions.cc", | 99 "cdm/supported_cdm_versions.cc", |
| 100 "cdm/supported_cdm_versions.h", | 100 "cdm/supported_cdm_versions.h", |
| 101 "ffmpeg/ffmpeg_deleters.h", | |
| 102 "filters/audio_clock.cc", | 101 "filters/audio_clock.cc", |
| 103 "filters/audio_clock.h", | 102 "filters/audio_clock.h", |
| 104 "filters/audio_renderer_algorithm.cc", | 103 "filters/audio_renderer_algorithm.cc", |
| 105 "filters/audio_renderer_algorithm.h", | 104 "filters/audio_renderer_algorithm.h", |
| 106 "filters/chunk_demuxer.cc", | 105 "filters/chunk_demuxer.cc", |
| 107 "filters/chunk_demuxer.h", | 106 "filters/chunk_demuxer.h", |
| 108 "filters/context_3d.h", | 107 "filters/context_3d.h", |
| 109 "filters/decoder_selector.cc", | 108 "filters/decoder_selector.cc", |
| 110 "filters/decoder_selector.h", | 109 "filters/decoder_selector.h", |
| 111 "filters/decoder_stream.cc", | 110 "filters/decoder_stream.cc", |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 defines = [] | 236 defines = [] |
| 238 deps = [ | 237 deps = [ |
| 239 ":cdm_api", | 238 ":cdm_api", |
| 240 ] | 239 ] |
| 241 | 240 |
| 242 public_configs = [ "//third_party/libwebm:libwebm_config" ] | 241 public_configs = [ "//third_party/libwebm:libwebm_config" ] |
| 243 public_deps = [] | 242 public_deps = [] |
| 244 | 243 |
| 245 include_dirs = [ "." ] | 244 include_dirs = [ "." ] |
| 246 if (media_use_ffmpeg) { | 245 if (media_use_ffmpeg) { |
| 246 public_deps += [ "//media/ffmpeg" ] |
| 247 deps += [ "//third_party/ffmpeg" ] | 247 deps += [ "//third_party/ffmpeg" ] |
| 248 sources += [ | 248 sources += [ |
| 249 "ffmpeg/ffmpeg_common.cc", | |
| 250 "ffmpeg/ffmpeg_common.h", | |
| 251 "filters/audio_file_reader.cc", | 249 "filters/audio_file_reader.cc", |
| 252 "filters/audio_file_reader.h", | 250 "filters/audio_file_reader.h", |
| 253 "filters/blocking_url_protocol.cc", | 251 "filters/blocking_url_protocol.cc", |
| 254 "filters/blocking_url_protocol.h", | 252 "filters/blocking_url_protocol.h", |
| 255 "filters/ffmpeg_audio_decoder.cc", | 253 "filters/ffmpeg_audio_decoder.cc", |
| 256 "filters/ffmpeg_audio_decoder.h", | 254 "filters/ffmpeg_audio_decoder.h", |
| 257 "filters/ffmpeg_bitstream_converter.h", | 255 "filters/ffmpeg_bitstream_converter.h", |
| 258 "filters/ffmpeg_demuxer.cc", | 256 "filters/ffmpeg_demuxer.cc", |
| 259 "filters/ffmpeg_demuxer.h", | 257 "filters/ffmpeg_demuxer.h", |
| 260 "filters/ffmpeg_glue.cc", | 258 "filters/ffmpeg_glue.cc", |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 | 557 |
| 560 data = [ | 558 data = [ |
| 561 "test/data/", | 559 "test/data/", |
| 562 ] | 560 ] |
| 563 | 561 |
| 564 # TODO(wolenetz): Fix size_t to int truncation in win64. | 562 # TODO(wolenetz): Fix size_t to int truncation in win64. |
| 565 # See http://crbug.com/171009 | 563 # See http://crbug.com/171009 |
| 566 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 564 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 567 | 565 |
| 568 deps = [ | 566 deps = [ |
| 567 ":cdm_api", |
| 569 ":media", | 568 ":media", |
| 570 ":test_support", | 569 ":test_support", |
| 571 "//base/test:test_support", | 570 "//base/test:test_support", |
| 572 "//gpu:test_support", | 571 "//gpu:test_support", |
| 573 "//gpu/command_buffer/common", | 572 "//gpu/command_buffer/common", |
| 574 "//media/audio:test_support", | 573 "//media/audio:test_support", |
| 575 "//media/audio:unittests", | 574 "//media/audio:unittests", |
| 576 "//media/base:test_support", | 575 "//media/base:test_support", |
| 577 "//media/base:unittests", | 576 "//media/base:unittests", |
| 578 "//media/capture:unittests", | 577 "//media/capture:unittests", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 602 ] | 601 ] |
| 603 } | 602 } |
| 604 | 603 |
| 605 # If ExternalClearKey is built, we can test CdmAdapter. | 604 # If ExternalClearKey is built, we can test CdmAdapter. |
| 606 if (enable_pepper_cdms) { | 605 if (enable_pepper_cdms) { |
| 607 sources += [ "cdm/cdm_adapter_unittest.cc" ] | 606 sources += [ "cdm/cdm_adapter_unittest.cc" ] |
| 608 data_deps += [ "//media/cdm/ppapi:clearkeycdm" ] | 607 data_deps += [ "//media/cdm/ppapi:clearkeycdm" ] |
| 609 } | 608 } |
| 610 | 609 |
| 611 if (media_use_ffmpeg) { | 610 if (media_use_ffmpeg) { |
| 611 deps += [ "//media/ffmpeg:ffmpeg_unittests" ] |
| 612 sources += [ | 612 sources += [ |
| 613 "ffmpeg/ffmpeg_common_unittest.cc", | |
| 614 "filters/audio_decoder_unittest.cc", | 613 "filters/audio_decoder_unittest.cc", |
| 615 "filters/audio_file_reader_unittest.cc", | 614 "filters/audio_file_reader_unittest.cc", |
| 616 "filters/blocking_url_protocol_unittest.cc", | 615 "filters/blocking_url_protocol_unittest.cc", |
| 617 "filters/ffmpeg_demuxer_unittest.cc", | 616 "filters/ffmpeg_demuxer_unittest.cc", |
| 618 "filters/ffmpeg_glue_unittest.cc", | 617 "filters/ffmpeg_glue_unittest.cc", |
| 619 "filters/in_memory_url_protocol_unittest.cc", | 618 "filters/in_memory_url_protocol_unittest.cc", |
| 620 ] | 619 ] |
| 621 | 620 |
| 622 if (!is_android) { | 621 if (!is_android) { |
| 623 sources += [ | 622 sources += [ |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 # For running the subset of media_unittests that might require audio hardware | 713 # For running the subset of media_unittests that might require audio hardware |
| 715 # separately on GPU bots. media_unittests includes these too. | 714 # separately on GPU bots. media_unittests includes these too. |
| 716 test("audio_unittests") { | 715 test("audio_unittests") { |
| 717 sources = [ | 716 sources = [ |
| 718 "base/run_all_unittests.cc", | 717 "base/run_all_unittests.cc", |
| 719 ] | 718 ] |
| 720 deps = [ | 719 deps = [ |
| 721 ":test_support", | 720 ":test_support", |
| 722 "//base/test:test_support", | 721 "//base/test:test_support", |
| 723 "//media/audio:unittests", | 722 "//media/audio:unittests", |
| 723 "//media/base:test_support", |
| 724 "//ui/gfx:test_support", | 724 "//ui/gfx:test_support", |
| 725 ] | 725 ] |
| 726 } | 726 } |
| 727 | 727 |
| 728 source_set("test_support") { | 728 source_set("test_support") { |
| 729 testonly = true | 729 testonly = true |
| 730 sources = [ | 730 sources = [ |
| 731 "renderers/mock_gpu_memory_buffer_video_frame_pool.cc", | 731 "renderers/mock_gpu_memory_buffer_video_frame_pool.cc", |
| 732 "renderers/mock_gpu_memory_buffer_video_frame_pool.h", | 732 "renderers/mock_gpu_memory_buffer_video_frame_pool.h", |
| 733 "renderers/mock_gpu_video_accelerator_factories.cc", | 733 "renderers/mock_gpu_video_accelerator_factories.cc", |
| 734 "renderers/mock_gpu_video_accelerator_factories.h", | 734 "renderers/mock_gpu_video_accelerator_factories.h", |
| 735 "video/mock_video_decode_accelerator.cc", | 735 "video/mock_video_decode_accelerator.cc", |
| 736 "video/mock_video_decode_accelerator.h", | 736 "video/mock_video_decode_accelerator.h", |
| 737 ] | 737 ] |
| 738 public_deps = [ | 738 public_deps = [ |
| 739 ":media", | 739 ":media", |
| 740 ":shared_memory_support", | 740 ":shared_memory_support", |
| 741 ] | 741 ] |
| 742 deps = [ | 742 deps = [ |
| 743 "//base", | 743 "//base", |
| 744 "//skia", | 744 "//skia", |
| 745 "//testing/gmock", | 745 "//testing/gmock", |
| 746 "//testing/gtest", | 746 "//testing/gtest", |
| 747 "//ui/gfx", |
| 747 ] | 748 ] |
| 748 } | 749 } |
| 749 | 750 |
| 750 # TODO(jrummell): This should be renamed and moved to media/base/BUILD.gn. | 751 # TODO(jrummell): This should be renamed and moved to media/base/BUILD.gn. |
| 751 component("shared_memory_support") { | 752 component("shared_memory_support") { |
| 752 sources = [ | 753 sources = [ |
| 753 "base/audio_bus.cc", | 754 "base/audio_bus.cc", |
| 754 "base/audio_bus.h", | 755 "base/audio_bus.h", |
| 755 "base/audio_parameters.cc", | 756 "base/audio_parameters.cc", |
| 756 "base/audio_parameters.h", | 757 "base/audio_parameters.h", |
| 757 "base/audio_point.cc", | 758 "base/audio_point.cc", |
| 758 "base/audio_point.h", | 759 "base/audio_point.h", |
| 759 "base/channel_layout.cc", | 760 "base/channel_layout.cc", |
| 760 "base/channel_layout.h", | 761 "base/channel_layout.h", |
| 761 "base/limits.h", | 762 "base/limits.h", |
| 762 "base/media_export.h", | 763 "base/media_export.h", |
| 763 "base/vector_math.cc", | 764 "base/vector_math.cc", |
| 764 "base/vector_math.h", | 765 "base/vector_math.h", |
| 766 "base/vector_math_testing.h", |
| 765 ] | 767 ] |
| 766 configs += [ | 768 configs += [ |
| 767 ":media_config", | 769 ":media_config", |
| 768 ":media_implementation", | 770 ":media_implementation", |
| 769 ] | 771 ] |
| 770 deps = [ | 772 deps = [ |
| 771 "//base", | 773 "//base", |
| 772 "//ui/gfx/geometry", | 774 "//ui/gfx/geometry", |
| 773 ] | 775 ] |
| 774 } | 776 } |
| 775 | 777 |
| 776 # TODO(watk): Refactor tests that could be made to run on Android. See | 778 # TODO(watk): Refactor tests that could be made to run on Android. See |
| 777 # http://crbug.com/570762 | 779 # http://crbug.com/570762 |
| 778 if (media_use_ffmpeg && !is_android) { | 780 if (media_use_ffmpeg && !is_android) { |
| 779 test("ffmpeg_regression_tests") { | 781 test("ffmpeg_regression_tests") { |
| 780 sources = [ | 782 sources = [ |
| 781 "base/run_all_unittests.cc", | 783 "base/run_all_unittests.cc", |
| 782 "ffmpeg/ffmpeg_regression_tests.cc", | |
| 783 ] | 784 ] |
| 784 | 785 |
| 785 configs += [ "//media:media_config" ] | 786 configs += [ "//media:media_config" ] |
| 786 | 787 |
| 787 deps = [ | 788 deps = [ |
| 788 "//base/test:test_support", | 789 "//base/test:test_support", |
| 789 "//media", | 790 "//media", |
| 790 "//media:test_support", | 791 "//media:test_support", |
| 791 "//media/audio:test_support", | 792 "//media/audio:test_support", |
| 792 "//media/base:test_support", | 793 "//media/base:test_support", |
| 794 "//media/ffmpeg:ffmpeg_regression_tests", |
| 793 "//media/test:pipeline_integration_tests", | 795 "//media/test:pipeline_integration_tests", |
| 794 "//testing/gmock", | 796 "//testing/gmock", |
| 795 "//testing/gtest", | 797 "//testing/gtest", |
| 796 "//third_party/ffmpeg", | |
| 797 "//ui/gfx:test_support", | 798 "//ui/gfx:test_support", |
| 798 "//ui/gfx/geometry", | 799 "//ui/gfx/geometry", |
| 799 ] | 800 ] |
| 800 } | 801 } |
| 801 } | 802 } |
| 802 | 803 |
| 803 if (proprietary_codecs) { | 804 if (proprietary_codecs) { |
| 804 fuzzer_test("media_cenc_utils_fuzzer") { | 805 fuzzer_test("media_cenc_utils_fuzzer") { |
| 805 sources = [ | 806 sources = [ |
| 806 "cdm/cenc_utils_fuzzertest.cc", | 807 "cdm/cenc_utils_fuzzertest.cc", |
| (...skipping 29 matching lines...) Expand all Loading... |
| 836 fuzzer_test("media_vp9_parser_fuzzer") { | 837 fuzzer_test("media_vp9_parser_fuzzer") { |
| 837 sources = [ | 838 sources = [ |
| 838 "filters/vp9_parser_fuzzertest.cc", | 839 "filters/vp9_parser_fuzzertest.cc", |
| 839 ] | 840 ] |
| 840 deps = [ | 841 deps = [ |
| 841 ":media", | 842 ":media", |
| 842 "//base", | 843 "//base", |
| 843 ] | 844 ] |
| 844 libfuzzer_options = [ "max_len = 400000" ] | 845 libfuzzer_options = [ "max_len = 400000" ] |
| 845 } | 846 } |
| OLD | NEW |