| 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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 "base/media_export.h", | 841 "base/media_export.h", |
| 842 "base/vector_math.cc", | 842 "base/vector_math.cc", |
| 843 "base/vector_math.h", | 843 "base/vector_math.h", |
| 844 "base/vector_math_testing.h", | 844 "base/vector_math_testing.h", |
| 845 ] | 845 ] |
| 846 configs += [ | 846 configs += [ |
| 847 ":media_config", | 847 ":media_config", |
| 848 ":media_implementation", | 848 ":media_implementation", |
| 849 ] | 849 ] |
| 850 deps = [ | 850 deps = [ |
| 851 ":media_avx", |
| 851 "//base", | 852 "//base", |
| 852 "//ui/gfx/geometry", | 853 "//ui/gfx/geometry", |
| 853 ] | 854 ] |
| 854 } | 855 } |
| 855 | 856 |
| 857 if (current_cpu == "x86" || current_cpu == "x64") { |
| 858 source_set("media_avx") { |
| 859 configs += [ "//media:media_implementation" ] |
| 860 sources = [ |
| 861 "base/vector_math_avx.cc", |
| 862 ] |
| 863 if (is_win) { |
| 864 cflags = [ "/arch:AVX" ] |
| 865 } else { |
| 866 cflags = [ "-mavx" ] |
| 867 } |
| 868 } |
| 869 } |
| 870 |
| 856 # TODO(watk): Refactor tests that could be made to run on Android. See | 871 # TODO(watk): Refactor tests that could be made to run on Android. See |
| 857 # http://crbug.com/570762 | 872 # http://crbug.com/570762 |
| 858 if (media_use_ffmpeg && !is_android) { | 873 if (media_use_ffmpeg && !is_android) { |
| 859 test("ffmpeg_regression_tests") { | 874 test("ffmpeg_regression_tests") { |
| 860 configs += [ "//media:media_config" ] | 875 configs += [ "//media:media_config" ] |
| 861 | 876 |
| 862 deps = [ | 877 deps = [ |
| 863 "//base/test:test_support", | 878 "//base/test:test_support", |
| 864 "//media", | 879 "//media", |
| 865 "//media:test_support", | 880 "//media:test_support", |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 fuzzer_test("media_mp4_avcc_parser_fuzzer") { | 963 fuzzer_test("media_mp4_avcc_parser_fuzzer") { |
| 949 sources = [ | 964 sources = [ |
| 950 "formats/mp4/mp4_avcc_parser_fuzzer.cc", | 965 "formats/mp4/mp4_avcc_parser_fuzzer.cc", |
| 951 ] | 966 ] |
| 952 deps = [ | 967 deps = [ |
| 953 ":media", | 968 ":media", |
| 954 "//base", | 969 "//base", |
| 955 ] | 970 ] |
| 956 } | 971 } |
| 957 } | 972 } |
| OLD | NEW |