blob: 25c89a78727412e4d63a111b949248eb792a01c3 [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')
9
10#===============#
11# Configuration #
12#===============#
13c_args = []
14cpp_args = []
15
16# Paravirtualization moving towards virtio
17cpp_args += '-DVIRTIO_GPU'
18# Gfxstream
19cpp_args += '-DGFXSTREAM'
20# Our internal guest build
21cpp_args += '-DLINUX_GUEST_BUILD'
22# Don't want to goldfish OpenGL
23cpp_args += '-DGOLDFISH_NO_GL'
24# This is a good number for PAGE_SIZE
25# But we should really do getpagesize(..).
26cpp_args += '-DPAGE_SIZE=4096'
27# This should just be called NO_TRACE eventually
28cpp_args += '-DFUCHSIA_NO_TRACE'
29
30#===============#
31# Dependencies #
32#===============#
33
34dl_dep = cc.find_library('dl', required: false)
35drm_dep = dependency('libdrm')
36thread_dep = dependency('threads')
37
38#===============#
39# Includes #
40#===============#
41
42inc_android_emu = include_directories('android-emu')
43inc_host = include_directories('host/include/libOpenglRender')
44
45#================#
46# Subdirectories #
47#================#
48
49subdir('fuchsia')
50subdir('android-emu/android/base')
51subdir('shared')
52subdir('system')