aboutsummaryrefslogtreecommitdiff
path: root/src/gfxstream/meson.build
blob: 2c17fc7626f2db2362ee3e4b5b022423527da8ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 2023 Android Open Source Project
# SPDX-License-Identifier: MIT

build = 'both'

with_guest = build.contains('guest') or build.contains('both')
with_host = build.contains('host') or build.contains('both')

#========================#
# Logging + error report #
#========================#
log_level = 'error'

#===============#
# Decoders      #
#===============#
decoders = 'vulkan'
with_guest = true
with_host = true

genvk = files('codegen/vulkan/vulkan-docs-next/scripts/genvk.py')
vk_gfxstream_xml = files('codegen/vulkan/vulkan-docs-next/xml/vk_gfxstream.xml')

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