• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2022 Android Open Source Project
2# SPDX-License-Identifier: MIT
3
4project('gfxstream', 'cpp', 'c',
5         version : '0.0.1',
6         license : 'MIT OR Apache-2.0')
7
8cc = meson.get_compiler('cpp')
9prog_python = import('python').find_installation('python3')
10
11#===============#
12# Options       #
13#===============#
14
15with_vulkan_icd_dir = get_option('vulkan-icd-dir')
16if with_vulkan_icd_dir == ''
17  with_vulkan_icd_dir = join_paths(get_option('datadir'), 'vulkan/icd.d')
18endif
19
20#===============#
21# Configuration #
22#===============#
23c_args = []
24cpp_args = []
25
26# Paravirtualization moving towards virtio
27cpp_args += '-DVIRTIO_GPU'
28# Gfxstream
29cpp_args += '-DGFXSTREAM'
30# Our internal guest build
31cpp_args += '-DLINUX_GUEST_BUILD'
32# Don't want to goldfish OpenGL
33cpp_args += '-DGOLDFISH_NO_GL'
34# This is a good number for PAGE_SIZE
35# But we should really do getpagesize(..).
36cpp_args += '-DPAGE_SIZE=4096'
37# This should just be called NO_TRACE eventually
38cpp_args += '-DFUCHSIA_NO_TRACE'
39
40#===============#
41# Dependencies  #
42#===============#
43
44dl_dep = cc.find_library('dl', required: false)
45drm_dep = dependency('libdrm')
46thread_dep = dependency('threads')
47
48#===============#
49# Includes      #
50#===============#
51
52inc_android_emu = include_directories('android-emu')
53inc_host = include_directories('host/include/libOpenglRender')
54inc_system = include_directories('system/include')
55
56#================#
57# Subdirectories #
58#================#
59
60subdir('fuchsia')
61subdir('android-emu/android/base')
62subdir('shared')
63subdir('system')
64