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 21inc_freedreno = include_directories(['.', './registers', './registers/adreno', './common']) 22inc_freedreno_rnn = include_directories('rnn') 23 24rnn_src_path = meson.source_root() + '/src/freedreno/registers' 25rnn_install_path = get_option('datadir') + '/freedreno/registers' 26rnn_path = rnn_src_path + ':' + get_option('prefix') + '/' + rnn_install_path 27 28dep_lua = dependency('lua53', required: false) 29if not dep_lua.found() 30 dep_lua = dependency('lua52', required: false) 31endif 32if not dep_lua.found() 33 dep_lua = dependency('lua', required: false, version : '>=5.2') 34endif 35 36dep_libarchive = dependency('libarchive', required: false) 37dep_libxml2 = dependency('libxml-2.0', required: false) 38prog_gzip = find_program('gzip', required: false) 39 40install_fd_decode_tools = dep_libxml2.found() and prog_gzip.found() and \ 41 with_tools.contains('freedreno') 42 43subdir('common') 44subdir('registers') 45subdir('isa') 46subdir('drm') 47subdir('ir2') 48subdir('ir3') 49subdir('fdl') 50subdir('perfcntrs') 51subdir('computerator') 52 53if with_perfetto and (with_datasources.contains('freedreno') or with_datasources.contains('auto')) 54 subdir('ds') 55endif 56 57# Everything that depends on rnn requires (indirectly) libxml2: 58if dep_libxml2.found() 59 subdir('rnn') 60 subdir('decode') 61 subdir('afuc') 62endif 63 64if with_tools.contains('drm-shim') 65 subdir('drm-shim') 66endif 67 68if with_freedreno_vk 69 subdir('vulkan') 70endif 71