@@ -109,7 +109,6 @@ template("glslang_sources_common") {
109
109
" SPIRV/SpvBuilder.cpp" ,
110
110
" SPIRV/SpvBuilder.h" ,
111
111
" SPIRV/SpvPostProcess.cpp" ,
112
- " SPIRV/SpvTools.cpp" ,
113
112
" SPIRV/SpvTools.h" ,
114
113
" SPIRV/bitutils.h" ,
115
114
" SPIRV/disassemble.cpp" ,
@@ -156,7 +155,7 @@ template("glslang_sources_common") {
156
155
" glslang/MachineIndependent/attribute.cpp" ,
157
156
" glslang/MachineIndependent/attribute.h" ,
158
157
" glslang/MachineIndependent/gl_types.h" ,
159
- " glslang/MachineIndependent/glslang_tab .cpp" ,
158
+ " glslang/MachineIndependent/glslang_angle_tab .cpp.h " ,
160
159
" glslang/MachineIndependent/glslang_tab.cpp.h" ,
161
160
" glslang/MachineIndependent/intermOut.cpp" ,
162
161
" glslang/MachineIndependent/iomapper.cpp" ,
@@ -207,9 +206,25 @@ template("glslang_sources_common") {
207
206
}
208
207
209
208
defines = []
209
+ if (invoker .is_angle ) {
210
+ sources += [
211
+ " glslang/MachineIndependent/glslang_angle_tab.cpp" ,
212
+ ]
213
+ defines += [ " GLSLANG_ANGLE" ]
214
+ }
215
+ else {
216
+ sources += [
217
+ " glslang/MachineIndependent/glslang_tab.cpp" ,
218
+ ]
219
+ }
220
+
210
221
if (invoker .enable_opt ) {
222
+ sources += [ " SPIRV/SpvTools.cpp" ]
211
223
defines += [ " ENABLE_OPT=1" ]
212
224
}
225
+ if (invoker .is_angle ) {
226
+ defines += [ " GLSLANG_ANGLE" ]
227
+ }
213
228
214
229
if (is_win ) {
215
230
sources += [ " glslang/OSDependent/Windows/ossource.cpp" ]
@@ -257,11 +272,13 @@ template("glslang_sources_common") {
257
272
glslang_sources_common (" glslang_lib_sources" ) {
258
273
enable_opt = ! glslang_angle
259
274
enable_hlsl = ! glslang_angle
275
+ is_angle = glslang_angle
260
276
}
261
277
262
278
glslang_sources_common (" glslang_sources" ) {
263
279
enable_opt = true
264
280
enable_hlsl = true
281
+ is_angle = false
265
282
}
266
283
267
284
source_set (" glslang_default_resource_limits_sources" ) {
0 commit comments