Path: blob/21.2-virgl/src/freedreno/registers/adreno/meson.build
8362 views
# Copyright © 2019 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.1920xml_files = [21'a2xx.xml',22'a3xx.xml',23'a4xx.xml',24'a5xx.xml',25'a6xx.xml',26'a6xx_gmu.xml',27'ocmem.xml',28'adreno_control_regs.xml',29'adreno_pipe_regs.xml',30'adreno_common.xml',31'adreno_pm4.xml',32]3334foreach f : xml_files35_name = f + '.h'36freedreno_xml_header_files += custom_target(37_name,38input: [gen_header_py, f],39output: _name,40command: [prog_python, '@INPUT0@', rnn_src_path, '@INPUT1@'],41capture: true,42)43_gzname = f + '.gz'44custom_target(45_gzname,46input: f,47output: _gzname,48command: [prog_gzip, '-kc', '@INPUT@'],49capture: true,50install_dir: rnn_install_path + '/adreno',51install: install_fd_decode_tools,52build_by_default: install_fd_decode_tools,53)54endforeach5556freedreno_xml_header_files += custom_target(57'a6xx-pack.xml.h',58input: [gen_header_py, 'a6xx.xml'],59output: 'a6xx-pack.xml.h',60command: [prog_python, '@INPUT0@', rnn_src_path, '@INPUT1@', '--pack-structs'],61capture: true,62)6364freedreno_xml_header_files += custom_target(65'adreno-pm4-pack.xml.h',66input: [gen_header_py, 'adreno_pm4.xml'],67output: 'adreno-pm4-pack.xml.h',68command: [prog_python, '@INPUT0@', rnn_src_path, '@INPUT1@', '--pack-structs'],69capture: true,70)717273