| 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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
| 7 import("//build/config/crypto.gni") | 7 import("//build/config/crypto.gni") |
| 8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
| 9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
| 10 import("//build_overrides/v8.gni") | 10 import("//build_overrides/v8.gni") |
| (...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 "//testing/gtest", | 887 "//testing/gtest", |
| 888 "//testing/perf", | 888 "//testing/perf", |
| 889 "//ui/gfx", | 889 "//ui/gfx", |
| 890 "//ui/gfx/geometry", | 890 "//ui/gfx/geometry", |
| 891 ] | 891 ] |
| 892 | 892 |
| 893 if (is_android) { | 893 if (is_android) { |
| 894 deps += [ "//testing/android/native_test:native_test_native_code" ] | 894 deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 895 } | 895 } |
| 896 } | 896 } |
| 897 | |
| 898 if (is_android || is_chromeos) { | |
| 899 # TODO(GYP): Port Windows logic. | |
| 900 test("video_decode_accelerator_unittest") { | |
| 901 deps = [ | |
| 902 "//base", | |
| 903 "//content", | |
| 904 "//media", | |
| 905 "//testing/gtest", | |
| 906 "//ui/base", | |
| 907 "//ui/gfx", | |
| 908 "//ui/gfx:test_support", | |
| 909 "//ui/gfx/geometry", | |
| 910 "//ui/gl", | |
| 911 "//ui/gl:test_support", | |
| 912 ] | |
| 913 configs += [ "//third_party/khronos:khronos_headers" ] | |
| 914 if (is_chromeos && target_cpu != "arm") { | |
| 915 configs += [ "//third_party/libva:libva_config" ] | |
| 916 } | |
| 917 sources = [ | |
| 918 "//content/common/gpu/media/video_accelerator_unittest_helpers.h", | |
| 919 ] | |
| 920 if (is_android) { | |
| 921 sources += [ "//content/common/gpu/media/android_video_decode_accelerator_
unittest.cc" ] | |
| 922 } else { | |
| 923 sources += [ | |
| 924 "//content/common/gpu/media/rendering_helper.cc", | |
| 925 "//content/common/gpu/media/rendering_helper.h", | |
| 926 "//content/common/gpu/media/video_decode_accelerator_unittest.cc", | |
| 927 ] | |
| 928 } | |
| 929 | |
| 930 if (is_android) { | |
| 931 deps += [ | |
| 932 "//gpu:test_support", | |
| 933 "//media/base/android", | |
| 934 "//media/base/android:media_java", | |
| 935 "//media/capture/video/android:capture_java", | |
| 936 "//testing/gmock", | |
| 937 "//ui/android:ui_java", | |
| 938 ] | |
| 939 } | |
| 940 if (is_chromeos && use_ozone) { | |
| 941 deps += [ | |
| 942 "//ui/display", # Used by rendering_helper.cc | |
| 943 "//ui/ozone", # Used by rendering_helper.cc | |
| 944 ] | |
| 945 } | |
| 946 if (use_x11) { | |
| 947 configs += [ "//build/config/linux:x11" ] | |
| 948 deps += [ "//ui/gfx/x" ] | |
| 949 } | |
| 950 } | |
| 951 } | |
| 952 | |
| 953 if (is_chromeos || is_mac) { | |
| 954 test("video_encode_accelerator_unittest") { | |
| 955 deps = [ | |
| 956 "//base", | |
| 957 "//content", | |
| 958 "//media", | |
| 959 "//media/base:test_support", | |
| 960 "//testing/gtest", | |
| 961 "//ui/base", | |
| 962 "//ui/gfx", | |
| 963 "//ui/gfx:test_support", | |
| 964 "//ui/gfx/geometry", | |
| 965 "//ui/gl", | |
| 966 "//ui/gl:test_support", | |
| 967 ] | |
| 968 configs += [ | |
| 969 "//third_party/libva:libva_config", | |
| 970 "//third_party/libyuv:libyuv_config", | |
| 971 ] | |
| 972 sources = [ | |
| 973 "//content/common/gpu/media/video_accelerator_unittest_helpers.h", | |
| 974 "//content/common/gpu/media/video_encode_accelerator_unittest.cc", | |
| 975 ] | |
| 976 if (use_x11) { | |
| 977 deps += [ "//ui/gfx/x" ] | |
| 978 } | |
| 979 if (use_ozone) { | |
| 980 deps += [ "//ui/ozone" ] | |
| 981 } | |
| 982 } | |
| 983 } | |
| OLD | NEW |