1# Copyright © 2019 Google, Inc 2# SPDX-License-Identifier: MIT 3 4xml_files = [ 5 'adreno.xml', 6] 7 8rules_file = 'rules-fd.xsd' 9copyright_file = 'freedreno_copyright.xml' 10 11install_files = xml_files + [rules_file, copyright_file] 12 13gen_header_py = files('gen_header.py') 14freedreno_schema = files(rules_file) 15freedreno_copyright = files(copyright_file) 16 17freedreno_xml_header_files = [] 18 19foreach f : xml_files 20 _name = f + '.h' 21 freedreno_xml_header_files += custom_target( 22 _name, 23 input: [gen_header_py, f, freedreno_schema, freedreno_copyright], 24 output: _name, 25 command: [prog_python, '@INPUT0@', '--rnn', rnn_src_path, '--xml', '@INPUT1@', 'c-defines'], 26 capture: true, 27 ) 28endforeach 29 30foreach f : install_files 31 _gzname = f + '.gz' 32 custom_target( 33 _gzname, 34 input: f, 35 output: _gzname, 36 command: [prog_gzip, '-kc', '@INPUT@'], 37 capture: true, 38 install_dir: rnn_install_path, 39 install: install_fd_decode_tools, 40 build_by_default: install_fd_decode_tools, 41 ) 42endforeach 43 44subdir('adreno') 45