Path: blob/21.2-virgl/src/gallium/targets/va/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)2324va_link_args = []25va_link_depends = []26va_drivers = []2728if with_ld_version_script29va_link_args += ['-Wl,--version-script', join_paths(meson.current_source_dir(), 'va.sym')]30va_link_depends += files('va.sym')31endif3233libva_gallium = shared_library(34'gallium_drv_video',35'target.c',36gnu_symbol_visibility : 'hidden',37link_args : [va_link_args, ld_args_gc_sections],38include_directories : [39inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_gallium_winsys, inc_gallium_drivers,40],41link_whole : [libva_st],42link_with : [43libgalliumvlwinsys, libgalliumvl, libgallium,44libpipe_loader_static, libws_null, libwsw, libswdri, libswkmsdri,45],46dependencies : [47dep_libdrm, driver_r600, driver_radeonsi, driver_nouveau,48idep_mesautil,49],50link_depends : va_link_depends,51# Will be deleted during installation, see install_megadrivers.py52install : true,53install_dir : va_drivers_path,54name_suffix : 'so',55)5657foreach d : [[with_gallium_r600, 'r600'],58[with_gallium_radeonsi, 'radeonsi'],59[with_gallium_nouveau, 'nouveau']]60if d[0]61va_drivers += '@0@_drv_video.so'.format(d[1])62endif63endforeach6465meson.add_install_script(66install_megadrivers_py.path(),67libva_gallium.full_path(),68va_drivers_path,69va_drivers,70)717273