summaryrefslogtreecommitdiffstats
path: root/gpu/gles2_conform_support/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/gles2_conform_support/BUILD.gn')
-rw-r--r--gpu/gles2_conform_support/BUILD.gn21
1 files changed, 21 insertions, 0 deletions
diff --git a/gpu/gles2_conform_support/BUILD.gn b/gpu/gles2_conform_support/BUILD.gn
index 1151443..a0874a7 100644
--- a/gpu/gles2_conform_support/BUILD.gn
+++ b/gpu/gles2_conform_support/BUILD.gn
@@ -2,6 +2,11 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+declare_args() {
+ # Set to true to compile with the OpenGL ES 2.0 conformance tests.
+ internal_gles2_conform_tests = false
+}
+
import("//build/config/allocator.gni")
import("//testing/test.gni")
@@ -153,6 +158,15 @@ if (internal_gles2_conform_tests) {
}
}
+# TODO(GYP): Delete this after we've converted everything to GN.
+# The _run targets exist only for compatibility w/ GYP.
+group("gles2_conform_test_run") {
+ testonly = true
+ deps = [
+ ":gles2_conform_test",
+ ]
+}
+
test("gles2_conform_test") {
sources = [
"gles2_conform_test.cc",
@@ -162,7 +176,14 @@ test("gles2_conform_test") {
"//gpu/config",
"//testing/gtest",
]
+
+ data = [
+ "gles2_conform_test_expectations.txt",
+ ]
+
if (internal_gles2_conform_tests) {
deps += [ "gles2_conform_test_windowless" ]
+
+ data_deps = [ "//third_party/gles2_conform/GTF_ES/" ]
}
}