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