Path: blob/21.2-virgl/src/freedreno/decode/meson.build
4565 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.1920# Shared cmdstream decoding:21libfreedreno_cffdec = static_library(22'freedreno_cffdec',23[24'buffers.c',25'buffers.h',26'cffdec.c',27'cffdec.h',28'pager.c',29'pager.h',30'rnnutil.c',31'rnnutil.h',32'util.h',33],34include_directories: [35inc_freedreno,36inc_freedreno_rnn,37inc_include,38inc_src,39],40c_args : [ no_override_init_args ],41gnu_symbol_visibility: 'hidden',42dependencies: [],43link_with: [44libfreedreno_rnn,45libfreedreno_ir2, # for disasm_a2xx46libfreedreno_ir3, # for disasm_a3xx47_libmesa_util,48],49build_by_default: false,50)5152if dep_libarchive.found()53libfreedreno_io = static_library(54'libfreedreno_io',55[56'io.c',57'io.h',58],59include_directories: [],60c_args : [no_override_init_args],61gnu_symbol_visibility: 'hidden',62dependencies: [63dep_libarchive,64],65build_by_default: false,66)67endif6869if dep_lua.found() and dep_libarchive.found()70cffdump = executable(71'cffdump',72[73'cffdump.c',74'script.c',75'script.h'76],77include_directories: [78inc_freedreno,79inc_freedreno_rnn,80inc_include,81inc_src,82],83c_args : [no_override_init_args],84gnu_symbol_visibility: 'hidden',85dependencies: [86dep_lua,87],88link_with: [89libfreedreno_cffdec,90libfreedreno_io,91],92build_by_default: with_tools.contains('freedreno'),93install: install_fd_decode_tools,94)95endif9697crashdec = executable(98'crashdec',99'crashdec.c',100include_directories: [101inc_freedreno,102inc_freedreno_rnn,103inc_include,104inc_src,105],106gnu_symbol_visibility: 'hidden',107dependencies: [],108link_with: [109libfreedreno_cffdec,110],111build_by_default: with_tools.contains('freedreno'),112install: install_fd_decode_tools,113)114115if dep_libarchive.found()116pgmdump = executable(117'pgmdump',118'pgmdump.c',119include_directories: [120inc_freedreno,121inc_include,122inc_src,123],124gnu_symbol_visibility: 'hidden',125dependencies: [],126link_with: [127libfreedreno_cffdec,128libfreedreno_io,129libfreedreno_ir2, # for disasm_a2xx130libfreedreno_ir3, # for disasm_a3xx131],132build_by_default: with_tools.contains('freedreno'),133install: false,134)135pgmdump2 = executable(136'pgmdump2',137'pgmdump2.c',138include_directories: [139inc_freedreno,140inc_include,141inc_src,142],143gnu_symbol_visibility: 'hidden',144dependencies: [],145link_with: [146libfreedreno_cffdec,147libfreedreno_io,148libfreedreno_ir2, # for disasm_a2xx149libfreedreno_ir3, # for disasm_a3xx150],151build_by_default: with_tools.contains('freedreno'),152install: false,153)154endif155156157