Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: content/test/BUILD.gn

Issue 1929053003: GN: Add video_{de,en}code_accelerator_unittest targets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 "//testing/perf", 901 "//testing/perf",
902 "//ui/gfx", 902 "//ui/gfx",
903 "//ui/gfx/geometry", 903 "//ui/gfx/geometry",
904 ] 904 ]
905 905
906 if (is_android) { 906 if (is_android) {
907 deps += [ "//testing/android/native_test:native_test_native_code" ] 907 deps += [ "//testing/android/native_test:native_test_native_code" ]
908 } 908 }
909 } 909 }
910 910
911 if (is_android) { 911 if (is_android || is_chromeos) {
912 # TODO(GYP): Port Windows and ChromeOS logic. 912 # TODO(GYP): Port Windows logic.
913 test("video_decode_accelerator_unittest") { 913 test("video_decode_accelerator_unittest") {
914 deps = [ 914 deps = [
915 "//base", 915 "//base",
916 "//content", 916 "//content",
917 "//media", 917 "//media",
918 "//testing/gtest", 918 "//testing/gtest",
919 "//ui/base", 919 "//ui/base",
920 "//ui/gfx", 920 "//ui/gfx",
921 "//ui/gfx:test_support", 921 "//ui/gfx:test_support",
922 "//ui/gfx/geometry", 922 "//ui/gfx/geometry",
923 "//ui/gl", 923 "//ui/gl",
924 "//ui/gl:test_support", 924 "//ui/gl:test_support",
925 ] 925 ]
926 configs += [ "//third_party/khronos:khronos_headers" ] 926 configs += [ "//third_party/khronos:khronos_headers" ]
927 if (is_chromeos && target_cpu != "arm") {
928 configs += [ "//third_party/libva:libva_config" ]
929 }
piman 2016/04/28 23:36:48 nit: Why is this needed? the sources don't include
stevenjb 2016/04/29 17:17:56 Otherwise we get this: In file included from ../.
Dirk Pranke 2016/04/29 21:58:50 //content/common should be exporting this as a pub
927 sources = [ 930 sources = [
928 "//content/common/gpu/media/video_accelerator_unittest_helpers.h", 931 "//content/common/gpu/media/video_accelerator_unittest_helpers.h",
929 ] 932 ]
930 if (is_android) { 933 if (is_android) {
931 sources += [ "//content/common/gpu/media/android_video_decode_accelerator_ unittest.cc" ] 934 sources += [ "//content/common/gpu/media/android_video_decode_accelerator_ unittest.cc" ]
932 } else { 935 } else {
933 sources += [ 936 sources += [
934 "//content/common/gpu/media/rendering_helper.cc", 937 "//content/common/gpu/media/rendering_helper.cc",
935 "//content/common/gpu/media/rendering_helper.h", 938 "//content/common/gpu/media/rendering_helper.h",
936 "//content/common/gpu/media/video_decode_accelerator_unittest.cc", 939 "//content/common/gpu/media/video_decode_accelerator_unittest.cc",
937 ] 940 ]
938 } 941 }
939 942
940 if (is_android) { 943 if (is_android) {
941 deps += [ 944 deps += [
942 "//gpu:test_support", 945 "//gpu:test_support",
943 "//media/base/android", 946 "//media/base/android",
944 "//media/base/android:media_java", 947 "//media/base/android:media_java",
945 "//media/capture/video/android:capture_java", 948 "//media/capture/video/android:capture_java",
946 "//testing/gmock", 949 "//testing/gmock",
947 "//ui/android:ui_java", 950 "//ui/android:ui_java",
948 ] 951 ]
949 } 952 }
953 if (is_chromeos && use_ozone) {
954 deps += [
955 "//ui/display", # Used by rendering_helper.cc
956 "//ui/ozone", # Used by rendering_helper.cc
957 ]
958 }
959 if (use_x11) {
960 configs += [ "//build/config/linux:x11" ]
961 deps += [ "//ui/gfx/x" ]
962 }
950 } 963 }
951 } 964 }
965
966 if (is_chromeos || is_mac) {
967 test("video_encode_accelerator_unittest") {
968 deps = [
969 "//base",
970 "//content",
971 "//media",
972 "//media/base:test_support",
973 "//testing/gtest",
974 "//ui/base",
975 "//ui/gfx",
976 "//ui/gfx:test_support",
977 "//ui/gfx/geometry",
978 "//ui/gl",
979 "//ui/gl:test_support",
980 ]
981 configs += [
982 "//third_party/libva:libva_config",
983 "//third_party/libyuv:libyuv_config",
piman 2016/04/28 23:36:48 ditto (both)
stevenjb 2016/04/29 17:17:57 ditto
Dirk Pranke 2016/04/29 21:58:50 ditto.
984 ]
985 sources = [
986 "//content/common/gpu/media/video_accelerator_unittest_helpers.h",
987 "//content/common/gpu/media/video_encode_accelerator_unittest.cc",
988 ]
989 if (use_x11) {
990 deps += [ "//ui/gfx/x" ]
991 }
992 if (use_ozone) {
993 deps += [ "//ui/ozone" ]
994 }
995 }
996 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698