2018-11-11 15:10:46 +00:00
|
|
|
# Copyright © 2018 Rob Clark
|
|
|
|
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
# of this software and associated documentation files (the "Software"), to deal
|
|
|
|
# in the Software without restriction, including without limitation the rights
|
|
|
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
# copies of the Software, and to permit persons to whom the Software is
|
|
|
|
# furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
# The above copyright notice and this permission notice shall be included in
|
|
|
|
# all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
# SOFTWARE.
|
|
|
|
|
2020-08-02 19:35:48 +01:00
|
|
|
inc_freedreno = include_directories(['.', './registers', './registers/adreno', './common'])
|
2020-07-24 01:32:36 +01:00
|
|
|
inc_freedreno_rnn = include_directories('rnn')
|
2018-11-11 15:10:46 +00:00
|
|
|
|
2020-08-02 18:16:47 +01:00
|
|
|
rnn_src_path = meson.source_root() + '/src/freedreno/registers'
|
|
|
|
rnn_install_path = get_option('datadir') + '/freedreno/registers'
|
|
|
|
rnn_path = rnn_src_path + ':' + get_option('prefix') + '/' + rnn_install_path
|
|
|
|
|
2021-10-25 01:05:40 +01:00
|
|
|
# TODO: use multi-argument dependency() in meson 0.60
|
|
|
|
foreach lua : ['lua54', 'lua53', 'lua52', 'lua']
|
|
|
|
dep_lua = dependency(lua, required: false, version: '>=5.2')
|
|
|
|
if dep_lua.found()
|
|
|
|
break
|
|
|
|
endif
|
|
|
|
endforeach
|
2020-08-02 20:17:28 +01:00
|
|
|
|
|
|
|
dep_libarchive = dependency('libarchive', required: false)
|
2020-08-02 19:55:43 +01:00
|
|
|
dep_libxml2 = dependency('libxml-2.0', required: false)
|
|
|
|
prog_gzip = find_program('gzip', required: false)
|
|
|
|
|
|
|
|
install_fd_decode_tools = dep_libxml2.found() and prog_gzip.found() and \
|
|
|
|
with_tools.contains('freedreno')
|
|
|
|
|
2020-04-09 11:56:08 +01:00
|
|
|
subdir('common')
|
2020-05-07 23:40:52 +01:00
|
|
|
subdir('registers')
|
2020-12-14 00:20:40 +00:00
|
|
|
subdir('isa')
|
2018-11-11 15:10:46 +00:00
|
|
|
subdir('drm')
|
2020-07-26 17:44:01 +01:00
|
|
|
subdir('ir2')
|
2018-11-10 17:05:59 +00:00
|
|
|
subdir('ir3')
|
2020-02-26 19:27:04 +00:00
|
|
|
subdir('fdl')
|
2019-11-19 19:05:59 +00:00
|
|
|
subdir('perfcntrs')
|
2020-02-23 19:53:32 +00:00
|
|
|
subdir('computerator')
|
2018-08-08 23:23:57 +01:00
|
|
|
|
2021-03-17 18:27:30 +00:00
|
|
|
if with_perfetto and (with_datasources.contains('freedreno') or with_datasources.contains('auto'))
|
|
|
|
subdir('ds')
|
|
|
|
endif
|
|
|
|
|
2020-07-24 00:51:43 +01:00
|
|
|
# Everything that depends on rnn requires (indirectly) libxml2:
|
|
|
|
if dep_libxml2.found()
|
|
|
|
subdir('rnn')
|
2020-07-24 01:32:36 +01:00
|
|
|
subdir('decode')
|
2020-07-24 17:30:04 +01:00
|
|
|
subdir('afuc')
|
2020-07-24 00:51:43 +01:00
|
|
|
endif
|
|
|
|
|
2019-05-13 22:03:07 +01:00
|
|
|
if with_tools.contains('drm-shim')
|
|
|
|
subdir('drm-shim')
|
|
|
|
endif
|
|
|
|
|
2018-08-08 23:23:57 +01:00
|
|
|
if with_freedreno_vk
|
|
|
|
subdir('vulkan')
|
|
|
|
endif
|