-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcompat.opengl.lua
More file actions
55 lines (53 loc) · 2.27 KB
/
Copy pathcompat.opengl.lua
File metadata and controls
55 lines (53 loc) · 2.27 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
package = {
spec = "1",
namespace = "compat",
name = "opengl",
description = "Khronos OpenGL API headers for mcpp packages",
licenses = {"MIT"},
repo = "https://github.com/KhronosGroup/OpenGL-Registry",
type = "package",
xpm = {
linux = {
["2026.05.31"] = {
url = {
GLOBAL = "https://github.com/KhronosGroup/OpenGL-Registry/archive/a30033d3e812c9bf10094f1010374a6b15e192eb.tar.gz",
CN = "https://gitcode.com/mcpp-res/opengl/releases/download/2026.05.31/opengl-2026.05.31.tar.gz",
},
sha256 = "3dadc4ccfe4b8d3a798fb405b7067304420ff997505b67041f3edfeecc3228ae",
},
},
macosx = {
["2026.05.31"] = {
url = {
GLOBAL = "https://github.com/KhronosGroup/OpenGL-Registry/archive/a30033d3e812c9bf10094f1010374a6b15e192eb.tar.gz",
CN = "https://gitcode.com/mcpp-res/opengl/releases/download/2026.05.31/opengl-2026.05.31.tar.gz",
},
sha256 = "3dadc4ccfe4b8d3a798fb405b7067304420ff997505b67041f3edfeecc3228ae",
},
},
windows = {
["2026.05.31"] = {
url = {
GLOBAL = "https://github.com/KhronosGroup/OpenGL-Registry/archive/a30033d3e812c9bf10094f1010374a6b15e192eb.tar.gz",
CN = "https://gitcode.com/mcpp-res/opengl/releases/download/2026.05.31/opengl-2026.05.31.tar.gz",
},
sha256 = "3dadc4ccfe4b8d3a798fb405b7067304420ff997505b67041f3edfeecc3228ae",
},
},
},
mcpp = {
language = "c++23",
import_std = false,
c_standard = "c11",
include_dirs = {"*/api", "mcpp_generated/include"},
generated_files = {
["mcpp_generated/include/GL/gl.h"] = "#pragma once\n#include <GL/glcorearb.h>\n",
["mcpp_generated/opengl_empty.c"] = "int mcpp_compat_opengl_headers_anchor(void) { return 0; }\n",
},
sources = {"mcpp_generated/opengl_empty.c"},
targets = { ["opengl"] = { kind = "lib" } },
deps = {
["compat.khrplatform"] = "2026.05.31",
},
},
}