# Copyright 2023 Android Open Source Project # SPDX-License-Identifier: Apache-2.0 files_lib_cereal = files( 'common/goldfish_vk_extension_structs.cpp', 'common/goldfish_vk_marshaling.cpp', 'common/goldfish_vk_reserved_marshaling.cpp', 'common/goldfish_vk_deepcopy.cpp', 'common/goldfish_vk_dispatch.cpp', 'common/goldfish_vk_transform.cpp' ) cereal_cpp_args = [ '-DVK_GFXSTREAM_STRUCTURE_TYPE_EXT', '-DVK_GOOGLE_address_space', ] if host_machine.system() == 'qnx' cereal_cpp_args += '-DVK_USE_PLATFORM_SCREEN_QNX' elif host_machine.system() == 'windows' cereal_cpp_args += '-DVK_USE_PLATFORM_WIN32_KHR' elif host_machine.system() == 'darwin' cereal_cpp_args += '-DVK_USE_PLATFORM_METAL_EXT' cereal_cpp_args += '-DVK_USE_PLATFORM_MACOS_MVK' endif lib_vulkan_cereal = static_library( 'cereal', files_lib_cereal, cpp_args: cereal_cpp_args + gfxstream_host_args, include_directories: [ inc_cereal_common, inc_cereal, inc_common_base, inc_gfxstream_server, inc_host_backend, inc_host_decoder_common, inc_host_features, inc_host_health, inc_common_logging, inc_host_metrics, inc_include, inc_stream_servers, inc_vulkan_headers, inc_vulkan_server, ], link_with: [ lib_common_base, lib_host_backend, lib_host_features, lib_host_health, lib_common_logging, lib_host_metrics, ], )