freedreno/registers: install gzip'd register database
[mesa.git] / src / freedreno / registers / meson.build
index a0f2b351f88257e09fb6a87b300e8d9df1cd8d19..3f5a1d122ba5d7069ce10f676e9517fa7e74fe32 100644 (file)
@@ -20,6 +20,8 @@
 
 xml_files = [
   'adreno.xml',
+  'freedreno_copyright.xml',
+  'rules-ng.xsd',
 ]
 
 gen_header_py = files('gen_header.py')
@@ -35,6 +37,17 @@ foreach f : xml_files
     command: [prog_python, '@INPUT0@', rnn_src_path, '@INPUT1@'],
     capture: true,
   )
+  _gzname = f + '.gz'
+  custom_target(
+    _gzname,
+    input: f,
+    output: _gzname,
+    command: [prog_gzip, '-kc', '@INPUT@'],
+    capture: true,
+    install_dir: rnn_install_path,
+    install: install_fd_decode_tools,
+    build_by_default: install_fd_decode_tools,
+  )
 endforeach
 
 subdir('adreno')