summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/main.lua
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-01-20 20:30:31 +0800
committerOpportunity <[email protected]>2020-01-20 22:21:47 +0800
commit3364333877dc8a579f08b54099fda653948e07ab (patch)
tree2c2d5b6dabd5937827f9ae0cbc511b8a2f16f5d4 /xmake/plugins/project/main.lua
parent5f96933d1ad672cc5b29df88a78b32ff4cdd3ebc (diff)
improve tab complete
Diffstat (limited to 'xmake/plugins/project/main.lua')
-rwxr-xr-xxmake/plugins/project/main.lua14
1 files changed, 9 insertions, 5 deletions
diff --git a/xmake/plugins/project/main.lua b/xmake/plugins/project/main.lua
index 147cee3d6..b24a3b47f 100755
--- a/xmake/plugins/project/main.lua
+++ b/xmake/plugins/project/main.lua
@@ -31,13 +31,11 @@ import("vsxmake.vsxmake")
import("clang.compile_flags")
import("clang.compile_commands")
--- make project
-function _make(kind)
+function makers()
-- the maps
- local maps =
- {
- makefile = makefile.make
+ return
+ { makefile = makefile.make
, xmakefile = xmakefile.make
, cmakelists = cmakelists.make
, vs2002 = vs.make(2002)
@@ -61,6 +59,12 @@ function _make(kind)
, compile_flags = compile_flags.make
, compile_commands = compile_commands.make
}
+end
+
+-- make project
+function _make(kind)
+
+ local maps = makers()
assert(maps[kind], "the project kind(%s) is not supported!", kind)
-- make it