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

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

Issue 1033373002: Port gles2_conform_test_windowless action to GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add dep Created 5 years, 8 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 | « build/config/linux/gtk/BUILD.gn ('k') | 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 import("//build/config/allocator.gni") 5 import("//build/config/allocator.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 # GYP version: gpu/gles2_conform_support/gles2_conform_support.gyp:gles2_conform _support 8 # GYP version: gpu/gles2_conform_support/gles2_conform_support.gyp:gles2_conform _support
9 executable("gles2_conform_support") { 9 executable("gles2_conform_support") {
10 sources = [ 10 sources = [
(...skipping 21 matching lines...) Expand all
32 "native/egl_native_x11.cc", 32 "native/egl_native_x11.cc",
33 ] 33 ]
34 } 34 }
35 if (use_allocator != "none") { 35 if (use_allocator != "none") {
36 # See http://crbug.com/162998#c4 for why this is needed. 36 # See http://crbug.com/162998#c4 for why this is needed.
37 deps += [ "//base/allocator" ] 37 deps += [ "//base/allocator" ]
38 } 38 }
39 } 39 }
40 40
41 if (internal_gles2_conform_tests) { 41 if (internal_gles2_conform_tests) {
42 action("generate_gles2_conform_embedded_files") { 42 action("generate_gles2_conform_embedded_data") {
43 script = "generate_gles2_embedded_data.py" 43 script = "generate_gles2_embedded_data.py"
44 output = [ 44 output = [
45 "$target_gen_dir/gles2_conform_test_embedded_data/FilesData.c", 45 "$target_gen_dir/gles2_conform_test_embedded_data/FilesData.c",
46 "$target_gen_dir/gles2_conform_test_embedded_data/FilesData.h", 46 "$target_gen_dir/gles2_conform_test_embedded_data/FilesData.h",
47 "$target_gen_dir/gles2_conform_test_embedded_data/FilesTOC.c", 47 "$target_gen_dir/gles2_conform_test_embedded_data/FilesTOC.c",
48 ] 48 ]
49 args = [ 49 args = [
50 "../../third_party/gles2_conform/GTF_ES/glsl/GTF", 50 "../../third_party/gles2_conform/GTF_ES/glsl/GTF",
51 "$target_gen_dir/gles2_conform_test_embedded_data", 51 "$target_gen_dir/gles2_conform_test_embedded_data",
52 ] 52 ]
53 } 53 }
54 gles2_conform_gypi = exec_script("//build/gypi_to_gn.py",
55 [ rebase_path("gles2_conform_gypi") ],
56 "scoped",
57 [ "gles2_conform_gypi" ])
58 executable("gles2_conform_test_windowless") {
59 testonly = true
60 sources = [
61 # Include a dummy c++ file to force linking of libstdc++.
62 "dummy.cc",
63 gles2_conform_gypi.gtf_es_sources,
64 ]
65 defines = [
66 "GTF_API=GTF_GLES20",
67 "HKEMBEDDEDFILESYSTEM",
68 ]
69 deps = [
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",
74 ]
75 if (is_linux) {
76 if (!is_chromeos) {
77 deps += [ "//build/linux/system/gtk" ]
78
79 if (is_clang) {
80 cflags = [
81 "-Wno-array-bounds",
82 "-Wno-implicit-function-declaration",
83 "-Wno-incompatible-pointer-types",
84 "-Wno-parentheses-equality",
85 "-Wno-pointer-sign",
86 "-Wno-return-type",
87 "-Wno-sizeof-pointer-memaccess",
88 "-Wno-tautological-compare",
89 ]
90 }
91 }
92 }
93 if (is_win) {
94 deps += [
95 "//third_party/angle:libEGL",
96 "//third_party/angle:libGLESv2",
97 ]
98 defines = [
99 "EGLAPI=",
100 "EGLAPIENTRY=",
101 ]
102 defines -= [ "NOMINMAX" ]
103 cflags = [
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
108 ]
109 }
110 if (is_mac) {
111 defines = [
112 "_STDINT",
113 "_STDINT_H",
114 ]
115 if (is_clang) {
116 cflags = [
117 "-Wno-pointer-sign",
118 "-Wno-array-bounds",
119 "-Wno-sizeof-pointer-memaccess",
120 "-Wno-implicit-function-declaration",
121 "-Wno-logical-op-parentheses",
122 "-Wno-tautological-compare",
123 "-Wno-parentheses-equality",
124 "-Wno-return-type",
125 ]
126 #"xcode_settings": {
127 #"LD": "clang++",
128 #"WARNING_CFLAGS": [
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",
136 #"-Wno-return-type",
137 #],
138 #},
139 }
140 }
141
142 #'run_as': {
143 # 'conditions': [
144 # ['OS=="win"', {
145 # 'action': [
146 # '$(TargetPath)',
147 # '-noimagefileio',
148 # '-run=<(DEPTH)/third_party/gles2_conform/GTF_ES/glsl/GTF/mustpas s.run',
149 # ],
150 # }],
151 # ],
152 # },
153 }
54 } 154 }
55 155
56 test("gles2_conform_test") { 156 test("gles2_conform_test") {
57 sources = [ 157 sources = [
58 "gles2_conform_test.cc", 158 "gles2_conform_test.cc",
59 ] 159 ]
60 deps = [ 160 deps = [
61 "//base", 161 "//base",
62 "//gpu/config", 162 "//gpu/config",
63 "//testing/gtest", 163 "//testing/gtest",
64 ] 164 ]
165 if (internal_gles2_conform_tests) {
166 deps += [ "gles2_conform_test_windowless" ]
167 }
65 } 168 }
OLDNEW
« no previous file with comments | « build/config/linux/gtk/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698