1bcc6eddd335e97d49ed2ef3a1440f94d58dce12dJon Smirl# shared source lists for Makefile, SConscript, and Android.mk
2bcc6eddd335e97d49ed2ef3a1440f94d58dce12dJon Smirl
3adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellGLSL_SRCDIR = $(top_srcdir)/src/glsl
4adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellGLSL_BUILDDIR = $(top_builddir)/src/glsl
5adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
6adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell# libglcpp
7adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
8adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellLIBGLCPP_FILES = \
9adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/glcpp/pp.c
10adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
11adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellLIBGLCPP_GENERATED_FILES = \
12adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_BUILDDIR)/glcpp/glcpp-lex.c \
13adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_BUILDDIR)/glcpp/glcpp-parse.c
14adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
15adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell# libglsl
16adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
17adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellLIBGLSL_FILES = \
18adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/strtod.c \
19adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ralloc.c
20adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
21adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellLIBGLSL_CXX_FILES = \
22adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ast_expr.cpp \
23adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ast_function.cpp \
24adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ast_to_hir.cpp \
25adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ast_type.cpp \
26adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/builtin_variables.cpp \
27adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/glsl_parser_extras.cpp \
28adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/glsl_types.cpp \
29adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/glsl_symbol_table.cpp \
30adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/hir_field_selection.cpp \
31adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_basic_block.cpp \
32adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_builder.cpp \
33adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_clone.cpp \
34adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_constant_expression.cpp \
35adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir.cpp \
36adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_expression_flattening.cpp \
37adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_function_can_inline.cpp \
38adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_function_detect_recursion.cpp \
39adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_function.cpp \
40adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_hierarchical_visitor.cpp \
41adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_hv_accept.cpp \
42e946688edac5cdf153652defae3ef732a3487416Ian Romanick	$(GLSL_SRCDIR)/ir_import_prototypes.cpp \
43ae4a1cc0666860bf5cc37a5cb549afc9aa5448b0Jon Smirl	$(GLSL_SRCDIR)/ir_print_visitor.cpp \
44ae4a1cc0666860bf5cc37a5cb549afc9aa5448b0Jon Smirl	$(GLSL_SRCDIR)/ir_reader.cpp \
45adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_rvalue_visitor.cpp \
46adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_set_program_inouts.cpp \
47adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_validate.cpp \
48adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/ir_variable_refcount.cpp \
49adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/linker.cpp \
50adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/link_functions.cpp \
51adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/link_uniforms.cpp \
52adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/link_uniform_initializers.cpp \
53adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/loop_analysis.cpp \
54adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/loop_controls.cpp \
55adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/loop_unroll.cpp \
56adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_clip_distance.cpp \
57adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_discard.cpp \
58adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_discard_flow.cpp \
59adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_if_to_cond_assign.cpp \
60adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_instructions.cpp \
61adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_jumps.cpp \
62adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_mat_op_to_vec.cpp \
63adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_noise.cpp \
64adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_texture_projection.cpp \
65adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_variable_index_to_cond_assign.cpp \
66adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_vec_index_to_cond_assign.cpp \
67adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_vec_index_to_swizzle.cpp \
68adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_vector.cpp \
69adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_output_reads.cpp \
70adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/lower_ubo_reference.cpp \
71adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_algebraic.cpp \
72adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_array_splitting.cpp \
73adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_constant_folding.cpp \
74adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_constant_propagation.cpp \
75adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_constant_variable.cpp \
76adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_copy_propagation.cpp \
77adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_copy_propagation_elements.cpp \
78adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_dead_code.cpp \
79adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_dead_code_local.cpp \
80adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_dead_functions.cpp \
81adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_function_inlining.cpp \
82adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_if_simplification.cpp \
83adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_noop_swizzle.cpp \
84adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_redundant_jumps.cpp \
85adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_structure_splitting.cpp \
86adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_swizzle_swizzle.cpp \
87adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/opt_tree_grafting.cpp \
88adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/s_expression.cpp
89adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
90adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell# glsl_compiler
91adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
92adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellGLSL_COMPILER_CXX_FILES = \
93adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/standalone_scaffolding.cpp \
94adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/main.cpp
95adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
96adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell# builtin_compiler
97adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell#
98adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell# This is built before libglsl to generate builtin_funciton.cpp for libglsl.
99adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell# For this to work, a dummy version of builtin_function.cpp,
100adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell# builtin_stubs.cpp, is used.
101273e52f86fa41564f573c8e84d013f995e01a8f0Alan Hourihane
102adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellBUILTIN_COMPILER_CXX_FILES = \
103adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_SRCDIR)/builtin_stubs.cpp
104adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
105adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellBUILTIN_COMPILER_GENERATED_CXX_FILES = \
106adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_BUILDDIR)/glsl_lexer.cc \
107adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_BUILDDIR)/glsl_parser.cc
108adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell
109adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell# libglsl generated sources
110adbec39bbf671ad80f6c557801e274cac0d305faKeith WhitwellLIBGLSL_GENERATED_CXX_FILES = \
111adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(BUILTIN_COMPILER_GENERATED_CXX_FILES) \
112adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell	$(GLSL_BUILDDIR)/builtin_function.cpp
113adbec39bbf671ad80f6c557801e274cac0d305faKeith Whitwell