Path: blob/21.2-virgl/src/broadcom/simulator/meson.build
4560 views
# Copyright © 2019 Raspberry Pi1#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.19inc_simulator = include_directories('.')2021libbroadcom_simulator_files = files(22'v3d_simulator.c',23'v3d_simulator_wrapper.cpp',24)2526files_per_version = files(27'v3dx_simulator.c',28)2930v3d_args = []31dep_v3dv3 = dependency('v3dv3', required: false)32if dep_v3dv3.found()33v3d_args += '-DUSE_V3D_SIMULATOR'34endif3536per_version_libs = []37foreach ver : v3d_versions38per_version_libs += static_library(39'v3d-simulator-v' + ver,40[files_per_version, v3d_xml_pack],41include_directories : [42inc_src, inc_include, inc_gallium_aux, inc_broadcom,43],44c_args : [v3d_args, '-DV3D_VERSION=' + ver],45gnu_symbol_visibility: 'hidden',46dependencies : [dep_v3dv3, dep_libdrm, dep_valgrind],47)48endforeach4950libbroadcom_simulator = static_library(51'broadcom_simulator',52[libbroadcom_simulator_files],53include_directories : [inc_src, inc_include, inc_gallium, inc_gallium_aux],54c_args : [v3d_args, no_override_init_args],55cpp_args : [v3d_args],56gnu_symbol_visibility : 'hidden',57dependencies : [dep_v3dv3, dep_libdrm, dep_valgrind],58link_with : [per_version_libs],59build_by_default : false,60)6162v3d_libs += libbroadcom_simulator636465