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

Side by Side Diff: gpu/gles2_conform_support/BUILD.gn

Issue 1322223003: Fix support for internal_gles2_conform_test = true (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync&rebase Created 5 years, 3 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 2015 The Chromium Authors. All rights reserved. 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 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 declare_args() { 5 declare_args() {
6 # Set to true to compile with the OpenGL ES 2.0 conformance tests. 6 # Set to true to compile with the OpenGL ES 2.0 conformance tests.
7 internal_gles2_conform_tests = false 7 internal_gles2_conform_tests = false
8 } 8 }
9 9
10 import("//build/config/allocator.gni") 10 import("//build/config/allocator.gni")
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 if (use_allocator != "none") { 41 if (use_allocator != "none") {
42 # See http://crbug.com/162998#c4 for why this is needed. 42 # See http://crbug.com/162998#c4 for why this is needed.
43 deps += [ "//base/allocator" ] 43 deps += [ "//base/allocator" ]
44 } 44 }
45 } 45 }
46 46
47 if (internal_gles2_conform_tests) { 47 if (internal_gles2_conform_tests) {
48 action("generate_gles2_conform_embedded_data") { 48 action("generate_gles2_conform_embedded_data") {
49 script = "generate_gles2_embedded_data.py" 49 script = "generate_gles2_embedded_data.py"
50 output = [ 50 outputs = [
51 "$target_gen_dir/gles2_conform_test_embedded_data/FilesData.c", 51 "$target_gen_dir/gles2_conform_test_embedded_data/FilesDATA.c",
52 "$target_gen_dir/gles2_conform_test_embedded_data/FilesData.h", 52 "$target_gen_dir/gles2_conform_test_embedded_data/FilesDATA.h",
53 "$target_gen_dir/gles2_conform_test_embedded_data/FilesTOC.c", 53 "$target_gen_dir/gles2_conform_test_embedded_data/FilesTOC.c",
54 ] 54 ]
55 args = [ 55 args = [
56 "../../third_party/gles2_conform/GTF_ES/glsl/GTF", 56 rebase_path("//third_party/gles2_conform/GTF_ES/glsl/GTF"),
57 "$target_gen_dir/gles2_conform_test_embedded_data", 57 rebase_path("$target_gen_dir/gles2_conform_test_embedded_data"),
58 ] 58 ]
59 } 59 }
60 gles2_conform_gypi = exec_script("//build/gypi_to_gn.py", 60 gles2_conform_gypi =
61 [ rebase_path("gles2_conform_gypi") ], 61 exec_script("//build/gypi_to_gn.py",
62 "scoped", 62 [
63 [ "gles2_conform_gypi" ]) 63 rebase_path("gles2_conform.gypi"),
64 "--replace=<(DEPTH)=../..",
65 "--replace=<(SHARED_INTERMEDIATE_DIR)=$target_gen_dir",
66 ],
67 "scope",
68 [ "gles2_conform.gypi" ])
64 executable("gles2_conform_test_windowless") { 69 executable("gles2_conform_test_windowless") {
65 testonly = true 70 testonly = true
66 sources = [ 71
67 # Include a dummy c++ file to force linking of libstdc++. 72 # Include a dummy c++ file to force linking of libstdc++.
68 "dummy.cc", 73 sources = [ "dummy.cc" ] + gles2_conform_gypi.gtf_es_sources
69 gles2_conform_gypi.gtf_es_sources,
70 ]
71 defines = [ 74 defines = [
72 "GTF_API=GTF_GLES20", 75 "GTF_API=GTF_GLES20",
73 "HKEMBEDDEDFILESYSTEM", 76 "HKEMBEDDEDFILESYSTEM",
74 ] 77 ]
75 deps = [ 78 deps = [
76 ":generate_gles2_conform_embedded_data", 79 ":generate_gles2_conform_embedded_data",
77 "//build/config/sanitizers:deps", 80 "//build/config/sanitizers:deps",
78 "//gpu/command_buffer/client:gles2_c_libnocheck", 81 "//gpu/command_buffer/client:gles2_c_lib_nocheck",
79 "//gpu/gles2_conform_support/egl", 82 "//gpu/gles2_conform_support/egl",
80 "//gpu/gles2_conform_support/native:windowless", 83 "//gpu/gles2_conform_support/native:windowless",
81 ] 84 ]
82 configs += [ "//build/compiler:no_incompatible_pointer_warnings" ] 85 configs += [ "//build/config/compiler:no_incompatible_pointer_warnings" ]
83 if (is_linux) { 86 if (is_linux) {
84 if (!is_chromeos) { 87 if (!is_chromeos) {
85 deps += [ "//build/linux/system/gtk2" ] 88 deps += [ "//build/config/linux/gtk2" ]
86 89
87 if (is_clang) { 90 if (is_clang) {
88 cflags = [ 91 cflags = [
89 "-Wno-array-bounds", 92 "-Wno-array-bounds",
90 "-Wno-implicit-function-declaration", 93 "-Wno-implicit-function-declaration",
91 "-Wno-parentheses-equality", 94 "-Wno-parentheses-equality",
92 "-Wno-pointer-sign", 95 "-Wno-pointer-sign",
93 "-Wno-return-type", 96 "-Wno-return-type",
94 "-Wno-sizeof-pointer-memaccess", 97 "-Wno-sizeof-pointer-memaccess",
95 "-Wno-tautological-compare", 98 "-Wno-tautological-compare",
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 "//base", 180 "//base",
178 "//gpu/config", 181 "//gpu/config",
179 "//testing/gtest", 182 "//testing/gtest",
180 ] 183 ]
181 184
182 data = [ 185 data = [
183 "gles2_conform_test_expectations.txt", 186 "gles2_conform_test_expectations.txt",
184 ] 187 ]
185 188
186 if (internal_gles2_conform_tests) { 189 if (internal_gles2_conform_tests) {
187 deps += [ "gles2_conform_test_windowless" ] 190 deps += [ ":gles2_conform_test_windowless" ]
188 191 # TODO: Make these tests pull in the correct data dependencies once they
189 data_deps = [ "//third_party/gles2_conform/GTF_ES/" ] 192 # are exported in GN. Maybe from //third_party/gles2_conform/GTF_ES/
190 } 193 }
191 } 194 }
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