summaryrefslogtreecommitdiff
path: root/src/freedreno/registers
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2020-08-02 11:55:43 -0700
committerMarge Bot <eric+marge@anholt.net>2020-08-03 19:46:49 +0000
commit9c33c5389818bc5035eb4538ea5d3fc1321dd27e (patch)
treea23ae7bd8836a11c5aa410f438727e1792761725 /src/freedreno/registers
parent62ebd342e67fc0c12b181f91a488fa7a834fff6c (diff)
freedreno/registers: install gzip'd register database
The decode tools aren't too useful to install without the xml. But since libxml2 can read compressed xml, we'll gzip them for installation. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6154>
Diffstat (limited to 'src/freedreno/registers')
-rw-r--r--src/freedreno/registers/adreno/meson.build11
-rw-r--r--src/freedreno/registers/meson.build13
2 files changed, 24 insertions, 0 deletions
diff --git a/src/freedreno/registers/adreno/meson.build b/src/freedreno/registers/adreno/meson.build
index eb9c0730df4..f43e55d5656 100644
--- a/src/freedreno/registers/adreno/meson.build
+++ b/src/freedreno/registers/adreno/meson.build
@@ -37,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 + '/adreno',
+ install: install_fd_decode_tools,
+ build_by_default: install_fd_decode_tools,
+ )
endforeach
freedreno_xml_header_files += custom_target(
diff --git a/src/freedreno/registers/meson.build b/src/freedreno/registers/meson.build
index a0f2b351f88..3f5a1d122ba 100644
--- a/src/freedreno/registers/meson.build
+++ b/src/freedreno/registers/meson.build
@@ -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')