Path: blob/21.2-virgl/src/gallium/targets/xvmc/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)2324xvmc_link_args = []25xvmc_link_depends = []26xvmc_drivers = []2728if with_ld_version_script29xvmc_link_args += ['-Wl,--version-script', join_paths(meson.current_source_dir(), 'xvmc.sym')]30xvmc_link_depends += files('xvmc.sym')31endif3233libxvmc_gallium = shared_library(34'XvMCgallium',35'target.c',36gnu_symbol_visibility : 'hidden',37link_args : [xvmc_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 : [libxvmc_st],42link_with : [43libgalliumvlwinsys, libgalliumvl, libgallium,44libpipe_loader_static, libws_null, libwsw, libswdri, libswkmsdri,45],46dependencies : [idep_mesautil, driver_r600, driver_nouveau],47link_depends : xvmc_link_depends,48# Will be deleted during installation, see install_megadrivers.py49install : true,50install_dir : xvmc_drivers_path,51name_suffix : 'so',52version : '@0@.@[email protected]'.format(XVMC_MAJOR, XVMC_MINOR),53)5455foreach d : [[with_gallium_r600, 'r600'], [with_gallium_nouveau, 'nouveau']]56if d[0]57xvmc_drivers += 'libXvMC@[email protected].@1@.@[email protected]'.format(d[1], XVMC_MAJOR, XVMC_MINOR)58endif59endforeach6061meson.add_install_script(62install_megadrivers_py.path(),63libxvmc_gallium.full_path(),64xvmc_drivers_path,65xvmc_drivers,66)676869