1LIBCOMPILER_FILES = \
2	builtin_type_macros.h \
3	glsl_types.cpp \
4	glsl_types.h \
5	nir_types.cpp \
6	nir_types.h \
7	shader_enums.c \
8	shader_enums.h \
9	shader_info.h
10
11# libglsl
12
13LIBGLSL_FILES = \
14	glsl/ast.h \
15	glsl/ast_array_index.cpp \
16	glsl/ast_expr.cpp \
17	glsl/ast_function.cpp \
18	glsl/ast_to_hir.cpp \
19	glsl/ast_type.cpp \
20	glsl/builtin_functions.cpp \
21	glsl/builtin_functions.h \
22	glsl/builtin_int64.h \
23	glsl/builtin_types.cpp \
24	glsl/builtin_variables.cpp \
25	glsl/generate_ir.cpp \
26	glsl/gl_nir_lower_atomics.c \
27	glsl/gl_nir_lower_images.c \
28	glsl/gl_nir_lower_buffers.c \
29	glsl/gl_nir_lower_samplers.c \
30	glsl/gl_nir_lower_samplers_as_deref.c \
31	glsl/gl_nir_link_atomics.c \
32	glsl/gl_nir_link_uniform_blocks.c \
33	glsl/gl_nir_link_uniform_initializers.c \
34	glsl/gl_nir_link_uniforms.c \
35	glsl/gl_nir_link_xfb.c \
36	glsl/gl_nir_linker.c \
37	glsl/gl_nir_linker.h \
38	glsl/gl_nir.h \
39	glsl/glsl_parser_extras.cpp \
40	glsl/glsl_parser_extras.h \
41	glsl/glsl_symbol_table.cpp \
42	glsl/glsl_symbol_table.h \
43	glsl/glsl_to_nir.cpp \
44	glsl/glsl_to_nir.h \
45	glsl/hir_field_selection.cpp \
46	glsl/ir_array_refcount.cpp \
47	glsl/ir_array_refcount.h \
48	glsl/ir_basic_block.cpp \
49	glsl/ir_basic_block.h \
50	glsl/ir_builder.cpp \
51	glsl/ir_builder.h \
52	glsl/ir_clone.cpp \
53	glsl/ir_constant_expression.cpp \
54	glsl/ir.cpp \
55	glsl/ir.h \
56	glsl/ir_equals.cpp \
57	glsl/ir_expression_flattening.cpp \
58	glsl/ir_expression_flattening.h \
59	glsl/ir_function_can_inline.cpp \
60	glsl/ir_function_detect_recursion.cpp \
61	glsl/ir_function_inlining.h \
62	glsl/ir_function.cpp \
63	glsl/ir_hierarchical_visitor.cpp \
64	glsl/ir_hierarchical_visitor.h \
65	glsl/ir_hv_accept.cpp \
66	glsl/ir_optimization.h \
67	glsl/ir_print_visitor.cpp \
68	glsl/ir_print_visitor.h \
69	glsl/ir_reader.cpp \
70	glsl/ir_reader.h \
71	glsl/ir_rvalue_visitor.cpp \
72	glsl/ir_rvalue_visitor.h \
73	glsl/ir_set_program_inouts.cpp \
74	glsl/ir_uniform.h \
75	glsl/ir_validate.cpp \
76	glsl/ir_variable_refcount.cpp \
77	glsl/ir_variable_refcount.h \
78	glsl/ir_visitor.h \
79	glsl/linker.cpp \
80	glsl/linker.h \
81	glsl/linker_util.h \
82	glsl/linker_util.cpp \
83	glsl/link_atomics.cpp \
84	glsl/link_functions.cpp \
85	glsl/link_interface_blocks.cpp \
86	glsl/link_uniforms.cpp \
87	glsl/link_uniform_initializers.cpp \
88	glsl/link_uniform_block_active_visitor.cpp \
89	glsl/link_uniform_block_active_visitor.h \
90	glsl/link_uniform_blocks.cpp \
91	glsl/link_varyings.cpp \
92	glsl/link_varyings.h \
93	glsl/list.h \
94	glsl/loop_analysis.cpp \
95	glsl/loop_analysis.h \
96	glsl/loop_unroll.cpp \
97	glsl/lower_blend_equation_advanced.cpp \
98	glsl/lower_builtins.cpp \
99	glsl/lower_buffer_access.cpp \
100	glsl/lower_buffer_access.h \
101	glsl/lower_const_arrays_to_uniforms.cpp \
102	glsl/lower_cs_derived.cpp \
103	glsl/lower_discard.cpp \
104	glsl/lower_discard_flow.cpp \
105	glsl/lower_distance.cpp \
106	glsl/lower_if_to_cond_assign.cpp \
107	glsl/lower_instructions.cpp \
108	glsl/lower_int64.cpp \
109	glsl/lower_jumps.cpp \
110	glsl/lower_mat_op_to_vec.cpp \
111	glsl/lower_offset_array.cpp \
112	glsl/lower_packed_varyings.cpp \
113	glsl/lower_named_interface_blocks.cpp \
114	glsl/lower_packing_builtins.cpp \
115	glsl/lower_precision.cpp \
116	glsl/lower_subroutine.cpp \
117	glsl/lower_tess_level.cpp \
118	glsl/lower_texture_projection.cpp \
119	glsl/lower_variable_index_to_cond_assign.cpp \
120	glsl/lower_vec_index_to_cond_assign.cpp \
121	glsl/lower_vec_index_to_swizzle.cpp \
122	glsl/lower_vector.cpp \
123	glsl/lower_vector_derefs.cpp \
124	glsl/lower_vector_insert.cpp \
125	glsl/lower_vertex_id.cpp \
126	glsl/lower_output_reads.cpp \
127	glsl/lower_shared_reference.cpp \
128	glsl/lower_ubo_reference.cpp \
129	glsl/lower_xfb_varying.cpp \
130	glsl/opt_algebraic.cpp \
131	glsl/opt_array_splitting.cpp \
132	glsl/opt_conditional_discard.cpp \
133	glsl/opt_constant_folding.cpp \
134	glsl/opt_constant_propagation.cpp \
135	glsl/opt_constant_variable.cpp \
136	glsl/opt_copy_propagation_elements.cpp \
137	glsl/opt_dead_builtin_variables.cpp \
138	glsl/opt_dead_builtin_varyings.cpp \
139	glsl/opt_dead_code.cpp \
140	glsl/opt_dead_code_local.cpp \
141	glsl/opt_dead_functions.cpp \
142	glsl/opt_flatten_nested_if_blocks.cpp \
143	glsl/opt_flip_matrices.cpp \
144	glsl/opt_function_inlining.cpp \
145	glsl/opt_if_simplification.cpp \
146	glsl/opt_minmax.cpp \
147	glsl/opt_rebalance_tree.cpp \
148	glsl/opt_redundant_jumps.cpp \
149	glsl/opt_structure_splitting.cpp \
150	glsl/opt_swizzle.cpp \
151	glsl/opt_tree_grafting.cpp \
152	glsl/opt_vectorize.cpp \
153	glsl/program.h \
154	glsl/propagate_invariance.cpp \
155	glsl/s_expression.cpp \
156	glsl/s_expression.h \
157	glsl/serialize.cpp \
158	glsl/serialize.h \
159	glsl/string_to_uint_map.cpp \
160	glsl/string_to_uint_map.h
161
162LIBGLSL_SHADER_CACHE_FILES = \
163	glsl/shader_cache.cpp \
164	glsl/shader_cache.h
165
166# glsl_compiler
167
168GLSL_COMPILER_CXX_FILES = \
169	glsl/ir_builder_print_visitor.cpp \
170	glsl/ir_builder_print_visitor.h \
171	glsl/opt_add_neg_to_sub.h \
172	glsl/standalone_scaffolding.cpp \
173	glsl/standalone_scaffolding.h \
174	glsl/standalone.cpp \
175	glsl/standalone.h
176
177# libglsl generated sources
178LIBGLSL_GENERATED_FILES = \
179	glsl/ir_expression_operation.h \
180	glsl/ir_expression_operation_constant.h \
181	glsl/ir_expression_operation_strings.h \
182	glsl/glsl_lexer.cpp \
183	glsl/glsl_parser.cpp \
184	glsl/glsl_parser.h \
185	glsl/float64_glsl.h
186
187# libglcpp
188
189LIBGLCPP_FILES = \
190	glsl/glcpp/glcpp.h \
191	glsl/glcpp/pp.c
192
193LIBGLCPP_GENERATED_FILES = \
194	glsl/glcpp/glcpp-lex.c \
195	glsl/glcpp/glcpp-parse.c
196
197NIR_GENERATED_FILES = \
198	nir/nir_builder_opcodes.h \
199	nir/nir_constant_expressions.c \
200	nir/nir_intrinsics.c \
201	nir/nir_intrinsics.h \
202	nir/nir_opcodes.c \
203	nir/nir_opcodes.h \
204	nir/nir_opt_algebraic.c
205
206NIR_FILES = \
207	nir/nir.c \
208	nir/nir.h \
209	nir/nir_builder.h \
210	nir/nir_builtin_builder.c \
211	nir/nir_builtin_builder.h \
212	nir/nir_conversion_builder.h \
213	nir/nir_clone.c \
214	nir/nir_constant_expressions.h \
215	nir/nir_control_flow.c \
216	nir/nir_control_flow.h \
217	nir/nir_control_flow_private.h \
218	nir/nir_convert_ycbcr.c \
219	nir/nir_deref.c \
220	nir/nir_deref.h \
221	nir/nir_divergence_analysis.c \
222	nir/nir_dominance.c \
223	nir/nir_format_convert.h \
224	nir/nir_from_ssa.c \
225	nir/nir_gather_info.c \
226	nir/nir_gather_ssa_types.c \
227	nir/nir_gather_xfb_info.c \
228	nir/nir_gs_count_vertices.c \
229	nir/nir_inline_functions.c \
230        nir/nir_inline_uniforms.c \
231	nir/nir_instr_set.c \
232	nir/nir_instr_set.h \
233	nir/nir_linking_helpers.c \
234	nir/nir_liveness.c \
235	nir/nir_loop_analyze.c \
236	nir/nir_loop_analyze.h \
237	nir/nir_lower_alpha_test.c \
238	nir/nir_lower_alu.c \
239	nir/nir_lower_alu_to_scalar.c \
240	nir/nir_lower_amul.c \
241	nir/nir_lower_array_deref_of_vec.c \
242	nir/nir_lower_atomics_to_ssbo.c \
243	nir/nir_lower_bitmap.c \
244	nir/nir_lower_bit_size.c \
245	nir/nir_lower_bool_to_bitsize.c \
246	nir/nir_lower_bool_to_float.c \
247	nir/nir_lower_bool_to_int32.c \
248	nir/nir_lower_cl_images_to_tex.c \
249	nir/nir_lower_clamp_color_outputs.c \
250	nir/nir_lower_clip.c \
251	nir/nir_lower_clip_cull_distance_arrays.c \
252	nir/nir_lower_clip_disable.c \
253	nir/nir_lower_clip_halfz.c \
254	nir/nir_lower_convert_alu_types.c \
255	nir/nir_lower_variable_initializers.c \
256	nir/nir_lower_discard_to_demote.c \
257	nir/nir_lower_double_ops.c \
258	nir/nir_lower_drawpixels.c \
259	nir/nir_lower_fb_read.c \
260	nir/nir_lower_flatshade.c \
261	nir/nir_lower_flrp.c \
262	nir/nir_lower_fragcoord_wtrans.c \
263	nir/nir_lower_frexp.c \
264	nir/nir_lower_global_vars_to_local.c \
265	nir/nir_lower_goto_ifs.c \
266	nir/nir_lower_gs_intrinsics.c \
267	nir/nir_lower_load_const_to_scalar.c \
268	nir/nir_lower_locals_to_regs.c \
269	nir/nir_lower_idiv.c \
270	nir/nir_lower_indirect_derefs.c \
271	nir/nir_lower_input_attachments.c \
272	nir/nir_lower_int64.c \
273	nir/nir_lower_interpolation.c \
274	nir/nir_lower_int_to_float.c \
275	nir/nir_lower_io.c \
276	nir/nir_lower_io_arrays_to_elements.c \
277	nir/nir_lower_io_to_temporaries.c \
278	nir/nir_lower_io_to_scalar.c \
279	nir/nir_lower_io_to_vector.c \
280	nir/nir_lower_multiview.c \
281	nir/nir_lower_mediump_outputs.c \
282	nir/nir_lower_memcpy.c \
283	nir/nir_lower_memory_model.c \
284	nir/nir_lower_non_uniform_access.c \
285	nir/nir_lower_packing.c \
286	nir/nir_lower_passthrough_edgeflags.c \
287	nir/nir_lower_patch_vertices.c \
288	nir/nir_lower_phis_to_scalar.c \
289	nir/nir_lower_pntc_ytransform.c \
290	nir/nir_lower_point_size.c \
291	nir/nir_lower_point_size_mov.c \
292	nir/nir_lower_regs_to_ssa.c \
293	nir/nir_lower_returns.c \
294	nir/nir_lower_samplers.c \
295	nir/nir_lower_scratch.c \
296	nir/nir_lower_ssbo.c \
297	nir/nir_lower_subgroups.c \
298	nir/nir_lower_system_values.c \
299	nir/nir_lower_tex.c \
300	nir/nir_lower_to_source_mods.c \
301	nir/nir_lower_two_sided_color.c \
302	nir/nir_lower_ubo_vec4.c \
303	nir/nir_lower_uniforms_to_ubo.c \
304	nir/nir_lower_vars_to_ssa.c \
305	nir/nir_lower_var_copies.c \
306	nir/nir_lower_vec_to_movs.c \
307	nir/nir_lower_vec3_to_vec4.c \
308	nir/nir_lower_viewport_transform.c \
309	nir/nir_lower_wpos_center.c \
310	nir/nir_lower_wpos_ytransform.c \
311	nir/nir_lower_wrmasks.c \
312	nir/nir_metadata.c \
313	nir/nir_move_vec_src_uses_to_dest.c \
314	nir/nir_normalize_cubemap_coords.c \
315	nir/nir_opt_access.c \
316	nir/nir_opt_barriers.c \
317	nir/nir_opt_combine_stores.c \
318	nir/nir_opt_comparison_pre.c \
319	nir/nir_opt_conditional_discard.c \
320	nir/nir_opt_constant_folding.c \
321	nir/nir_opt_copy_prop_vars.c \
322	nir/nir_opt_copy_propagate.c \
323	nir/nir_opt_cse.c \
324	nir/nir_opt_dce.c \
325	nir/nir_opt_dead_cf.c \
326	nir/nir_opt_dead_write_vars.c \
327	nir/nir_opt_find_array_copies.c \
328	nir/nir_opt_gcm.c \
329	nir/nir_opt_idiv_const.c \
330	nir/nir_opt_if.c \
331	nir/nir_opt_intrinsics.c \
332	nir/nir_opt_loop_unroll.c \
333	nir/nir_opt_large_constants.c \
334	nir/nir_opt_load_store_vectorize.c \
335	nir/nir_opt_memcpy.c \
336	nir/nir_opt_move.c \
337	nir/nir_opt_peephole_select.c \
338	nir/nir_opt_rematerialize_compares.c \
339	nir/nir_opt_remove_phis.c \
340	nir/nir_opt_shrink_vectors.c \
341	nir/nir_opt_sink.c \
342	nir/nir_opt_trivial_continues.c \
343	nir/nir_opt_undef.c \
344	nir/nir_opt_uniform_atomics.c \
345	nir/nir_opt_vectorize.c \
346	nir/nir_phi_builder.c \
347	nir/nir_phi_builder.h \
348	nir/nir_print.c \
349	nir/nir_propagate_invariant.c \
350	nir/nir_range_analysis.c \
351	nir/nir_range_analysis.h \
352	nir/nir_remove_dead_variables.c \
353	nir/nir_repair_ssa.c \
354	nir/nir_schedule.c \
355	nir/nir_schedule.h \
356	nir/nir_search.c \
357	nir/nir_search.h \
358	nir/nir_search_helpers.h \
359	nir/nir_serialize.c \
360	nir/nir_serialize.h \
361	nir/nir_split_per_member_structs.c \
362	nir/nir_split_var_copies.c \
363	nir/nir_split_vars.c \
364	nir/nir_sweep.c \
365	nir/nir_to_lcssa.c \
366	nir/nir_validate.c \
367	nir/nir_vla.h \
368	nir/nir_vulkan.h \
369	nir/nir_worklist.c \
370	nir/nir_worklist.h \
371	nir/nir_xfb_info.h
372
373SPIRV_GENERATED_FILES = \
374	spirv/spirv_info.c \
375	spirv/vtn_gather_types.c \
376	spirv/vtn_generator_ids.h
377
378SPIRV_FILES = \
379	spirv/GLSL.ext.AMD.h \
380	spirv/GLSL.std.450.h \
381	spirv/gl_spirv.c \
382	spirv/nir_load_libclc.c \
383	spirv/nir_lower_libclc.c \
384	spirv/nir_spirv.h \
385	spirv/OpenCL.std.h \
386	spirv/spirv.h \
387	spirv/spirv_info.h \
388	spirv/spirv_to_nir.c \
389	spirv/vtn_alu.c \
390	spirv/vtn_amd.c \
391	spirv/vtn_cfg.c \
392	spirv/vtn_glsl450.c \
393	spirv/vtn_opencl.c \
394	spirv/vtn_private.h \
395	spirv/vtn_subgroup.c \
396	spirv/vtn_variables.c
397