OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'includes': [ | |
7 'khronos_glcts.gypi', | |
8 'khronos_glcts_defaults.gypi', | |
9 ], | |
10 'targets': [ | |
11 { | |
12 'target_name': 'khronos_glcts_framework', | |
13 'type': 'static_library', | |
14 'dependencies': [ | |
15 'delibs', 'qphelper', 'tcutil', 'glutil', 'tcutil_egl', | |
16 ], | |
17 'export_dependent_settings': [ | |
18 'delibs', 'qphelper', 'tcutil', 'glutil', 'tcutil_egl', | |
19 ], | |
20 }, | |
21 { | |
22 'target_name': 'delibs', | |
23 'type': 'static_library', | |
24 'dependencies': [ | |
25 'debase', 'depool', 'dethread', 'deutil', 'decpp', | |
26 ], | |
27 'export_dependent_settings': [ | |
28 'debase', 'depool', 'dethread', 'deutil', 'decpp', | |
29 ], | |
30 }, | |
31 { | |
32 'target_name': 'debase', | |
33 'type': 'static_library', | |
34 'conditions': [ | |
35 ['OS=="linux"', { | |
36 'cflags': [ | |
37 # WA: Suppress "implicit declaration of function '__assert_fail' | |
38 # is invalid in C99" warning from deDefs.c for Release compiles. | |
39 # TODO(uartie) fix. | |
40 '-Wno-implicit-function-declaration', | |
41 ], | |
42 }], | |
43 ], | |
44 'direct_dependent_settings': { | |
45 'include_dirs': [ | |
46 '<(DEPTH)/third_party/khronos_glcts/framework/delibs/debase', | |
47 ], | |
48 }, | |
49 'sources': [ | |
50 '<@(debase_srcs)', | |
51 ], | |
52 }, | |
53 { | |
54 'target_name': 'depool', | |
55 'type': 'static_library', | |
56 'dependencies': [ | |
57 'debase', | |
58 ], | |
59 'direct_dependent_settings': { | |
60 'include_dirs': [ | |
61 '<(DEPTH)/third_party/khronos_glcts/framework/delibs/depool', | |
62 ], | |
63 }, | |
64 'sources': [ | |
65 '<@(depool_srcs)', | |
66 ], | |
67 }, | |
68 { | |
69 'target_name': 'dethread', | |
70 'type': 'static_library', | |
71 'dependencies': [ | |
72 'debase', | |
73 ], | |
74 'direct_dependent_settings': { | |
75 'include_dirs': [ | |
76 '<(DEPTH)/third_party/khronos_glcts/framework/delibs/dethread', | |
77 ], | |
78 }, | |
79 'sources': [ | |
80 '<@(dethread_srcs)', | |
81 ], | |
82 'conditions': [ | |
83 ['OS=="linux"', { | |
84 'sources': [ | |
85 '<@(dethread_unix_srcs)', | |
86 ], | |
87 'include_dirs': [ | |
88 '<(DEPTH)/third_party/khronos_glcts/framework/delibs/dethread', | |
89 ], | |
90 }], | |
91 ] | |
92 }, | |
93 { | |
94 'target_name': 'deutil', | |
95 'type': 'static_library', | |
96 'dependencies': [ | |
97 'debase', 'depool', 'dethread', | |
98 ], | |
99 'direct_dependent_settings': { | |
100 'include_dirs': [ | |
101 '<(DEPTH)/third_party/khronos_glcts/framework/delibs/deutil', | |
102 ], | |
103 }, | |
104 'sources': [ | |
105 '<@(deutil_srcs)', | |
106 ], | |
107 }, | |
108 { | |
109 'target_name': 'decpp', | |
110 'type': 'static_library', | |
111 'dependencies': [ | |
112 'debase', 'depool', 'dethread', 'deutil', | |
113 ], | |
114 'direct_dependent_settings': { | |
115 'include_dirs': [ | |
116 '<(DEPTH)/third_party/khronos_glcts/framework/delibs/decpp', | |
117 ], | |
118 }, | |
119 'sources': [ | |
120 '<@(decpp_srcs)', | |
121 ], | |
122 }, | |
123 { | |
124 'target_name': 'qphelper', | |
125 'type': 'static_library', | |
126 'defines': [ | |
127 'QP_SUPPORT_PNG', | |
128 ], | |
129 'dependencies': [ | |
130 'debase', 'depool', 'dethread', 'deutil', | |
131 '<(DEPTH)/third_party/libpng/libpng.gyp:libpng', | |
132 ], | |
133 'direct_dependent_settings': { | |
134 'include_dirs': [ | |
135 '<(DEPTH)/third_party/khronos_glcts/framework/qphelper', | |
136 ], | |
137 }, | |
138 'sources': [ | |
139 '<@(qphelper_srcs)', | |
140 ], | |
141 }, | |
142 { | |
143 'target_name': 'tcutil', | |
144 'type': 'static_library', | |
145 'conditions': [ | |
146 ['OS=="linux"', { | |
147 'cflags_cc': [ | |
148 # WA: Suppress "cast to 'const unsigned char *' from smaller | |
149 # integer type 'deUint32' (aka 'unsigned int')" compile warning | |
150 # from tcuRandomValueIterator.hpp. | |
151 # TODO(uartie) fix. | |
152 '-Wno-int-to-pointer-cast', | |
153 ], | |
154 }], | |
155 ], | |
156 'dependencies': [ | |
157 'delibs', 'qphelper', | |
158 '<(DEPTH)/third_party/libpng/libpng.gyp:libpng', | |
159 ], | |
160 'include_dirs': [ | |
161 '<(DEPTH)/third_party/khronos_glcts/framework/delibs/libpng', #png.hpp | |
162 ], | |
163 'export_dependent_settings': [ | |
164 'qphelper', | |
165 ], | |
166 'direct_dependent_settings': { | |
167 'include_dirs': [ | |
168 '<(DEPTH)/third_party/khronos_glcts/framework/common', | |
169 ], | |
170 }, | |
171 'sources': [ | |
172 '<@(tcutil_srcs)', | |
173 ], | |
174 }, | |
175 { | |
176 'target_name': 'glwrapper', | |
177 'type': 'static_library', | |
178 'dependencies': [ | |
179 'delibs', | |
180 '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib_nocheck', | |
181 '<(DEPTH)/gpu/gpu.gyp:command_buffer_service', | |
182 ], | |
183 'direct_dependent_settings': { | |
184 'include_dirs': [ | |
185 '<(DEPTH)/third_party/khronos_glcts/framework/opengl/wrapper', | |
186 ], | |
187 }, | |
188 'sources': [ | |
189 '<@(glwrapper_srcs)', | |
190 ], | |
191 }, | |
192 { | |
193 'target_name': 'glutil', | |
194 'type': 'static_library', | |
195 'dependencies': [ | |
196 'glwrapper', 'delibs', 'tcutil', | |
197 ], | |
198 'export_dependent_settings': [ | |
199 'glwrapper', | |
200 ], | |
201 'direct_dependent_settings': { | |
202 'include_dirs': [ | |
203 '<(DEPTH)/third_party/khronos_glcts/framework/opengl', | |
204 ], | |
205 }, | |
206 'sources': [ | |
207 '<@(glutil_srcs)', | |
208 ], | |
209 }, | |
210 { | |
211 'target_name': 'tcutil_egl', | |
212 'type': 'static_library', | |
213 'conditions': [ | |
214 ['OS=="linux"', { | |
215 'cflags_cc': [ | |
216 # WA: Suppress "cast to 'void *' from smaller | |
217 # integer type 'glw::GLuint' (aka 'unsigned int')" compile | |
218 # warning from tcuEglPlatform.cpp. | |
219 # TODO(uartie) fix. | |
220 '-Wno-int-to-void-pointer-cast', | |
221 ], | |
222 }], | |
223 ], | |
224 'dependencies': [ | |
225 'delibs', 'tcutil', 'glwrapper', | |
226 # TODO: We may want to phase out the old gles2_conform support in prefer
ence | |
227 # of this implementation. So eventually we'll need to move the egl_nati
ve | |
228 # stuff here or to a shareable location/path. | |
229 '<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_native
', | |
230 '<(DEPTH)/third_party/khronos/khronos.gyp:khronos_headers', | |
231 ], | |
232 'include_dirs': [ | |
233 '<(DEPTH)/third_party/khronos_glcts/framework/opengl', | |
234 ], | |
235 'direct_dependent_settings': { | |
236 'include_dirs': [ | |
237 '<(DEPTH)/third_party/khronos_glcts/framework/egl', | |
238 ], | |
239 }, | |
240 'export_dependent_settings': [ | |
241 '<(DEPTH)/third_party/khronos/khronos.gyp:khronos_headers', | |
242 ], | |
243 'sources': [ | |
244 '<@(tcutil_egl_srcs)', | |
245 ], | |
246 }, | |
247 ], | |
248 } | |
OLD | NEW |