| 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) { |
| 247 deps += [ "//third_party/ffmpeg" ] | 246 deps += [ |
| 247 "//media/ffmpeg", |
| 248 "//third_party/ffmpeg", |
| 249 ] |
| 248 sources += [ | 250 sources += [ |
| 249 "ffmpeg/ffmpeg_common.cc", | |
| 250 "ffmpeg/ffmpeg_common.h", | |
| 251 "filters/audio_file_reader.cc", | 251 "filters/audio_file_reader.cc", |
| 252 "filters/audio_file_reader.h", | 252 "filters/audio_file_reader.h", |
| 253 "filters/blocking_url_protocol.cc", | 253 "filters/blocking_url_protocol.cc", |
| 254 "filters/blocking_url_protocol.h", | 254 "filters/blocking_url_protocol.h", |
| 255 "filters/ffmpeg_audio_decoder.cc", | 255 "filters/ffmpeg_audio_decoder.cc", |
| 256 "filters/ffmpeg_audio_decoder.h", | 256 "filters/ffmpeg_audio_decoder.h", |
| 257 "filters/ffmpeg_bitstream_converter.h", | 257 "filters/ffmpeg_bitstream_converter.h", |
| 258 "filters/ffmpeg_demuxer.cc", | 258 "filters/ffmpeg_demuxer.cc", |
| 259 "filters/ffmpeg_demuxer.h", | 259 "filters/ffmpeg_demuxer.h", |
| 260 "filters/ffmpeg_glue.cc", | 260 "filters/ffmpeg_glue.cc", |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 | 559 |
| 560 data = [ | 560 data = [ |
| 561 "test/data/", | 561 "test/data/", |
| 562 ] | 562 ] |
| 563 | 563 |
| 564 # TODO(wolenetz): Fix size_t to int truncation in win64. | 564 # TODO(wolenetz): Fix size_t to int truncation in win64. |
| 565 # See http://crbug.com/171009 | 565 # See http://crbug.com/171009 |
| 566 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 566 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 567 | 567 |
| 568 deps = [ | 568 deps = [ |
| 569 ":cdm_api", |
| 569 ":media", | 570 ":media", |
| 570 ":test_support", | 571 ":test_support", |
| 571 "//base/test:test_support", | 572 "//base/test:test_support", |
| 572 "//gpu:test_support", | 573 "//gpu:test_support", |
| 573 "//gpu/command_buffer/common", | 574 "//gpu/command_buffer/common", |
| 574 "//media/audio:test_support", | 575 "//media/audio:test_support", |
| 575 "//media/audio:unittests", | 576 "//media/audio:unittests", |
| 576 "//media/base:test_support", | 577 "//media/base:test_support", |
| 577 "//media/base:unittests", | 578 "//media/base:unittests", |
| 578 "//media/capture:unittests", | 579 "//media/capture:unittests", |
| 580 "//media/ffmpeg", |
| 579 "//media/test:pipeline_integration_tests", | 581 "//media/test:pipeline_integration_tests", |
| 580 "//skia", # Direct dependency required to inherit config. | 582 "//skia", # Direct dependency required to inherit config. |
| 581 "//testing/gmock", | 583 "//testing/gmock", |
| 582 "//testing/gtest", | 584 "//testing/gtest", |
| 583 "//third_party/libwebm", | 585 "//third_party/libwebm", |
| 584 "//third_party/libyuv", | 586 "//third_party/libyuv", |
| 585 "//third_party/widevine/cdm:version_h", | 587 "//third_party/widevine/cdm:version_h", |
| 586 "//ui/gfx:test_support", | 588 "//ui/gfx:test_support", |
| 587 "//url", | 589 "//url", |
| 588 ] | 590 ] |
| (...skipping 13 matching lines...) Expand all Loading... |
| 602 ] | 604 ] |
| 603 } | 605 } |
| 604 | 606 |
| 605 # If ExternalClearKey is built, we can test CdmAdapter. | 607 # If ExternalClearKey is built, we can test CdmAdapter. |
| 606 if (enable_pepper_cdms) { | 608 if (enable_pepper_cdms) { |
| 607 sources += [ "cdm/cdm_adapter_unittest.cc" ] | 609 sources += [ "cdm/cdm_adapter_unittest.cc" ] |
| 608 data_deps += [ "//media/cdm/ppapi:clearkeycdm" ] | 610 data_deps += [ "//media/cdm/ppapi:clearkeycdm" ] |
| 609 } | 611 } |
| 610 | 612 |
| 611 if (media_use_ffmpeg) { | 613 if (media_use_ffmpeg) { |
| 614 deps += [ "//media/ffmpeg:ffmpeg_unittests" ] |
| 612 sources += [ | 615 sources += [ |
| 613 "ffmpeg/ffmpeg_common_unittest.cc", | |
| 614 "filters/audio_decoder_unittest.cc", | 616 "filters/audio_decoder_unittest.cc", |
| 615 "filters/audio_file_reader_unittest.cc", | 617 "filters/audio_file_reader_unittest.cc", |
| 616 "filters/blocking_url_protocol_unittest.cc", | 618 "filters/blocking_url_protocol_unittest.cc", |
| 617 "filters/ffmpeg_demuxer_unittest.cc", | 619 "filters/ffmpeg_demuxer_unittest.cc", |
| 618 "filters/ffmpeg_glue_unittest.cc", | 620 "filters/ffmpeg_glue_unittest.cc", |
| 619 "filters/in_memory_url_protocol_unittest.cc", | 621 "filters/in_memory_url_protocol_unittest.cc", |
| 620 ] | 622 ] |
| 621 | 623 |
| 622 if (!is_android) { | 624 if (!is_android) { |
| 623 sources += [ | 625 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 | 716 # For running the subset of media_unittests that might require audio hardware |
| 715 # separately on GPU bots. media_unittests includes these too. | 717 # separately on GPU bots. media_unittests includes these too. |
| 716 test("audio_unittests") { | 718 test("audio_unittests") { |
| 717 sources = [ | 719 sources = [ |
| 718 "base/run_all_unittests.cc", | 720 "base/run_all_unittests.cc", |
| 719 ] | 721 ] |
| 720 deps = [ | 722 deps = [ |
| 721 ":test_support", | 723 ":test_support", |
| 722 "//base/test:test_support", | 724 "//base/test:test_support", |
| 723 "//media/audio:unittests", | 725 "//media/audio:unittests", |
| 726 "//media/base:test_support", |
| 724 "//ui/gfx:test_support", | 727 "//ui/gfx:test_support", |
| 725 ] | 728 ] |
| 726 } | 729 } |
| 727 | 730 |
| 728 source_set("test_support") { | 731 source_set("test_support") { |
| 729 testonly = true | 732 testonly = true |
| 730 sources = [ | 733 sources = [ |
| 731 "renderers/mock_gpu_memory_buffer_video_frame_pool.cc", | 734 "renderers/mock_gpu_memory_buffer_video_frame_pool.cc", |
| 732 "renderers/mock_gpu_memory_buffer_video_frame_pool.h", | 735 "renderers/mock_gpu_memory_buffer_video_frame_pool.h", |
| 733 "renderers/mock_gpu_video_accelerator_factories.cc", | 736 "renderers/mock_gpu_video_accelerator_factories.cc", |
| 734 "renderers/mock_gpu_video_accelerator_factories.h", | 737 "renderers/mock_gpu_video_accelerator_factories.h", |
| 735 "video/mock_video_decode_accelerator.cc", | 738 "video/mock_video_decode_accelerator.cc", |
| 736 "video/mock_video_decode_accelerator.h", | 739 "video/mock_video_decode_accelerator.h", |
| 737 ] | 740 ] |
| 738 public_deps = [ | 741 public_deps = [ |
| 739 ":media", | 742 ":media", |
| 740 ":shared_memory_support", | 743 ":shared_memory_support", |
| 741 ] | 744 ] |
| 742 deps = [ | 745 deps = [ |
| 743 "//base", | 746 "//base", |
| 744 "//skia", | 747 "//skia", |
| 745 "//testing/gmock", | 748 "//testing/gmock", |
| 746 "//testing/gtest", | 749 "//testing/gtest", |
| 750 "//ui/gfx", |
| 747 ] | 751 ] |
| 748 } | 752 } |
| 749 | 753 |
| 750 # TODO(jrummell): This should be renamed and moved to media/base/BUILD.gn. | 754 # TODO(jrummell): This should be renamed and moved to media/base/BUILD.gn. |
| 751 component("shared_memory_support") { | 755 component("shared_memory_support") { |
| 752 sources = [ | 756 sources = [ |
| 753 "base/audio_bus.cc", | 757 "base/audio_bus.cc", |
| 754 "base/audio_bus.h", | 758 "base/audio_bus.h", |
| 755 "base/audio_parameters.cc", | 759 "base/audio_parameters.cc", |
| 756 "base/audio_parameters.h", | 760 "base/audio_parameters.h", |
| 757 "base/audio_point.cc", | 761 "base/audio_point.cc", |
| 758 "base/audio_point.h", | 762 "base/audio_point.h", |
| 759 "base/channel_layout.cc", | 763 "base/channel_layout.cc", |
| 760 "base/channel_layout.h", | 764 "base/channel_layout.h", |
| 761 "base/limits.h", | 765 "base/limits.h", |
| 762 "base/media_export.h", | 766 "base/media_export.h", |
| 763 "base/vector_math.cc", | 767 "base/vector_math.cc", |
| 764 "base/vector_math.h", | 768 "base/vector_math.h", |
| 769 "base/vector_math_testing.h", |
| 765 ] | 770 ] |
| 766 configs += [ | 771 configs += [ |
| 767 ":media_config", | 772 ":media_config", |
| 768 ":media_implementation", | 773 ":media_implementation", |
| 769 ] | 774 ] |
| 770 deps = [ | 775 deps = [ |
| 771 "//base", | 776 "//base", |
| 772 "//ui/gfx/geometry", | 777 "//ui/gfx/geometry", |
| 773 ] | 778 ] |
| 774 } | 779 } |
| 775 | 780 |
| 776 # TODO(watk): Refactor tests that could be made to run on Android. See | 781 # TODO(watk): Refactor tests that could be made to run on Android. See |
| 777 # http://crbug.com/570762 | 782 # http://crbug.com/570762 |
| 778 if (media_use_ffmpeg && !is_android) { | 783 if (media_use_ffmpeg && !is_android) { |
| 779 test("ffmpeg_regression_tests") { | 784 test("ffmpeg_regression_tests") { |
| 780 sources = [ | 785 sources = [ |
| 781 "base/run_all_unittests.cc", | 786 "base/run_all_unittests.cc", |
| 782 "ffmpeg/ffmpeg_regression_tests.cc", | |
| 783 ] | 787 ] |
| 784 | 788 |
| 785 configs += [ "//media:media_config" ] | 789 configs += [ "//media:media_config" ] |
| 786 | 790 |
| 787 deps = [ | 791 deps = [ |
| 788 "//base/test:test_support", | 792 "//base/test:test_support", |
| 789 "//media", | 793 "//media", |
| 790 "//media:test_support", | 794 "//media:test_support", |
| 791 "//media/audio:test_support", | 795 "//media/audio:test_support", |
| 792 "//media/base:test_support", | 796 "//media/base:test_support", |
| 797 "//media/ffmpeg:ffmpeg_regressiontests", |
| 793 "//media/test:pipeline_integration_tests", | 798 "//media/test:pipeline_integration_tests", |
| 794 "//testing/gmock", | 799 "//testing/gmock", |
| 795 "//testing/gtest", | 800 "//testing/gtest", |
| 796 "//third_party/ffmpeg", | |
| 797 "//ui/gfx:test_support", | 801 "//ui/gfx:test_support", |
| 798 "//ui/gfx/geometry", | 802 "//ui/gfx/geometry", |
| 799 ] | 803 ] |
| 800 } | 804 } |
| 801 } | 805 } |
| 802 | 806 |
| 803 if (proprietary_codecs) { | 807 if (proprietary_codecs) { |
| 804 fuzzer_test("media_cenc_utils_fuzzer") { | 808 fuzzer_test("media_cenc_utils_fuzzer") { |
| 805 sources = [ | 809 sources = [ |
| 806 "cdm/cenc_utils_fuzzertest.cc", | 810 "cdm/cenc_utils_fuzzertest.cc", |
| (...skipping 29 matching lines...) Expand all Loading... |
| 836 fuzzer_test("media_vp9_parser_fuzzer") { | 840 fuzzer_test("media_vp9_parser_fuzzer") { |
| 837 sources = [ | 841 sources = [ |
| 838 "filters/vp9_parser_fuzzertest.cc", | 842 "filters/vp9_parser_fuzzertest.cc", |
| 839 ] | 843 ] |
| 840 deps = [ | 844 deps = [ |
| 841 ":media", | 845 ":media", |
| 842 "//base", | 846 "//base", |
| 843 ] | 847 ] |
| 844 libfuzzer_options = [ "max_len = 400000" ] | 848 libfuzzer_options = [ "max_len = 400000" ] |
| 845 } | 849 } |
| OLD | NEW |