Gurchetan Singh | 0ac5f1c | 2023-05-30 17:57:43 -0700 | [diff] [blame] | 1 | # Copyright 2023 Android Open Source Project |
| 2 | # SPDX-License-Identifier: MIT |
| 3 | |
Gurchetan Singh | a2bb14f | 2024-01-02 13:54:07 -0800 | [diff] [blame] | 4 | inc_cereal = include_directories('cereal') |
| 5 | inc_cereal_common = include_directories('cereal/common') |
Gurchetan Singh | 0ac5f1c | 2023-05-30 17:57:43 -0700 | [diff] [blame] | 6 | inc_vulkan_server = include_directories('.') |
| 7 | |
| 8 | subdir('cereal') |
| 9 | subdir('emulated_textures') |
| 10 | |
| 11 | files_lib_vulkan_server = files( |
| 12 | 'BorrowedImageVk.cpp', |
| 13 | 'BufferVk.cpp', |
| 14 | 'ColorBufferVk.cpp', |
| 15 | 'CompositorVk.cpp', |
Jason Macnak | 05eaa8e | 2024-07-01 10:55:23 -0700 | [diff] [blame] | 16 | 'DeviceLostHelper.cpp', |
Aaron Ruby | 234a263 | 2024-04-25 17:39:13 -0400 | [diff] [blame] | 17 | 'DeviceOpTracker.cpp', |
Gurchetan Singh | 0ac5f1c | 2023-05-30 17:57:43 -0700 | [diff] [blame] | 18 | 'DisplayVk.cpp', |
| 19 | 'DisplaySurfaceVk.cpp', |
| 20 | 'PostWorkerVk.cpp', |
| 21 | 'DebugUtilsHelper.cpp', |
| 22 | 'SwapChainStateVk.cpp', |
| 23 | 'RenderThreadInfoVk.cpp', |
| 24 | 'VkAndroidNativeBuffer.cpp', |
| 25 | 'VkCommonOperations.cpp', |
| 26 | 'VkDecoder.cpp', |
Gurchetan Singh | 80345ad | 2024-04-19 14:22:03 -0700 | [diff] [blame] | 27 | 'VkEmulatedPhysicalDeviceMemory.cpp', |
Gurchetan Singh | 0ac5f1c | 2023-05-30 17:57:43 -0700 | [diff] [blame] | 28 | 'VkDecoderGlobalState.cpp', |
| 29 | 'VkDecoderSnapshot.cpp', |
Yahan Zhou | d6daa4b | 2024-01-30 15:23:59 -0800 | [diff] [blame] | 30 | 'VkDecoderSnapshotUtils.cpp', |
Gurchetan Singh | 0ac5f1c | 2023-05-30 17:57:43 -0700 | [diff] [blame] | 31 | 'VkFormatUtils.cpp', |
| 32 | 'VkReconstruction.cpp', |
| 33 | 'VulkanDispatch.cpp', |
| 34 | 'VulkanHandleMapping.cpp', |
| 35 | 'VulkanStream.cpp', |
| 36 | 'vk_util.cpp' |
| 37 | ) |
| 38 | |
| 39 | vulkan_server_cpp_args = [ |
| 40 | '-fvisibility=hidden', |
| 41 | '-Wno-inconsistent-missing-override', |
| 42 | '-Wno-unused-value', |
| 43 | '-Wno-return-type', |
| 44 | '-Wno-return-type-c-linkage', |
Gurchetan Singh | 0ac5f1c | 2023-05-30 17:57:43 -0700 | [diff] [blame] | 45 | '-Wno-uninitialized', |
| 46 | '-DVK_GFXSTREAM_STRUCTURE_TYPE_EXT', |
| 47 | ] |
| 48 | |
| 49 | # Shouldn't these be defined by standard Vulkan headers? |
| 50 | if host_machine.system() == 'darwin' |
| 51 | vulkan_server_cpp_args += '-DVK_USE_PLATFORM_METAL_EXT' |
| 52 | elif host_machine.system() == 'windows' |
| 53 | vulkan_server_cpp_args += '-DVK_USE_PLATFORM_WIN32_KHR' |
jsimonot | d7e81ab | 2023-09-14 18:34:11 -0400 | [diff] [blame] | 54 | elif host_machine.system() == 'qnx' |
Aaron Ruby | 4ea0cc7 | 2023-11-13 12:39:20 -0500 | [diff] [blame] | 55 | vulkan_server_cpp_args += '-DVK_USE_PLATFORM_SCREEN_QNX' |
Gurchetan Singh | 0ac5f1c | 2023-05-30 17:57:43 -0700 | [diff] [blame] | 56 | endif |
| 57 | |
| 58 | lib_vulkan_server = static_library( |
| 59 | 'lib_vulkan_server', |
| 60 | files_lib_vulkan_server, |
Gurchetan Singh | 8ca8546 | 2024-01-16 14:52:57 -0800 | [diff] [blame] | 61 | cpp_args: vulkan_server_cpp_args + gfxstream_host_args, |
Gurchetan Singh | 7328390 | 2024-01-17 17:42:36 -0800 | [diff] [blame] | 62 | include_directories: [inc_root, inc_gfxstream_include, inc_include, inc_utils, inc_apigen_codec, |
Gurchetan Singh | a2bb14f | 2024-01-02 13:54:07 -0800 | [diff] [blame] | 63 | inc_cereal, inc_cereal_common, inc_stream_servers, |
Gurchetan Singh | 0ac5f1c | 2023-05-30 17:57:43 -0700 | [diff] [blame] | 64 | inc_vulkan_server, inc_renderdoc_external, |
Jason Macnak | 2687212 | 2024-02-23 10:46:09 -0800 | [diff] [blame] | 65 | inc_gl_host_common, inc_vulkan_headers, inc_glm, inc_host_features], |
| 66 | link_with: [lib_vulkan_cereal, lib_emulated_textures, lib_host_features], |
Gurchetan Singh | 55bfba4 | 2023-09-13 18:27:29 -0700 | [diff] [blame] | 67 | dependencies: [aemu_base_dep, aemu_common_dep, aemu_snapshot_dep] |
Gurchetan Singh | 0ac5f1c | 2023-05-30 17:57:43 -0700 | [diff] [blame] | 68 | ) |