Path: blob/21.2-virgl/src/panfrost/midgard/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.2021libpanfrost_midgard_files = files(22'midgard_compile.c',23'mir.c',24'midgard_address.c',25'midgard_print.c',26'midgard_schedule.c',27'midgard_derivatives.c',28'midgard_emit.c',29'midgard_helper_invocations.c',30'midgard_ra.c',31'midgard_ra_pipeline.c',32'midgard_liveness.c',33'midgard_ops.c',34'mir_promote_uniforms.c',35'mir_squeeze.c',36'midgard_nir_lower_image_bitsize.c',37'midgard_nir_lower_helper_writes.c',38'midgard_opt_copy_prop.c',39'midgard_opt_dce.c',40'midgard_opt_perspective.c',41'midgard_errata_lod.c',42'nir_fuse_io_16.c',43)4445midgard_nir_algebraic_c = custom_target(46'midgard_nir_algebraic.c',47input : 'midgard_nir_algebraic.py',48output : 'midgard_nir_algebraic.c',49command : [50prog_python, '@INPUT@',51'-p', join_paths(meson.source_root(), 'src/compiler/nir/'),52],53capture : true,54depend_files : nir_algebraic_py,55)5657libpanfrost_midgard_disasm = static_library(58'panfrost_midgard_disasm',59['disassemble.c', 'midgard_ops.c', 'midgard_print_constant.c'],60include_directories : [61inc_mapi,62inc_mesa,63inc_gallium,64inc_gallium_aux,65inc_include,66inc_src,67inc_panfrost_hw,68],69c_args : [no_override_init_args],70gnu_symbol_visibility : 'hidden',71build_by_default : false,72)7374libpanfrost_midgard = static_library(75'panfrost_midgard',76[libpanfrost_midgard_files, midgard_nir_algebraic_c],77include_directories : [78inc_mapi,79inc_mesa,80inc_gallium,81inc_gallium_aux,82inc_include,83inc_src,84inc_panfrost_hw,85],86dependencies: [87idep_nir88],89link_with: [libpanfrost_util, libpanfrost_midgard_disasm],90c_args : [no_override_init_args],91gnu_symbol_visibility : 'hidden',92build_by_default : false,93)949596