Path: blob/21.2-virgl/src/freedreno/afuc/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.1920afuc_parser = custom_target(21'parser.[ch]',22input: 'parser.y',23output: ['parser.c', 'parser.h'],24command: [25prog_bison, '@INPUT@', '--defines=@OUTPUT1@', '--output=@OUTPUT0@'26]27)2829afuc_lexer = custom_target(30'lexer.c',31input: 'lexer.l',32output: 'lexer.c',33command: [34prog_flex, '-o', '@OUTPUT@', '@INPUT@'35]36)3738asm = executable(39'afuc-asm',40[41'asm.c',42'util.c',43'util.h',44afuc_lexer,45afuc_parser,46],47include_directories: [48inc_freedreno_rnn, inc_include, inc_src, inc_util,49],50link_with: [51libfreedreno_rnn,52],53dependencies: [],54build_by_default : with_tools.contains('freedreno'),55install: install_fd_decode_tools,56)5758disasm = executable(59'afuc-disasm',60[61'disasm.c',62'emu.c',63'emu.h',64'emu-ds.c',65'emu-regs.c',66'emu-ui.c',67'util.c',68'util.h',69],70include_directories: [71inc_freedreno,72inc_freedreno_rnn,73inc_include,74inc_src,75inc_util,76],77link_with: [78libfreedreno_rnn,79],80dependencies: [81],82build_by_default : with_tools.contains('freedreno'),83install: install_fd_decode_tools,84)858687