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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 defines += [ "MEDIA_DISABLE_FFMPEG" ] | 50 defines += [ "MEDIA_DISABLE_FFMPEG" ] |
51 } | 51 } |
52 if (is_win) { | 52 if (is_win) { |
53 ldflags = [ | 53 ldflags = [ |
54 "/DELAYLOAD:mf.dll", | 54 "/DELAYLOAD:mf.dll", |
55 "/DELAYLOAD:mfplat.dll", | 55 "/DELAYLOAD:mfplat.dll", |
56 "/DELAYLOAD:mfreadwrite.dll", | 56 "/DELAYLOAD:mfreadwrite.dll", |
57 ] | 57 ] |
58 } | 58 } |
59 if (media_use_ffmpeg && is_android) { | 59 if (media_use_ffmpeg && is_android) { |
60 defines += [ | 60 defines += [ "DISABLE_FFMPEG_VIDEO_DECODERS" ] |
61 "ENABLE_MEDIA_PIPELINE_ON_ANDROID", | |
62 "DISABLE_FFMPEG_VIDEO_DECODERS", | |
63 ] | |
64 } | 61 } |
65 } | 62 } |
66 | 63 |
67 if (use_ozone) { | 64 if (use_ozone) { |
68 action("generate_ozone_constructor_list") { | 65 action("generate_ozone_constructor_list") { |
69 # Ozone platform objects are auto-generated using similar | 66 # Ozone platform objects are auto-generated using similar |
70 # patterns for naming and classes constructors. Here we build the | 67 # patterns for naming and classes constructors. Here we build the |
71 # object MediaOzonePlatform. | 68 # object MediaOzonePlatform. |
72 script = "../ui/ozone/generate_constructor_list.py" | 69 script = "../ui/ozone/generate_constructor_list.py" |
73 | 70 |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 | 708 |
712 # If ExternalClearKey is built, we can test CdmAdapter. | 709 # If ExternalClearKey is built, we can test CdmAdapter. |
713 if (enable_pepper_cdms) { | 710 if (enable_pepper_cdms) { |
714 sources += [ "cdm/cdm_adapter_unittest.cc" ] | 711 sources += [ "cdm/cdm_adapter_unittest.cc" ] |
715 deps += [ "//media/cdm/ppapi:clearkeycdm" ] | 712 deps += [ "//media/cdm/ppapi:clearkeycdm" ] |
716 } | 713 } |
717 | 714 |
718 if (media_use_ffmpeg) { | 715 if (media_use_ffmpeg) { |
719 sources += [ | 716 sources += [ |
720 "ffmpeg/ffmpeg_common_unittest.cc", | 717 "ffmpeg/ffmpeg_common_unittest.cc", |
721 "filters/audio_decoder_unittest.cc", | 718 "filters/blocking_url_protocol_unittest.cc", |
722 "filters/ffmpeg_demuxer_unittest.cc", | |
723 "filters/ffmpeg_glue_unittest.cc", | 719 "filters/ffmpeg_glue_unittest.cc", |
| 720 "filters/in_memory_url_protocol_unittest.cc", |
724 ] | 721 ] |
725 | 722 |
726 # Even if FFmpeg is enabled we do not want these files on Android. | |
727 # TODO(watk): Refactor tests that could be made to run on Android. | |
728 if (!is_android) { | 723 if (!is_android) { |
729 sources += [ | 724 sources += [ |
| 725 # These tests are confused by Android always having proprietary |
| 726 # codecs enabled, but ffmpeg_branding=Chromium. These should be |
| 727 # fixed, http://crbug.com/570762. |
| 728 "filters/audio_decoder_unittest.cc", |
730 "filters/audio_file_reader_unittest.cc", | 729 "filters/audio_file_reader_unittest.cc", |
731 "filters/blocking_url_protocol_unittest.cc", | 730 "filters/ffmpeg_demuxer_unittest.cc", |
| 731 |
| 732 # FFmpeg on Android does not include video decoders. |
732 "filters/ffmpeg_video_decoder_unittest.cc", | 733 "filters/ffmpeg_video_decoder_unittest.cc", |
733 "filters/in_memory_url_protocol_unittest.cc", | |
734 ] | 734 ] |
735 } | 735 } |
736 } | 736 } |
737 | 737 |
738 if (current_cpu != "arm" && is_chromeos) { | 738 if (current_cpu != "arm" && is_chromeos) { |
739 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] | 739 sources += [ "filters/h264_bitstream_buffer_unittest.cc" ] |
740 } | 740 } |
741 | 741 |
742 if (proprietary_codecs) { | 742 if (proprietary_codecs) { |
743 sources += [ | 743 sources += [ |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 configs += [ | 874 configs += [ |
875 ":media_config", | 875 ":media_config", |
876 ":media_implementation", | 876 ":media_implementation", |
877 ] | 877 ] |
878 deps = [ | 878 deps = [ |
879 "//base", | 879 "//base", |
880 "//ui/gfx/geometry", | 880 "//ui/gfx/geometry", |
881 ] | 881 ] |
882 } | 882 } |
883 | 883 |
884 if (media_use_ffmpeg) { | 884 # TODO(watk): Refactor tests that could be made to run on Android. See |
| 885 # http://crbug.com/570762 |
| 886 if (media_use_ffmpeg && !is_android) { |
885 test("ffmpeg_regression_tests") { | 887 test("ffmpeg_regression_tests") { |
886 sources = [ | 888 sources = [ |
887 "base/run_all_unittests.cc", | 889 "base/run_all_unittests.cc", |
888 "ffmpeg/ffmpeg_regression_tests.cc", | 890 "ffmpeg/ffmpeg_regression_tests.cc", |
889 ] | 891 ] |
890 | 892 |
891 configs += [ "//media:media_config" ] | 893 configs += [ "//media:media_config" ] |
892 | 894 |
893 deps = [ | 895 deps = [ |
894 "//base/test:test_support", | 896 "//base/test:test_support", |
895 "//media", | 897 "//media", |
896 "//media:test_support", | 898 "//media:test_support", |
897 "//media/audio:test_support", | 899 "//media/audio:test_support", |
898 "//media/base:test_support", | 900 "//media/base:test_support", |
899 "//media/test:pipeline_integration_tests", | 901 "//media/test:pipeline_integration_tests", |
900 "//testing/gmock", | 902 "//testing/gmock", |
901 "//testing/gtest", | 903 "//testing/gtest", |
902 "//third_party/ffmpeg", | 904 "//third_party/ffmpeg", |
903 "//ui/gfx:test_support", | 905 "//ui/gfx:test_support", |
904 "//ui/gfx/geometry", | 906 "//ui/gfx/geometry", |
905 ] | 907 ] |
906 } | 908 } |
907 } | 909 } |
OLD | NEW |