Mercurial > games > semicongine
comparison fuhtark_test/Vulkan-Headers-1.4.334/BUILD.gn @ 1501:f40d9d814c08 default tip
did: correct vulkan-api generator
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 23:34:29 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1500:91c8c3b7cbf0 | 1501:f40d9d814c08 |
|---|---|
| 1 # Copyright 2018-2023 The ANGLE Project Authors. | |
| 2 # Copyright 2019-2023 LunarG, Inc. | |
| 3 # | |
| 4 # SPDX-License-Identifier: Apache-2.0 | |
| 5 | |
| 6 import("//build_overrides/vulkan_headers.gni") | |
| 7 | |
| 8 config("vulkan_headers_config") { | |
| 9 include_dirs = [ "include" ] | |
| 10 defines = [] | |
| 11 | |
| 12 if (is_win) { | |
| 13 defines += [ "VK_USE_PLATFORM_WIN32_KHR" ] | |
| 14 } | |
| 15 if (defined(vulkan_use_x11) && vulkan_use_x11) { | |
| 16 defines += [ "VK_USE_PLATFORM_XCB_KHR" ] | |
| 17 if (!defined(vulkan_no_xlib_headers) || !vulkan_no_xlib_headers) { | |
| 18 defines += [ "VK_USE_PLATFORM_XLIB_KHR" ] | |
| 19 } | |
| 20 } | |
| 21 if (defined(vulkan_use_wayland) && vulkan_use_wayland) { | |
| 22 defines += [ "VK_USE_PLATFORM_WAYLAND_KHR" ] | |
| 23 if (defined(vulkan_wayland_include_dirs)) { | |
| 24 include_dirs += vulkan_wayland_include_dirs | |
| 25 } | |
| 26 } | |
| 27 if (is_android) { | |
| 28 defines += [ "VK_USE_PLATFORM_ANDROID_KHR" ] | |
| 29 } | |
| 30 if (is_fuchsia) { | |
| 31 defines += [ "VK_USE_PLATFORM_FUCHSIA" ] | |
| 32 } | |
| 33 if (is_apple) { | |
| 34 defines += [ "VK_USE_PLATFORM_METAL_EXT" ] | |
| 35 } | |
| 36 if (is_mac) { | |
| 37 defines += [ "VK_USE_PLATFORM_MACOS_MVK" ] | |
| 38 } | |
| 39 if (is_ios) { | |
| 40 defines += [ "VK_USE_PLATFORM_IOS_MVK" ] | |
| 41 } | |
| 42 if (defined(is_ggp) && is_ggp) { | |
| 43 defines += [ "VK_USE_PLATFORM_GGP" ] | |
| 44 } | |
| 45 if (is_clang) { | |
| 46 cflags = [ | |
| 47 "-Wno-redundant-parens", | |
| 48 ] | |
| 49 } | |
| 50 } | |
| 51 | |
| 52 # Vulkan headers only, no compiled sources. | |
| 53 source_set("vulkan_headers") { | |
| 54 sources = [ | |
| 55 "include/vulkan/vk_icd.h", | |
| 56 "include/vulkan/vk_layer.h", | |
| 57 "include/vulkan/vk_platform.h", | |
| 58 "include/vulkan/vulkan.h", | |
| 59 "include/vulkan/vulkan.hpp", | |
| 60 "include/vulkan/vulkan_core.h", | |
| 61 "include/vulkan/vulkan_screen.h", | |
| 62 "include/vk_video/vulkan_video_codec_av1std_decode.h", | |
| 63 "include/vk_video/vulkan_video_codec_av1std_encode.h", | |
| 64 "include/vk_video/vulkan_video_codec_av1std.h", | |
| 65 "include/vk_video/vulkan_video_codec_h264std_decode.h", | |
| 66 "include/vk_video/vulkan_video_codec_h264std_encode.h", | |
| 67 "include/vk_video/vulkan_video_codec_h264std.h", | |
| 68 "include/vk_video/vulkan_video_codec_h265std_decode.h", | |
| 69 "include/vk_video/vulkan_video_codec_h265std_encode.h", | |
| 70 "include/vk_video/vulkan_video_codec_h265std.h", | |
| 71 "include/vk_video/vulkan_video_codec_vp9std_decode.h", | |
| 72 "include/vk_video/vulkan_video_codec_vp9std.h", | |
| 73 "include/vk_video/vulkan_video_codecs_common.h", | |
| 74 ] | |
| 75 public_configs = [ ":vulkan_headers_config" ] | |
| 76 } |
