Path: blob/21.2-virgl/src/gallium/targets/vdpau/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.1920# TODO: support non-static targets21# Static targets are always enabled in autotools (unless you modify22# configure.ac)2324vdpau_link_args = []25vdpau_link_depends = []26vdpau_drivers = []2728if with_ld_version_script29vdpau_link_args += ['-Wl,--version-script', join_paths(meson.current_source_dir(), 'vdpau.sym')]30vdpau_link_depends += files('vdpau.sym')31endif32if with_ld_dynamic_list33vdpau_link_args += ['-Wl,--dynamic-list', join_paths(meson.current_source_dir(), '../dri-vdpau.dyn')]34vdpau_link_depends += files('../dri-vdpau.dyn')35endif363738libvdpau_gallium = shared_library(39'vdpau_gallium',40'target.c',41gnu_symbol_visibility : 'hidden',42link_args : [vdpau_link_args, ld_args_gc_sections],43include_directories : [44inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_gallium_winsys, inc_gallium_drivers,45],46link_whole : [libvdpau_st],47link_with : [48libgalliumvlwinsys, libgalliumvl, libgallium,49libpipe_loader_static, libws_null, libwsw, libswdri, libswkmsdri,50],51dependencies : [52idep_mesautil,53driver_r300, driver_r600, driver_radeonsi, driver_nouveau,54],55link_depends : vdpau_link_depends,56soversion : '@0@.@[email protected]'.format(VDPAU_MAJOR, VDPAU_MINOR),57# Will be deleted during installation, see install_megadrivers.py58install : true,59install_dir : vdpau_drivers_path,60name_suffix : 'so',61)62foreach d : [[with_gallium_r300, 'r300'],63[with_gallium_r600, 'r600'],64[with_gallium_radeonsi, 'radeonsi'],65[with_gallium_nouveau, 'nouveau']]66if d[0]67vdpau_drivers += 'libvdpau_@[email protected].@1@.@[email protected]'.format(d[1], VDPAU_MAJOR, VDPAU_MINOR)68endif69endforeach7071meson.add_install_script(72install_megadrivers_py.path(),73libvdpau_gallium.full_path(),74vdpau_drivers_path,75vdpau_drivers,76)777879