Path: blob/21.2-virgl/src/freedreno/isa/meson.build
4564 views
# Copyright © 2020 Google, Inc12# 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.1920isa_depend_files = [21'ir3-common.xml',22'ir3-cat0.xml',23'ir3-cat1.xml',24'ir3-cat2.xml',25'ir3-cat3.xml',26'ir3-cat4.xml',27'ir3-cat5.xml',28'ir3-cat6.xml',29'ir3-cat7.xml',30'isa.py',31]3233ir3_isa_c = custom_target(34'ir3-isa.c',35input: ['decode.py', 'ir3.xml'],36output: 'ir3-isa.c',37command: [38prog_python, '@INPUT0@', '@INPUT1@', '@OUTPUT@'39],40depend_files: isa_depend_files,41)4243decode_files = [44ir3_isa_c,45'isa.h',46'decode.h',47'decode.c',48]4950libir3decode = static_library(51'ir3decode',52decode_files,53dependencies: idep_mesautil,54include_directories: [55inc_include,56inc_src,57# Hack for src/util/half_float.h indirect dependency on58# gallium headers:59inc_gallium,60],61gnu_symbol_visibility: 'hidden',62)6364ir3disasm = executable(65'ir3-disasm',66['ir3-disasm.c'],67link_with: libir3decode,68build_by_default: with_tools.contains('freedreno'),69include_directories: [70inc_src,71],72install: false,73)7475encode_h = custom_target(76'encode.h',77input: ['encode.py', 'ir3.xml'],78output: 'encode.h',79command: [80prog_python, '@INPUT0@', '@INPUT1@', '@OUTPUT@'81],82depend_files: isa_depend_files,83)8485encode_files = [86encode_h,87'encode.c',88'isa.h',89]9091libir3encode = static_library(92'ir3encode',93encode_files,94dependencies: [idep_mesautil, idep_nir],95include_directories: [96inc_src,97inc_include,98inc_freedreno,99inc_gallium,100],101gnu_symbol_visibility: 'hidden',102)103104105