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