Gurchetan Singh | 1a68f65 | 2021-11-09 09:38:21 -0800 | [diff] [blame^] | 1 | # Copyright 2022 Android Open Source Project |
| 2 | # SPDX-License-Identifier: MIT |
| 3 | |
| 4 | project('gfxstream', 'cpp', 'c', |
| 5 | version : '0.0.1', |
| 6 | license : 'MIT OR Apache-2.0') |
| 7 | |
| 8 | cc = meson.get_compiler('cpp') |
| 9 | |
| 10 | #===============# |
| 11 | # Configuration # |
| 12 | #===============# |
| 13 | c_args = [] |
| 14 | cpp_args = [] |
| 15 | |
| 16 | # Paravirtualization moving towards virtio |
| 17 | cpp_args += '-DVIRTIO_GPU' |
| 18 | # Gfxstream |
| 19 | cpp_args += '-DGFXSTREAM' |
| 20 | # Our internal guest build |
| 21 | cpp_args += '-DLINUX_GUEST_BUILD' |
| 22 | # Don't want to goldfish OpenGL |
| 23 | cpp_args += '-DGOLDFISH_NO_GL' |
| 24 | # This is a good number for PAGE_SIZE |
| 25 | # But we should really do getpagesize(..). |
| 26 | cpp_args += '-DPAGE_SIZE=4096' |
| 27 | # This should just be called NO_TRACE eventually |
| 28 | cpp_args += '-DFUCHSIA_NO_TRACE' |
| 29 | |
| 30 | #===============# |
| 31 | # Dependencies # |
| 32 | #===============# |
| 33 | |
| 34 | dl_dep = cc.find_library('dl', required: false) |
| 35 | drm_dep = dependency('libdrm') |
| 36 | thread_dep = dependency('threads') |
| 37 | |
| 38 | #===============# |
| 39 | # Includes # |
| 40 | #===============# |
| 41 | |
| 42 | inc_android_emu = include_directories('android-emu') |
| 43 | inc_host = include_directories('host/include/libOpenglRender') |
| 44 | |
| 45 | #================# |
| 46 | # Subdirectories # |
| 47 | #================# |
| 48 | |
| 49 | subdir('fuchsia') |
| 50 | subdir('android-emu/android/base') |
| 51 | subdir('shared') |
| 52 | subdir('system') |