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