Repository navigation
Expand file tree
/
Copy pathcmdline.lua
More file actions
166 lines (164 loc) · 8.36 KB
/
Copy pathcmdline.lua
File metadata and controls
166 lines (164 loc) · 8.36 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
-- Form B (inline mcpp = { ... }) carries the build info for ALL listed versions.
-- 0.0.2+ ships an upstream `mcpp.toml`, but `mcpp` is a package-level field
-- (not per-version) in xpkg.lua, so to keep 0.0.1 installable we keep the
-- workaround table here. The src/**/*.cppm layout is the same across 0.0.1,
-- 0.0.2, 0.0.3, 0.0.4, 0.0.5 and 0.0.6 (0.0.3 adds src/completions*.cppm, which the glob takes in;
-- 0.0.6 replaces src/completions/ with src/complete.cppm),
-- so a single Form B block describes every version correctly.
-- When 0.0.1 is dropped, this can be replaced with `mcpp = "*/mcpp.toml"`.
--
-- M6.x: Form B paths are globs relative to the verdir (the untouched
-- xlings extract dir). The leading `*/` absorbs the GitHub tarball's
-- `cmdline-<tag>/` wrap layer.
package = {
spec = "1",
namespace = "mcpplibs",
name = "cmdline",
description = "A simple command-line parsing library/framework for modern C++",
licenses = {"Apache-2.0"},
repo = "https://github.com/mcpplibs/cmdline",
type = "package",
xpm = {
linux = {
["0.0.1"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/0.0.1.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.1/cmdline-0.0.1.tar.gz",
},
sha256 = "3fb2f5495c1a144485b3cbb2e43e27059151633460f702af0f3851cbff387ef0",
},
["0.0.2"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.2.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.2/cmdline-0.0.2.tar.gz",
},
sha256 = "4f3e2b8dc4d9f11bdd9a784a9914e889234ac305e1020282ffa03f506b75d52a",
},
["0.0.3"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.3.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.3/cmdline-0.0.3.tar.gz",
},
sha256 = "a7854898e083f6df203ef7f14ec668812f3a5c28739fdc84d05d9dc39b990ca0",
},
["0.0.4"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.4.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.4/cmdline-0.0.4.tar.gz",
},
sha256 = "8428e829bec2f74b2841b33fc2f319cdd1316bdcd7a6c5839bdc641c7e85fd1a",
},
["0.0.5"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.5.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.5/cmdline-0.0.5.tar.gz",
},
sha256 = "a8fad9858ffaa6399f299f7b66c042cb0632d9139f8b917c5b35b9add1885abf",
},
["0.0.6"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.6.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.6/cmdline-0.0.6.tar.gz",
},
sha256 = "24716d498f29544c56bff1015ecf8e2c06a0ae40443ee0d9edaeb8f770d8bdb5",
},
},
macosx = {
["0.0.1"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/0.0.1.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.1/cmdline-0.0.1.tar.gz",
},
sha256 = "3fb2f5495c1a144485b3cbb2e43e27059151633460f702af0f3851cbff387ef0",
},
["0.0.2"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.2.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.2/cmdline-0.0.2.tar.gz",
},
sha256 = "4f3e2b8dc4d9f11bdd9a784a9914e889234ac305e1020282ffa03f506b75d52a",
},
["0.0.3"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.3.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.3/cmdline-0.0.3.tar.gz",
},
sha256 = "a7854898e083f6df203ef7f14ec668812f3a5c28739fdc84d05d9dc39b990ca0",
},
["0.0.4"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.4.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.4/cmdline-0.0.4.tar.gz",
},
sha256 = "8428e829bec2f74b2841b33fc2f319cdd1316bdcd7a6c5839bdc641c7e85fd1a",
},
["0.0.5"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.5.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.5/cmdline-0.0.5.tar.gz",
},
sha256 = "a8fad9858ffaa6399f299f7b66c042cb0632d9139f8b917c5b35b9add1885abf",
},
["0.0.6"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.6.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.6/cmdline-0.0.6.tar.gz",
},
sha256 = "24716d498f29544c56bff1015ecf8e2c06a0ae40443ee0d9edaeb8f770d8bdb5",
},
},
windows = {
["0.0.1"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/0.0.1.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.1/cmdline-0.0.1.tar.gz",
},
sha256 = "3fb2f5495c1a144485b3cbb2e43e27059151633460f702af0f3851cbff387ef0",
},
["0.0.2"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.2.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.2/cmdline-0.0.2.tar.gz",
},
sha256 = "4f3e2b8dc4d9f11bdd9a784a9914e889234ac305e1020282ffa03f506b75d52a",
},
["0.0.3"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.3.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.3/cmdline-0.0.3.tar.gz",
},
sha256 = "a7854898e083f6df203ef7f14ec668812f3a5c28739fdc84d05d9dc39b990ca0",
},
["0.0.4"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.4.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.4/cmdline-0.0.4.tar.gz",
},
sha256 = "8428e829bec2f74b2841b33fc2f319cdd1316bdcd7a6c5839bdc641c7e85fd1a",
},
["0.0.5"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.5.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.5/cmdline-0.0.5.tar.gz",
},
sha256 = "a8fad9858ffaa6399f299f7b66c042cb0632d9139f8b917c5b35b9add1885abf",
},
["0.0.6"] = {
url = {
GLOBAL = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.6.tar.gz",
CN = "https://gitcode.com/mcpp-res/cmdline/releases/download/0.0.6/cmdline-0.0.6.tar.gz",
},
sha256 = "24716d498f29544c56bff1015ecf8e2c06a0ae40443ee0d9edaeb8f770d8bdb5",
},
},
},
mcpp = {
schema = "0.1",
language = "c++23",
import_std = true,
modules = { "mcpplibs.cmdline" },
sources = { "*/src/**/*.cppm" },
targets = { ["cmdline"] = { kind = "lib" } },
deps = { },
},
}