summaryrefslogtreecommitdiff
path: root/xmake/core/project/option.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-11-10 23:19:41 +0800
committerruki <[email protected]>2017-11-10 13:58:09 +0800
commit5605084d64edb44917f7e69752335d1fdf979515 (patch)
treec960ed4af33334568c58ff1357bfa21795a24ad0 /xmake/core/project/option.lua
parent7cc19edf97f221db90a697cf4b794048981ea8bc (diff)
move target and option apis
Diffstat (limited to 'xmake/core/project/option.lua')
-rw-r--r--xmake/core/project/option.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/xmake/core/project/option.lua b/xmake/core/project/option.lua
index 0005c0bf0..c46a2fc8f 100644
--- a/xmake/core/project/option.lua
+++ b/xmake/core/project/option.lua
@@ -56,6 +56,38 @@ function option._cache()
return option._CACHE
end
+-- get option apis
+function option.apis()
+
+ return
+ {
+ values =
+ {
+ -- option.set_xxx
+ "option.set_default"
+ , "option.set_showmenu"
+ , "option.set_category"
+ , "option.set_warnings"
+ , "option.set_optimize"
+ , "option.set_languages"
+ , "option.set_description"
+ -- option.add_xxx
+ , "option.add_deps"
+ , "option.add_imports"
+ , "option.add_vectorexts"
+ }
+ , script =
+ {
+ -- option.before_xxx
+ "option.before_check"
+ -- option.on_xxx
+ , "option.on_check"
+ -- option.after_xxx
+ , "option.after_check"
+ }
+ }
+end
+
-- save the option info to the cache
function option:_save()