Path: blob/21.2-virgl/src/gallium/drivers/v3d/meson.build
4570 views
# Copyright © 2017 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.1920files_libv3d = files(21'v3d_blit.c',22'v3d_bufmgr.c',23'v3d_bufmgr.h',24'v3d_cl.c',25'v3d_cl.h',26'v3d_context.c',27'v3d_context.h',28'v3d_fence.c',29'v3d_formats.c',30'v3d_job.c',31'v3d_program.c',32'v3d_query.c',33'v3d_resource.c',34'v3d_resource.h',35'v3d_screen.c',36'v3d_screen.h',37'v3d_uniforms.c',38)3940files_per_version = files(41'v3dx_draw.c',42'v3dx_emit.c',43'v3dx_format_table.c',44'v3dx_job.c',45'v3dx_rcl.c',46'v3dx_state.c',47)4849v3d_args = ['-DV3D_BUILD_NEON']5051dep_v3dv3 = dependency('v3dv3', required: false)52if dep_v3dv3.found()53v3d_args += '-DUSE_V3D_SIMULATOR'54endif5556v3d_versions = ['33', '41']5758per_version_libs = []59foreach ver : v3d_versions60per_version_libs += static_library(61'v3d-v' + ver,62[files_per_version, v3d_xml_pack],63include_directories : [64inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom,65inc_gallium_drivers,66],67c_args : [v3d_args, '-DV3D_VERSION=' + ver],68gnu_symbol_visibility : 'hidden',69dependencies : [dep_v3dv3, dep_libdrm, dep_valgrind, idep_nir_headers],70)7172endforeach7374v3d_neon_c_args = []75if host_machine.cpu_family() == 'arm'76v3d_neon_c_args = '-mfpu=neon'77endif7879libv3d = static_library(80'v3d',81[82files_libv3d,83v3d_xml_pack,84],85include_directories : [86inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_broadcom,87inc_simulator, inc_gallium_drivers,88],89c_args : [v3d_args],90cpp_args : [v3d_args],91gnu_symbol_visibility : 'hidden',92dependencies : [dep_v3dv3, dep_libdrm, dep_valgrind, idep_nir_headers],93link_with: [per_version_libs],94)9596driver_v3d = declare_dependency(97compile_args : '-DGALLIUM_V3D',98link_with : [libv3d, libv3dwinsys, libbroadcom_cle, libbroadcom_v3d],99dependencies : idep_nir,100)101102103