blob: 19cc4ac76c6e7ebf94f7f0152e9a3d24812f7c1a [file] [log] [blame]
Gurchetan Singh1a68f652021-11-09 09:38:21 -08001# 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')
Gurchetan Singh8fb06422022-01-13 13:30:24 -08009prog_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
Gurchetan Singh1a68f652021-11-09 09:38:21 -080019
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')
Gurchetan Singh07637492022-03-24 15:55:26 -070054inc_system = include_directories('system/include')
Gurchetan Singh1a68f652021-11-09 09:38:21 -080055
56#================#
57# Subdirectories #
58#================#
59
60subdir('fuchsia')
61subdir('android-emu/android/base')
62subdir('shared')
63subdir('system')