Path: blob/21.2-virgl/src/amd/compiler/meson.build
4550 views
# Copyright © 2018 Valve Corporation12# Permission is hereby granted, free of charge, to any person obtaining a copy3# of this software and associated documentation files (the "Software"), to deal4# in the Software without restriction, including without limitation the rights5# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell6# copies of the Software, and to permit persons to whom the Software is7# furnished to do so, subject to the following conditions:89# The above copyright notice and this permission notice shall be included in10# all copies or substantial portions of the Software.1112# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR13# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,14# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE15# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER16# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,17# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE18# SOFTWARE.1920aco_depends = files('aco_opcodes.py')2122aco_opcodes_h = custom_target(23'aco_opcodes.h',24input : 'aco_opcodes_h.py',25output : 'aco_opcodes.h',26command : [prog_python, '@INPUT@'],27capture : true,28depend_files : aco_depends,29)3031aco_opcodes_c = custom_target(32'aco_opcodes.cpp',33input : 'aco_opcodes_cpp.py',34output : 'aco_opcodes.cpp',35command : [prog_python, '@INPUT@'],36capture : true,37depend_files : aco_depends,38)3940aco_builder_h = custom_target(41'aco_builder.h',42input : 'aco_builder_h.py',43output : 'aco_builder.h',44command : [prog_python, '@INPUT@'],45capture : true,46depend_files : aco_depends,47)4849libaco_files = files(50'aco_dead_code_analysis.cpp',51'aco_dominance.cpp',52'aco_instruction_selection.cpp',53'aco_instruction_selection.h',54'aco_instruction_selection_setup.cpp',55'aco_interface.cpp',56'aco_interface.h',57'aco_ir.cpp',58'aco_ir.h',59'aco_assembler.cpp',60'aco_form_hard_clauses.cpp',61'aco_insert_exec_mask.cpp',62'aco_insert_NOPs.cpp',63'aco_insert_waitcnt.cpp',64'aco_reduce_assign.cpp',65'aco_register_allocation.cpp',66'aco_live_var_analysis.cpp',67'aco_lower_phis.cpp',68'aco_lower_to_cssa.cpp',69'aco_lower_to_hw_instr.cpp',70'aco_optimizer.cpp',71'aco_optimizer_postRA.cpp',72'aco_opt_value_numbering.cpp',73'aco_print_asm.cpp',74'aco_print_ir.cpp',75'aco_reindex_ssa.cpp',76'aco_scheduler.cpp',77'aco_spill.cpp',78'aco_ssa_elimination.cpp',79'aco_statistics.cpp',80'aco_util.h',81'aco_validate.cpp',82)8384cpp_args_aco = cpp.get_supported_arguments(['-fno-exceptions', '-fno-rtti', '-Wimplicit-fallthrough', '-Wshadow', '-DNOMINMAX'])8586_libaco = static_library(87'aco',88[libaco_files, aco_opcodes_c, aco_opcodes_h, aco_builder_h],89include_directories : [90inc_include, inc_src, inc_compiler, inc_amd, inc_amd_common,91],92dependencies : [93dep_llvm, dep_thread, dep_valgrind, idep_nir_headers, idep_amdgfxregs_h, idep_mesautil,94],95gnu_symbol_visibility : 'hidden',96build_by_default : true,97cpp_args : cpp_args_aco,98)99100# Also link with aco101idep_aco = declare_dependency(102include_directories : include_directories('.'),103link_with : _libaco,104)105106107