-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcompat.vulkan-headers.lua
More file actions
68 lines (66 loc) · 2.93 KB
/
Copy pathcompat.vulkan-headers.lua
File metadata and controls
68 lines (66 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
-- compat.vulkan-headers — Khronos Vulkan API headers.
--
-- Header-only, the same shape as `compat.opengl`: expose `include/` and carry a
-- trivial anchor TU so the package still produces a buildable lib target.
-- Split out from `compat.vulkan` (the loader) because they are separate
-- upstream repositories on separate release cadences, and because a consumer
-- that only needs the types — a renderer compiled against a loader it does not
-- link, say — should not drag the loader in.
--
-- `vk_video/` ships alongside `vulkan/` and is included by `vulkan_video.h`, so
-- one include root covers both.
--
-- Versioning follows the Vulkan SDK release the tag belongs to
-- (`vulkan-sdk-1.4.357.0` → `1.4.357.0`), which is how Khronos ties the header,
-- loader and validation-layer repos together.
package = {
spec = "1",
namespace = "compat",
name = "vulkan-headers",
description = "Khronos Vulkan API headers",
licenses = {"Apache-2.0"},
repo = "https://github.com/KhronosGroup/Vulkan-Headers",
type = "package",
xpm = {
linux = {
["1.4.357.0"] = {
url = {
GLOBAL = "https://github.com/KhronosGroup/Vulkan-Headers/archive/refs/tags/vulkan-sdk-1.4.357.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/vulkan-headers/releases/download/1.4.357.0/vulkan-headers-1.4.357.0.tar.gz",
},
sha256 = "e87dce08116151f6b6d7de6b6faf41498e87e6cf848ff16fa3bd5402190ad4a3",
},
},
macosx = {
["1.4.357.0"] = {
url = {
GLOBAL = "https://github.com/KhronosGroup/Vulkan-Headers/archive/refs/tags/vulkan-sdk-1.4.357.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/vulkan-headers/releases/download/1.4.357.0/vulkan-headers-1.4.357.0.tar.gz",
},
sha256 = "e87dce08116151f6b6d7de6b6faf41498e87e6cf848ff16fa3bd5402190ad4a3",
},
},
windows = {
["1.4.357.0"] = {
url = {
GLOBAL = "https://github.com/KhronosGroup/Vulkan-Headers/archive/refs/tags/vulkan-sdk-1.4.357.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/vulkan-headers/releases/download/1.4.357.0/vulkan-headers-1.4.357.0.tar.gz",
},
sha256 = "e87dce08116151f6b6d7de6b6faf41498e87e6cf848ff16fa3bd5402190ad4a3",
},
},
},
mcpp = {
language = "c++23",
import_std = false,
c_standard = "c11",
include_dirs = { "*/include" },
generated_files = {
["mcpp_generated/vulkan_headers_anchor.c"] =
"int mcpp_compat_vulkan_headers_anchor(void) { return 0; }\n",
},
sources = { "mcpp_generated/vulkan_headers_anchor.c" },
targets = { ["vulkan-headers"] = { kind = "lib" } },
deps = {},
},
}