1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/allocator.gni")
6 import("//testing/test.gni")
8 # GYP version: gpu/gles2_conform_support/gles2_conform_support.gyp:gles2_conform_support
9 executable("gles2_conform_support") {
11 "gles2_conform_support.c",
12 "native/egl_native.cc",
13 "native/egl_native_win.cc",
17 "GLES2_CONFORM_SUPPORT_ONLY",
24 "//gpu/gles2_conform_support/egl",
25 "//base/third_party/dynamic_annotations",
27 "//gpu/command_buffer/client:gles2_c_lib_nocheck",
31 "native/egl_native_aura.cc",
32 "native/egl_native_x11.cc",
35 if (use_allocator != "none") {
36 # See http://crbug.com/162998#c4 for why this is needed.
37 deps += [ "//base/allocator" ]
41 if (internal_gles2_conform_tests) {
42 action("generate_gles2_conform_embedded_data") {
43 script = "generate_gles2_embedded_data.py"
45 "$target_gen_dir/gles2_conform_test_embedded_data/FilesData.c",
46 "$target_gen_dir/gles2_conform_test_embedded_data/FilesData.h",
47 "$target_gen_dir/gles2_conform_test_embedded_data/FilesTOC.c",
50 "../../third_party/gles2_conform/GTF_ES/glsl/GTF",
51 "$target_gen_dir/gles2_conform_test_embedded_data",
54 gles2_conform_gypi = exec_script("//build/gypi_to_gn.py",
55 [ rebase_path("gles2_conform_gypi") ],
57 [ "gles2_conform_gypi" ])
58 executable("gles2_conform_test_windowless") {
61 # Include a dummy c++ file to force linking of libstdc++.
63 gles2_conform_gypi.gtf_es_sources,
67 "HKEMBEDDEDFILESYSTEM",
70 ":generate_gles2_conform_embedded_data",
71 "//gpu/gles2_conform_support/egl",
72 "//gpu/gles2_conform_support/native:windowless",
73 "//gpu/command_buffer/client:gles2_c_libnocheck",
77 deps += [ "//build/linux/system/gtk" ]
82 "-Wno-implicit-function-declaration",
83 "-Wno-incompatible-pointer-types",
84 "-Wno-parentheses-equality",
87 "-Wno-sizeof-pointer-memaccess",
88 "-Wno-tautological-compare",
95 "//third_party/angle:libEGL",
96 "//third_party/angle:libGLESv2",
102 defines -= [ "NOMINMAX" ]
104 "/wd4018", # signed/unsigned mismatch
105 "/wd4101", # unreferenced local variable
106 "/wd4715", # not all control paths return a value
107 "/wd4267", # size_t/unsigned int conversion
119 "-Wno-sizeof-pointer-memaccess",
120 "-Wno-implicit-function-declaration",
121 "-Wno-logical-op-parentheses",
122 "-Wno-tautological-compare",
123 "-Wno-parentheses-equality",
129 #"-Wno-pointer-sign",
130 #"-Wno-array-bounds",
131 #"-Wno-sizeof-pointer-memaccess",
132 #"-Wno-implicit-function-declaration",
133 #"-Wno-logical-op-parentheses",
134 #"-Wno-tautological-compare",
135 #"-Wno-parentheses-equality",
148 # '-run=<(DEPTH)/third_party/gles2_conform/GTF_ES/glsl/GTF/mustpass.run',
156 test("gles2_conform_test") {
158 "gles2_conform_test.cc",
165 if (internal_gles2_conform_tests) {
166 deps += [ "gles2_conform_test_windowless" ]