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('drm') 46subdir('ir2') 47subdir('ir3') 48subdir('fdl') 49subdir('perfcntrs') 50subdir('computerator') 51 52# Everything that depends on rnn requires (indirectly) libxml2: 53if dep_libxml2.found() 54 subdir('rnn') 55 subdir('decode') 56 subdir('afuc') 57endif 58 59if with_tools.contains('drm-shim') 60 subdir('drm-shim') 61endif 62 63if with_freedreno_vk 64 subdir('vulkan') 65endif 66