Path: blob/21.2-virgl/src/broadcom/drm-shim/meson.build
4560 views
# Copyright © 2019 Broadcom1#2# 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:8#9# The above copyright notice and this permission notice shall be included in10# all copies or substantial portions of the Software.11#12# 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.1920libvc4_noop_drm_shim = shared_library(21['vc4_noop_drm_shim'],22'vc4_noop.c',23include_directories: [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],24dependencies: dep_drm_shim,25gnu_symbol_visibility : 'hidden',26install : true,27)2829libv3d_noop_drm_shim = shared_library(30['v3d_noop_drm_shim'],31'v3d_noop.c',32include_directories: [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],33dependencies: dep_drm_shim,34gnu_symbol_visibility : 'hidden',35install : true,36)3738dep_v3dv3 = dependency('v3dv3', required: false)39if dep_v3dv3.found()40v3dv3_c_args = '-DUSE_V3D_SIMULATOR'4142inc_gallium_v3d = include_directories('../../gallium/drivers/v3d')4344per_version_libs = []45foreach ver : v3d_versions46per_version_libs += static_library(47'libv3d_drm_shim-v' + ver,48[49'v3dx.c',50v3d_xml_pack51],52include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom, inc_gallium_v3d, inc_simulator],53c_args : [no_override_init_args, '-DV3D_VERSION=' + ver, v3dv3_c_args],54gnu_symbol_visibility : 'hidden',55dependencies: [dep_valgrind, dep_thread, dep_v3dv3],56)57endforeach5859libv3d_drm_shim = shared_library(60['v3d_drm_shim'],61[62'v3d.c',63'../simulator/v3d_simulator_wrapper.cpp',64],65dependencies: [idep_mesautil, dep_dl, dep_drm_shim, dep_v3dv3],66link_with: per_version_libs,67include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom, inc_gallium_v3d, inc_simulator],68c_args : [no_override_init_args, '-std=gnu99', v3dv3_c_args],69gnu_symbol_visibility : 'hidden',70cpp_args : [v3dv3_c_args]71)72endif737475