Path: blob/21.2-virgl/src/asahi/compiler/meson.build
4564 views
# Copyright © 2018 Rob Clark1# Copyright © 2019 Collabora23# Permission is hereby granted, free of charge, to any person obtaining a copy4# of this software and associated documentation files (the "Software"), to deal5# in the Software without restriction, including without limitation the rights6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell7# copies of the Software, and to permit persons to whom the Software is8# furnished to do so, subject to the following conditions:910# The above copyright notice and this permission notice shall be included in11# all copies or substantial portions of the Software.1213# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE19# SOFTWARE.2021libasahi_agx_files = files(22'agx_compile.c',23'agx_dce.c',24'agx_liveness.c',25'agx_pack.c',26'agx_print.c',27'agx_optimizer.c',28'agx_register_allocate.c',29'agx_uniforms.c',30)3132agx_opcodes_h = custom_target(33'agx_opcodes.h',34input : ['agx_opcodes.h.py'],35output : 'agx_opcodes.h',36command : [prog_python, '@INPUT@'],37capture : true,38depend_files : files('agx_opcodes.py'),39)4041idep_agx_opcodes_h = declare_dependency(42sources : [agx_opcodes_h],43include_directories : include_directories('.'),44)4546agx_opcodes_c = custom_target(47'agx_opcodes.c',48input : ['agx_opcodes.c.py'],49output : 'agx_opcodes.c',50command : [prog_python, '@INPUT@'],51capture : true,52depend_files : files('agx_opcodes.py'),53)5455agx_builder_h = custom_target(56'agx_builder.h',57input : ['agx_builder.h.py'],58output : 'agx_builder.h',59command : [prog_python, '@INPUT@'],60capture : true,61depend_files : files('agx_opcodes.py'),62)6364idep_agx_builder_h = declare_dependency(65sources : [agx_builder_h],66include_directories : include_directories('.'),67)6869libasahi_compiler = static_library(70'asahi_compiler',71[libasahi_agx_files, agx_opcodes_c],72include_directories : [inc_include, inc_src, inc_mesa, inc_gallium, inc_gallium_aux, inc_mapi],73dependencies: [idep_nir, idep_agx_opcodes_h, idep_agx_builder_h, idep_agx_pack],74c_args : [no_override_init_args],75gnu_symbol_visibility : 'hidden',76build_by_default : false,77)787980