Path: blob/21.2-virgl/src/gallium/targets/pipe-loader/meson.build
4565 views
# Copyright © 2017-2018 Intel Corporation12# Permission is hereby granted, free of charge, to any person obtaining a copy3# of this software and associated documentation files (the "Software"), to deal4# in the Software without restriction, including without limitation the rights5# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell6# copies of the Software, and to permit persons to whom the Software is7# furnished to do so, subject to the following conditions:89# The above copyright notice and this permission notice shall be included in10# all copies or substantial portions of the Software.1112# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR13# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,14# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE15# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER16# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,17# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE18# SOFTWARE.1920pipe_loader_link_args = [ld_args_gc_sections]21pipe_loader_link_deps = []22pipe_loader_link_with = [libgallium]23pipe_loader_comp_args = []24pipe_loader_incs = [25inc_include, inc_src, inc_util, inc_gallium, inc_gallium_drivers,26inc_gallium_winsys, inc_gallium_aux,27]2829if (with_gallium_va or with_gallium_vdpau or with_gallium_omx != 'disabled' or30with_gallium_xvmc or with_dri or with_gallium_radeonsi)31pipe_loader_link_with += libgalliumvl32else33pipe_loader_link_with += libgalliumvl_stub34endif35if (with_gallium_va or with_gallium_vdpau or with_gallium_omx != 'disabled' or36with_gallium_xvmc)37pipe_loader_link_with += libgalliumvlwinsys38endif3940if with_ld_version_script41pipe_loader_link_args += [42'-Wl,--version-script', join_paths(meson.current_source_dir(), 'pipe.sym')43]44pipe_loader_link_deps += files('pipe.sym')45endif4647pipe_loader_install_dir = join_paths(get_option('libdir'), 'gallium-pipe')4849_kmsro_targets = [50driver_kmsro, driver_v3d, driver_vc4, driver_freedreno, driver_etnaviv,51driver_panfrost, driver_lima,52]5354if with_gallium_v3d55_kmsro_targets += [idep_xmlconfig, dep_expat]56endif5758pipe_loaders = [59[with_gallium_i915, 'i915', driver_i915, []],60[with_gallium_crocus, 'crocus', [driver_crocus, idep_xmlconfig], []],61[with_gallium_iris, 'iris', [driver_iris, idep_xmlconfig], []],62[with_gallium_nouveau, 'nouveau', driver_nouveau, []],63[with_gallium_r300, 'r300', driver_r300, []],64[with_gallium_r600, 'r600', driver_r600, []],65[with_gallium_radeonsi, 'radeonsi', [driver_radeonsi, idep_xmlconfig], []],66[with_gallium_freedreno, 'msm', driver_freedreno, []],67[with_gallium_kmsro, 'kmsro', _kmsro_targets, []],68[with_gallium_svga, 'vmwgfx', driver_svga, []],69[with_gallium_softpipe, 'swrast', [driver_swrast, driver_swr], [libwsw, libws_null]],70]7172foreach x : pipe_loaders73if x[0]74shared_library(75'pipe_@0@'.format(x[1]),76'pipe_@[email protected]'.format(x[1]),77c_args : [pipe_loader_comp_args, '-DPIPE_LOADER_DYNAMIC=1'],78cpp_args : [pipe_loader_comp_args],79gnu_symbol_visibility : 'hidden',80link_args : pipe_loader_link_args,81link_depends : pipe_loader_link_deps,82include_directories : pipe_loader_incs,83link_with : [pipe_loader_link_with, x[3]],84dependencies : [idep_mesautil, idep_nir, dep_thread, x[2]],85name_prefix : '',86install : true,87install_dir : pipe_loader_install_dir,88)89endif90endforeach919293