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') |
Gurchetan Singh | 8fb0642 | 2022-01-13 13:30:24 -0800 | [diff] [blame] | 9 | prog_python = import('python').find_installation('python3') |
| 10 | |
| 11 | #===============# |
| 12 | # Options # |
| 13 | #===============# |
| 14 | |
| 15 | with_vulkan_icd_dir = get_option('vulkan-icd-dir') |
| 16 | if with_vulkan_icd_dir == '' |
| 17 | with_vulkan_icd_dir = join_paths(get_option('datadir'), 'vulkan/icd.d') |
| 18 | endif |
Gurchetan Singh | 1a68f65 | 2021-11-09 09:38:21 -0800 | [diff] [blame] | 19 | |
| 20 | #===============# |
| 21 | # Configuration # |
| 22 | #===============# |
| 23 | c_args = [] |
| 24 | cpp_args = [] |
| 25 | |
| 26 | # Paravirtualization moving towards virtio |
| 27 | cpp_args += '-DVIRTIO_GPU' |
| 28 | # Gfxstream |
| 29 | cpp_args += '-DGFXSTREAM' |
| 30 | # Our internal guest build |
| 31 | cpp_args += '-DLINUX_GUEST_BUILD' |
| 32 | # Don't want to goldfish OpenGL |
| 33 | cpp_args += '-DGOLDFISH_NO_GL' |
| 34 | # This is a good number for PAGE_SIZE |
| 35 | # But we should really do getpagesize(..). |
| 36 | cpp_args += '-DPAGE_SIZE=4096' |
| 37 | # This should just be called NO_TRACE eventually |
| 38 | cpp_args += '-DFUCHSIA_NO_TRACE' |
| 39 | |
| 40 | #===============# |
| 41 | # Dependencies # |
| 42 | #===============# |
| 43 | |
| 44 | dl_dep = cc.find_library('dl', required: false) |
| 45 | drm_dep = dependency('libdrm') |
| 46 | thread_dep = dependency('threads') |
| 47 | |
| 48 | #===============# |
| 49 | # Includes # |
| 50 | #===============# |
| 51 | |
| 52 | inc_android_emu = include_directories('android-emu') |
| 53 | inc_host = include_directories('host/include/libOpenglRender') |
Gurchetan Singh | 0763749 | 2022-03-24 15:55:26 -0700 | [diff] [blame] | 54 | inc_system = include_directories('system/include') |
Gurchetan Singh | 1a68f65 | 2021-11-09 09:38:21 -0800 | [diff] [blame] | 55 | |
| 56 | #================# |
| 57 | # Subdirectories # |
| 58 | #================# |
| 59 | |
| 60 | subdir('fuchsia') |
| 61 | subdir('android-emu/android/base') |
| 62 | subdir('shared') |
| 63 | subdir('system') |