Path: blob/21.2-virgl/src/gallium/drivers/lima/meson.build
4565 views
# Copyright © 2018 Lima Project1#2# Permission is hereby granted, free of charge, to any person obtaining a3# copy of this software and associated documentation files (the "Software"),4# to deal in the Software without restriction, including without limitation5# the rights to use, copy, modify, merge, publish, distribute, sublicense,6# and/or sell copies of the Software, and to permit persons to whom the7# Software is furnished to do so, subject to the following conditions:8#9# The above copyright notice and this permission notice (including the next10# paragraph) shall be included in all copies or substantial portions of the11# Software.12#13# 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 SHALL16# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING18# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS19# IN THE SOFTWARE.2021files_lima = files(22'ir/gp/gpir.h',23'ir/gp/nir.c',24'ir/gp/node.c',25'ir/gp/lower.c',26'ir/gp/scheduler.c',27'ir/gp/instr.c',28'ir/gp/codegen.h',29'ir/gp/codegen.c',30'ir/gp/reduce_scheduler.c',31'ir/gp/regalloc.c',32'ir/gp/disasm.c',33'ir/gp/optimize.c',3435'ir/pp/ppir.h',36'ir/pp/nir.c',37'ir/pp/node.c',38'ir/pp/lower.c',39'ir/pp/scheduler.c',40'ir/pp/instr.c',41'ir/pp/regalloc.c',42'ir/pp/liveness.c',43'ir/pp/codegen.h',44'ir/pp/codegen.c',45'ir/pp/node_to_instr.c',46'ir/pp/disasm.c',4748'ir/lima_nir_duplicate_consts.c',49'ir/lima_nir_duplicate_intrinsic.c',50'ir/lima_nir_lower_uniform_to_scalar.c',51'ir/lima_nir_split_load_input.c',5253'ir/lima_ir.h',5455'lima_screen.c',56'lima_screen.h',57'lima_context.c',58'lima_context.h',59'lima_resource.c',60'lima_resource.h',61'lima_state.c',62'lima_disk_cache.c',63'lima_disk_cache.h',64'lima_draw.c',65'lima_program.c',66'lima_query.c',67'lima_bo.c',68'lima_bo.h',69'lima_job.c',70'lima_job.h',71'lima_parser.c',72'lima_parser.h',73'lima_util.c',74'lima_util.h',75'lima_texture.c',76'lima_texture.h',77'lima_fence.c',78'lima_fence.h',79'lima_format.h',80'lima_format.c',81'lima_gpu.h',82)8384lima_nir_algebraic_c = custom_target(85'lima_nir_algebraic.c',86input : 'ir/lima_nir_algebraic.py',87output : 'lima_nir_algebraic.c',88command : [89prog_python, '@INPUT@',90'-p', join_paths(meson.source_root(), 'src/compiler/nir/'),91],92capture : true,93depend_files : nir_algebraic_py,94)9596liblima = static_library(97'lima',98files_lima, lima_nir_algebraic_c,99include_directories : [100inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers,101inc_panfrost102],103dependencies : [dep_libdrm, idep_nir_headers, idep_mesautil],104)105106driver_lima = declare_dependency(107compile_args : '-DGALLIUM_LIMA',108link_with : [liblima, liblimawinsys, libpanfrost_shared],109dependencies : idep_nir,110)111112113lima_compiler = executable(114'lima_compiler',115files(116'standalone/lima_compiler_cmdline.c',117'standalone/glsl.cpp'118),119include_directories : [120inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers, inc_mesa, inc_mapi, inc_compiler,121],122dependencies : [123idep_nir,124idep_mesautil,125],126link_with : [127liblima,128libgallium,129libglsl_standalone,130libpanfrost_shared,131],132build_by_default : with_tools.contains('lima'),133install : with_tools.contains('lima'),134)135136lima_disasm = executable(137'lima_disasm',138files(139'standalone/lima_disasm.c',140),141include_directories : [142inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_drivers, inc_mesa, inc_mapi, inc_compiler,143],144dependencies : [145idep_mesautil,146],147link_with : [148liblima,149libpanfrost_shared,150],151build_by_default : with_tools.contains('lima'),152install : with_tools.contains('lima'),153)154155156