Repository navigation
Expand file tree
/
Copy pathoptions.lua
More file actions
63 lines (57 loc) · 1.59 KB
/
Copy pathoptions.lua
File metadata and controls
63 lines (57 loc) · 1.59 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
-- *******************
--
-- development options
--
-- *******************
option("dev")
set_default(false)
set_showmenu(true)
set_category("root menu/dev")
set_description("build muda example, playground and test. if you're the developer, you could enable this option.")
option_end()
function option_dev_related()
add_deps("dev")
after_check(function(option)
if option:dep("dev"):enabled() then
option:enable(true)
end
end)
end
option("example")
set_default(true)
set_showmenu(true)
set_category("root menu")
set_description("build muda examples. if you want to see how to use muda, you could enable this option.")
option_dev_related()
option_end()
option("test")
set_default(false)
set_showmenu(true)
set_description("build muda test. if you're the developer, you should enable this option.")
set_category("root menu/dev")
option_dev_related()
option_end()
option("playground")
set_default(false)
set_showmenu(true)
set_description("build muda playground. if you're the developer, you could enable this option.")
set_category("root menu/dev")
option_dev_related()
option_end()
-- *******************
--
-- config macro options
--
-- *******************
option("with_check")
set_default(true)
set_showmenu(true)
set_description("turn on all muda runtime check.")
set_category("root menu/config")
option_end()
option("with_compute_graph")
set_default(false)
set_showmenu(true)
set_description("turn on muda compute graph.")
set_category("root menu/config")
option_end()