-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
52 lines (42 loc) · 1.18 KB
/
meson.build
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 2022 Android Open Source Project
# SPDX-License-Identifier: MIT
project('gfxstream', 'cpp', 'c',
version : '0.0.1',
license : 'MIT OR Apache-2.0')
cc = meson.get_compiler('cpp')
#===============#
# Configuration #
#===============#
c_args = []
cpp_args = []
# Paravirtualization moving towards virtio
cpp_args += '-DVIRTIO_GPU'
# Gfxstream
cpp_args += '-DGFXSTREAM'
# Our internal guest build
cpp_args += '-DLINUX_GUEST_BUILD'
# Don't want to goldfish OpenGL
cpp_args += '-DGOLDFISH_NO_GL'
# This is a good number for PAGE_SIZE
# But we should really do getpagesize(..).
cpp_args += '-DPAGE_SIZE=4096'
# This should just be called NO_TRACE eventually
cpp_args += '-DFUCHSIA_NO_TRACE'
#===============#
# Dependencies #
#===============#
dl_dep = cc.find_library('dl', required: false)
drm_dep = dependency('libdrm')
thread_dep = dependency('threads')
#===============#
# Includes #
#===============#
inc_android_emu = include_directories('android-emu')
inc_host = include_directories('host/include/libOpenglRender')
#================#
# Subdirectories #
#================#
subdir('fuchsia')
subdir('android-emu/android/base')
subdir('shared')
subdir('system')