tu: Use an input for the layer when lowering input attachments
[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_lua = dependency('lua53', required: false)
29 if not dep_lua.found()
30 dep_lua = dependency('lua52', required: false)
31 endif
32 if not dep_lua.found()
33 dep_lua = dependency('lua', required: false, version : '>=5.2')
34 endif
35
36 dep_libarchive = dependency('libarchive', required: false)
37 dep_libxml2 = dependency('libxml-2.0', required: false)
38 prog_gzip = find_program('gzip', required: false)
39
40 install_fd_decode_tools = dep_libxml2.found() and prog_gzip.found() and \
41 with_tools.contains('freedreno')
42
43 subdir('common')
44 subdir('registers')
45 subdir('drm')
46 subdir('ir2')
47 subdir('ir3')
48 subdir('fdl')
49 subdir('perfcntrs')
50 subdir('computerator')
51
52 # Everything that depends on rnn requires (indirectly) libxml2:
53 if dep_libxml2.found()
54 subdir('rnn')
55 subdir('decode')
56 subdir('afuc')
57 endif
58
59 if with_tools.contains('drm-shim')
60 subdir('drm-shim')
61 endif
62
63 if with_freedreno_vk
64 subdir('vulkan')
65 endif