From afb3aefb1ceba886f2a5d8274e930b39274baf5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 9 Dec 2018 16:20:03 -0800 Subject: [PATCH] glsl-optimizer: Add explicitly files to project. --- scripts/shaderc.lua | 170 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 162 insertions(+), 8 deletions(-) diff --git a/scripts/shaderc.lua b/scripts/shaderc.lua index bf8580418..805e3e760 100644 --- a/scripts/shaderc.lua +++ b/scripts/shaderc.lua @@ -244,14 +244,168 @@ project "glsl-optimizer" } files { - path.join(GLSL_OPTIMIZER, "src/mesa/**.c"), - path.join(GLSL_OPTIMIZER, "src/glsl/**.cpp"), - path.join(GLSL_OPTIMIZER, "src/mesa/**.h"), - path.join(GLSL_OPTIMIZER, "src/glsl/**.c"), - path.join(GLSL_OPTIMIZER, "src/glsl/**.cpp"), - path.join(GLSL_OPTIMIZER, "src/glsl/**.h"), - path.join(GLSL_OPTIMIZER, "src/util/**.c"), - path.join(GLSL_OPTIMIZER, "src/util/**.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/glcpp/glcpp.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/glcpp/glcpp-lex.c"), + path.join(GLSL_OPTIMIZER, "src/glsl/glcpp/glcpp-parse.c"), + path.join(GLSL_OPTIMIZER, "src/glsl/glcpp/glcpp-parse.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/glcpp/pp.c"), + + path.join(GLSL_OPTIMIZER, "src/glsl/ast.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ast_array_index.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ast_expr.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ast_function.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ast_to_hir.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ast_type.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/builtin_functions.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/builtin_type_macros.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/builtin_types.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/builtin_variables.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/glsl_lexer.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/glsl_optimizer.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/glsl_optimizer.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/glsl_parser.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/glsl_parser.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/glsl_parser_extras.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/glsl_parser_extras.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/glsl_symbol_table.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/glsl_symbol_table.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/glsl_types.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/glsl_types.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/hir_field_selection.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_basic_block.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_basic_block.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_builder.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_builder.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_clone.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_constant_expression.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_equals.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_expression_flattening.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_expression_flattening.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_function.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_function_can_inline.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_function_detect_recursion.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_function_inlining.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_hierarchical_visitor.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_hierarchical_visitor.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_hv_accept.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_import_prototypes.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_optimization.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_print_glsl_visitor.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_print_glsl_visitor.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_print_metal_visitor.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_print_metal_visitor.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_print_visitor.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_print_visitor.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_rvalue_visitor.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_rvalue_visitor.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_stats.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_stats.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_uniform.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_unused_structs.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_unused_structs.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_validate.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_variable_refcount.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_variable_refcount.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/ir_visitor.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/link_atomics.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/link_functions.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/link_interface_blocks.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/link_uniform_block_active_visitor.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/link_uniform_block_active_visitor.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/link_uniform_blocks.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/link_uniform_initializers.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/link_uniforms.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/link_varyings.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/link_varyings.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/linker.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/linker.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/list.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/loop_analysis.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/loop_analysis.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/loop_controls.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/loop_unroll.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_clip_distance.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_discard.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_discard_flow.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_if_to_cond_assign.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_instructions.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_jumps.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_mat_op_to_vec.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_named_interface_blocks.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_noise.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_offset_array.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_output_reads.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_packed_varyings.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_packing_builtins.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_ubo_reference.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_variable_index_to_cond_assign.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_vec_index_to_cond_assign.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_vec_index_to_swizzle.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_vector.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_vector_insert.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/lower_vertex_id.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_algebraic.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_array_splitting.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_constant_folding.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_constant_propagation.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_constant_variable.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_copy_propagation.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_copy_propagation_elements.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_cse.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_dead_builtin_variables.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_dead_builtin_varyings.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_dead_code.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_dead_code_local.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_dead_functions.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_flatten_nested_if_blocks.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_flip_matrices.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_function_inlining.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_if_simplification.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_minmax.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_noop_swizzle.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_rebalance_tree.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_redundant_jumps.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_structure_splitting.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_swizzle_swizzle.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_tree_grafting.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/opt_vectorize.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/program.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/s_expression.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/s_expression.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/standalone_scaffolding.cpp"), + path.join(GLSL_OPTIMIZER, "src/glsl/standalone_scaffolding.h"), + path.join(GLSL_OPTIMIZER, "src/glsl/strtod.c"), + path.join(GLSL_OPTIMIZER, "src/glsl/strtod.h"), + + path.join(GLSL_OPTIMIZER, "src/mesa/main/compiler.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/main/config.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/main/context.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/main/core.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/main/dd.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/main/errors.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/main/glheader.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/main/glminimal.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/main/imports.c"), + path.join(GLSL_OPTIMIZER, "src/mesa/main/imports.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/main/macros.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/main/mtypes.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/main/simple_list.h"), + + path.join(GLSL_OPTIMIZER, "src/mesa/program/hash_table.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/program/prog_hash_table.c"), + path.join(GLSL_OPTIMIZER, "src/mesa/program/prog_instruction.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/program/prog_parameter.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/program/prog_statevars.h"), + path.join(GLSL_OPTIMIZER, "src/mesa/program/symbol_table.c"), + path.join(GLSL_OPTIMIZER, "src/mesa/program/symbol_table.h"), + + path.join(GLSL_OPTIMIZER, "src/util/hash_table.c"), + path.join(GLSL_OPTIMIZER, "src/util/hash_table.h"), + path.join(GLSL_OPTIMIZER, "src/util/macros.h"), + path.join(GLSL_OPTIMIZER, "src/util/ralloc.c"), + path.join(GLSL_OPTIMIZER, "src/util/ralloc.h"), } removefiles {