Path: blob/21.2-virgl/src/panfrost/lib/meson.build
4560 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.2021midgard_pack = custom_target(22'midgard_pack.h',23input : ['gen_pack.py', 'midgard.xml'],24output : 'midgard_pack.h',25command : [prog_python, '@INPUT@'],26capture : true,27)2829idep_midgard_pack = declare_dependency(30sources : [midgard_pack],31include_directories : include_directories('.'),32)3334pixel_format_versions = ['6', '7']35libpanfrost_pixel_format = []3637foreach ver : pixel_format_versions38libpanfrost_pixel_format += static_library(39'pan-format-v' + ver,40['pan_format.c', midgard_pack],41include_directories : [42inc_src, inc_include, inc_gallium, inc_mesa, inc_panfrost_hw, inc_gallium_aux, inc_panfrost_hw43],44c_args : ['-DPAN_ARCH=' + ver],45gnu_symbol_visibility : 'hidden',46dependencies : [idep_midgard_pack, dep_libdrm],47)48endforeach4950libpanfrost_lib_files = files(51'pan_encoder.h',5253'pan_afbc.c',54'pan_attributes.c',55'pan_bo.c',56'pan_blend.c',57'pan_blitter.c',58'pan_clear.c',59'pan_cs.c',60'pan_indirect_dispatch.c',61'pan_indirect_draw.c',62'pan_samples.c',63'pan_tiler.c',64'pan_texture.c',65'pan_shader.c',66'pan_scoreboard.c',67'pan_scratch.c',68'pan_props.c',69'pan_util.c',70)7172libpanfrost_decode_files = files(73'decode_common.c',74'decode.c',75)7677libpanfrost_lib = static_library(78'panfrost_lib',79[libpanfrost_lib_files, midgard_pack],80include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost_hw],81c_args : [no_override_init_args],82gnu_symbol_visibility : 'hidden',83dependencies: [dep_libdrm, idep_nir],84build_by_default : false,85link_with: [libpanfrost_pixel_format],86)8788libpanfrost_decode = static_library(89'panfrost_decode',90[libpanfrost_decode_files, midgard_pack],91include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost],92dependencies : idep_mesautil,93c_args : [no_override_init_args],94gnu_symbol_visibility : 'hidden',95build_by_default : false,96)9798libpanfrost_dep = declare_dependency(99link_with: [libpanfrost_lib, libpanfrost_decode, libpanfrost_midgard, libpanfrost_bifrost, libpanfrost_pixel_format],100include_directories: [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_panfrost_hw, inc_panfrost],101dependencies: [dep_libdrm, idep_nir, idep_midgard_pack],102)103104105