Path: blob/21.2-virgl/src/gallium/targets/dri/meson.build
4565 views
# Copyright © 2017 Dylan Baker1# Copyright © 2018 Intel Corporation23# 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.2021# TODO: support non-static targets22# Static targets are always enabled in autotools (unless you modify23# configure.ac)2425gallium_dri_c_args = []26gallium_dri_ld_args = []27gallium_dri_link_depends = []28gallium_dri_drivers = []2930if with_ld_version_script31gallium_dri_ld_args += ['-Wl,--version-script', join_paths(meson.current_source_dir(), 'dri.sym')]32gallium_dri_link_depends += files('dri.sym')33endif34if with_ld_dynamic_list35gallium_dri_ld_args += ['-Wl,--dynamic-list', join_paths(meson.current_source_dir(), '../dri-vdpau.dyn')]36gallium_dri_link_depends += files('../dri-vdpau.dyn')37endif3839libgallium_dri = shared_library(40'gallium_dri',41files('target.c'),42include_directories : [43inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_dri_common, inc_gallium_drivers,44inc_gallium_winsys, include_directories('../../frontends/dri'),45],46gnu_symbol_visibility : 'hidden',47link_args : [ld_args_build_id, ld_args_gc_sections, gallium_dri_ld_args],48link_depends : gallium_dri_link_depends,49link_with : [50libdri, libmesa_gallium, libdricommon, libmegadriver_stub, libgalliumvl,51libgallium, libglapi, libpipe_loader_static, libws_null, libwsw, libswdri,52libswkmsdri,53],54dependencies : [55dep_selinux, dep_libdrm, dep_llvm, dep_thread, idep_xmlconfig, idep_mesautil,56driver_swrast, driver_r300, driver_r600, driver_radeonsi, driver_nouveau,57driver_kmsro, driver_v3d, driver_vc4, driver_freedreno, driver_etnaviv,58driver_tegra, driver_i915, driver_svga, driver_virgl,59driver_swr, driver_panfrost, driver_iris, driver_lima, driver_zink, driver_d3d12,60driver_asahi, driver_crocus61],62# Will be deleted during installation, see install_megadrivers.py63install : true,64install_dir : dri_drivers_path,65name_suffix : 'so',66)6768foreach d : [[with_gallium_kmsro, [69'armada-drm_dri.so',70'exynos_dri.so',71'hx8357d_dri.so',72'ili9225_dri.so',73'ili9341_dri.so',74'imx-drm_dri.so',75'imx-dcss_dri.so',76'ingenic-drm_dri.so',77'mali-dp_dri.so',78'mcde_dri.so',79'mediatek_dri.so',80'meson_dri.so',81'mi0283qt_dri.so',82'mxsfb-drm_dri.so',83'pl111_dri.so',84'repaper_dri.so',85'rockchip_dri.so',86'st7586_dri.so',87'st7735r_dri.so',88'stm_dri.so',89'sun4i-drm_dri.so',90]],91[with_gallium_radeonsi, 'radeonsi_dri.so'],92[with_gallium_nouveau, 'nouveau_dri.so'],93[with_gallium_freedreno, ['msm_dri.so', 'kgsl_dri.so']],94[with_gallium_softpipe or with_gallium_swr, 'swrast_dri.so'],95[with_gallium_softpipe and with_gallium_drisw_kms, 'kms_swrast_dri.so'],96[with_gallium_v3d, 'v3d_dri.so'],97[with_gallium_vc4, 'vc4_dri.so'],98[with_gallium_panfrost, 'panfrost_dri.so'],99[with_gallium_etnaviv, 'etnaviv_dri.so'],100[with_gallium_tegra, 'tegra_dri.so'],101[with_gallium_crocus, 'crocus_dri.so'],102[with_gallium_iris, 'iris_dri.so'],103[with_gallium_i915, 'i915_dri.so'],104[with_gallium_r300, 'r300_dri.so'],105[with_gallium_r600, 'r600_dri.so'],106[with_gallium_svga, 'vmwgfx_dri.so'],107[with_gallium_virgl, 'virtio_gpu_dri.so'],108[with_gallium_lima, 'lima_dri.so'],109[with_gallium_zink, 'zink_dri.so'],110[with_gallium_d3d12, 'd3d12_dri.so'],111[with_gallium_asahi, 'asahi_dri.so']]112if d[0]113gallium_dri_drivers += d[1]114endif115endforeach116117meson.add_install_script(118install_megadrivers_py.path(),119libgallium_dri.full_path(),120dri_drivers_path,121gallium_dri_drivers,122)123124125