1# Copyright 2022 Android Open Source Project 2# SPDX-License-Identifier: MIT 3 4#===============# 5# Options # 6#===============# 7 8with_vulkan_icd_dir = get_option('vulkan-icd-dir') 9if with_vulkan_icd_dir == '' 10 with_vulkan_icd_dir = join_paths(get_option('datadir'), 'vulkan/icd.d') 11endif 12 13subdir('mesa') 14 15#===============# 16# Configuration # 17#===============# 18gfxstream_guest_args = [] 19 20# Our internal guest build 21gfxstream_guest_args += '-DLINUX_GUEST_BUILD' 22# Include the gfxstream private VkStructureType definitions 23gfxstream_guest_args += '-DVK_GFXSTREAM_STRUCTURE_TYPE_EXT' 24 25#===============# 26# Dependencies # 27#===============# 28 29dl_dep = cc.find_library('dl', required: false) 30drm_dep = dependency('libdrm') 31thread_dep = dependency('threads') 32aemu_base_dep = dependency('aemu_base') 33 34with_kumquat = false 35virtgpu_kumquat_dep = dependency('virtgpu_kumquat_ffi', required: false) 36if virtgpu_kumquat_dep.found() 37 with_kumquat = true 38endif 39 40#===============# 41# Includes # 42#===============# 43 44inc_include_mesa = include_directories('mesa/include') 45inc_vulkan_headers = include_directories('../common/vulkan/include') 46inc_vulkan_enc = include_directories('vulkan_enc') 47 48#================# 49# Mesa compat # 50#================# 51# dep_libdrm = drm_dep 52# dep_dl = dl_dep 53# dep_thread = thread_dep 54 55#================# 56# Subdirectories # 57#================# 58subdir('iostream') 59subdir('platform') 60subdir('GoldfishAddressSpace') 61subdir('connection-manager') 62subdir('vulkan_enc') 63subdir('vulkan') 64