1# Copyright © 2018 Rob Clark 2# SPDX-License-Identifier: MIT 3 4inc_freedreno = include_directories(['.', './registers', './registers/adreno', './common']) 5inc_freedreno_rnn = include_directories('rnn') 6 7rnn_src_path = dir_source_root + '/src/freedreno/registers' 8rnn_install_path = get_option('datadir') + '/freedreno/registers' 9rnn_path = rnn_src_path + ':' + get_option('prefix') + '/' + rnn_install_path 10 11dep_libarchive = dependency('libarchive', allow_fallback: true, required: false) 12dep_libxml2 = dependency('libxml-2.0', allow_fallback: true, required: false) 13prog_gzip = find_program('gzip', required: false) 14 15install_fd_decode_tools = dep_libxml2.found() and prog_gzip.found() and \ 16 with_tools.contains('freedreno') 17 18subdir('registers') 19subdir('common') 20subdir('isa') 21subdir('ir2') 22subdir('ir3') 23subdir('fdl') 24 25if system_has_kms_drm 26 subdir('drm') 27endif 28 29subdir('perfcntrs') 30 31if system_has_kms_drm 32 subdir('computerator') 33endif 34 35if system_has_kms_drm and with_perfetto and (with_datasources.contains('freedreno') or with_datasources.contains('auto')) 36 subdir('ds') 37endif 38 39# Everything that depends on rnn requires (indirectly) libxml2: 40if dep_libxml2.found() and with_tools.contains('freedreno') 41 subdir('rnn') 42 subdir('decode') 43 subdir('afuc') 44elif with_tools.contains('freedreno') 45 message('libxml2 not found, skipping tools that depend on it') 46endif 47 48if with_tools.contains('drm-shim') 49 subdir('drm-shim') 50endif 51 52if with_freedreno_vk 53 subdir('vulkan') 54endif 55