Path: blob/21.2-virgl/src/broadcom/cle/meson.build
4560 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.1920# [version, cle XML version]21v3d_versions = [22[21, 21],23[33, 33],24[41, 33],25[42, 33]26]2728v3d_xml_files = []29v3d_xml_pack = []30foreach _v : v3d_versions31v = _v[0]32xmlver = _v[1]33f = 'v3d_packet_v@[email protected]'.format(xmlver)34_name = 'v3d_packet_v@0@_pack.h'.format(v)35if not v3d_xml_files.contains(f)36v3d_xml_files += f37endif38v3d_xml_pack += custom_target(39_name,40input : ['gen_pack_header.py', f],41output : _name,42command : [prog_python, '@INPUT@', '@0@'.format(v)],43capture : true,44)45endforeach4647v3d_xml_h = custom_target(48'v3d_xml.h',49input : ['../../intel/genxml/gen_zipped_file.py', v3d_xml_files],50output : 'v3d_xml.h',51command : [prog_python, '@INPUT@'],52capture : true,53)5455expat_args = []56if dep_expat.found()57expat_args += '-DWITH_LIBEXPAT=1'58endif5960libbroadcom_cle = static_library(61['broadcom_cle', v3d_xml_h],62'v3d_decoder.c',63include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_broadcom],64c_args : [no_override_init_args, expat_args],65gnu_symbol_visibility : 'hidden',66dependencies : [dep_libdrm, dep_valgrind, dep_expat, dep_zlib],67build_by_default : false,68)697071