freedreno/registers: install gzip'd register database
[mesa.git] / src / freedreno / meson.build
1 # Copyright © 2018 Rob Clark
2
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
9
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
12
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 # SOFTWARE.
20
21 inc_freedreno = include_directories(['.', './registers', './registers/adreno', './common'])
22 inc_freedreno_rnn = include_directories('rnn')
23
24 rnn_src_path = meson.source_root() + '/src/freedreno/registers'
25 rnn_install_path = get_option('datadir') + '/freedreno/registers'
26 rnn_path = rnn_src_path + ':' + get_option('prefix') + '/' + rnn_install_path
27
28 dep_libxml2 = dependency('libxml-2.0', required: false)
29 prog_gzip = find_program('gzip', required: false)
30
31 install_fd_decode_tools = dep_libxml2.found() and prog_gzip.found() and \
32 with_tools.contains('freedreno')
33
34 subdir('common')
35 subdir('registers')
36 subdir('drm')
37 subdir('ir2')
38 subdir('ir3')
39 subdir('fdl')
40 subdir('perfcntrs')
41 subdir('computerator')
42
43 # Everything that depends on rnn requires (indirectly) libxml2:
44 if dep_libxml2.found()
45 subdir('rnn')
46 subdir('decode')
47 subdir('afuc')
48 endif
49
50 if with_tools.contains('drm-shim')
51 subdir('drm-shim')
52 endif
53
54 if with_freedreno_vk
55 subdir('vulkan')
56 endif