-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
xmake.lua
31 lines (27 loc) · 862 Bytes
/
xmake.lua
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
add_moduledirs("modules")
task("gendoc")
on_run("gendoc")
set_menu {
usage = "xmake gendoc [options] [arguments]",
description = "Generate the xmake documents.",
options = {
{'o', "outputdir", "kv", "html", "Output html directory."},
{'s', "siteroot", "kv", "https://xmake.io", "Site root."}
}
}
task("opendoc")
on_run("opendoc")
set_menu {
usage = "xmake opendoc [options] [arguments]",
description = "Open the local xmake documents.",
options = {
{nil, "htmldir", "kv", "html", "The documents html directory."},
}
}
task("update-apis")
on_run("update-apis")
set_menu {
usage = "xmake update-apis",
description = "Create markdown files based on the new available apis in xmake.",
options = nil
}