blob: e6762c0c22ed03c7f548ecfda9e395db1d681cf8 [file] [log] [blame]
# Copyright 2023 Android Open Source Project
# SPDX-License-Identifier: MIT
project('gfxstream', 'cpp', 'c',
version : '0.1.2',
license : 'MIT OR Apache-2.0',
default_options : ['cpp_std=gnu++17'])
cc = meson.get_compiler('cpp')
prog_python = import('python').find_installation('python3')
#================#
# Subdirectories #
#================#
build = get_option('gfxstream-build')
with_guest = build.contains('guest') or build.contains('both')
with_host = build.contains('host') or build.contains('both')
#========================#
# Logging + error report #
#========================#
log_level = get_option('log-level')
#===============#
# Decoders #
#===============#
decoders = get_option('decoders')
use_auto = decoders.contains('auto') and with_host
use_gles = decoders.contains('gles') and with_host
use_vulkan = decoders.contains('vulkan') and with_host
use_magma = decoders.contains('magma') and with_host
use_composer = decoders.contains('composer') and with_host
if with_guest
subdir('guest')
endif
if with_host
subdir('common')
subdir('host')
endif
#================#
# Summary #
#================#
summary({'c_args': (' ').join(get_option('c_args')),
'cpp_args': (' ').join(get_option('cpp_args')),
'buildtype': get_option('buildtype'),
'log-level': log_level,
'gles': use_gles,
'vulkan': use_vulkan,
'magma': use_magma,
'composer': use_composer,
}, section: 'Configuration')