Path: blob/21.2-virgl/src/gallium/frontends/xvmc/meson.build
4565 views
# Copyright © 2017, 2019 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.1920XVMC_MAJOR = 121XVMC_MINOR = 02223libxvmc_st = static_library(24'xvmc_st',25files('attributes.c', 'block.c', 'context.c', 'surface.c', 'subpicture.c'),26gnu_symbol_visibility : 'hidden',27include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],28dependencies : [29dep_xvmc, dep_x11_xcb, dep_xcb, dep_xcb_dri2, dep_xcb_dri3, dep_xv,30dep_libdrm, idep_mesautil,31],32)3334# These tests will not work without a working xvmc configuration.35if with_tools.contains('xvmc')36# pkg-config was added in 1.0.12, so allow fallback37dep_xvmcw = dependency('xvmc-wrapper', required : false)38if not dep_xvmcw.found()39dep_xvmcw = cc.find_library('XvMCW')40endif41dep_real_xvmc = dependency('xvmc')4243foreach x : ['context', 'surface', 'subpicture', 'blocks', 'rendering']44_name = 'xvmc_@0@'.format(x)45executable(46_name,47files('tests/test_@[email protected]'.format(x), 'tests/testlib.c'),48dependencies : [49dep_real_xvmc, dep_x11_xcb, dep_xcb, dep_xcb_dri2, dep_xcb_dri3,50dep_xvmcw, dep_xv,51],52install: true,53)54endforeach5556executable(57'xvmc_bench',58files('tests/xvmc_bench.c', 'tests/testlib.c'),59dependencies : [60dep_real_xvmc, dep_x11_xcb, dep_xcb, dep_xcb_dri2, dep_xcb_dri3,61dep_xvmcw, dep_xv,62],63install: true,64)65endif666768