diff options
| author | ruki <[email protected]> | 2023-07-12 22:37:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-07-12 22:37:45 +0800 |
| commit | 732d60063fdfcb777d02d6a6e1499d0791060edf (patch) | |
| tree | 0f8dc85c300dfe91de07c7785a60b22c2df112b8 /xmake/plugins/project/main.lua | |
| parent | a78ac5fdec5fa7eb626c44c386cc77970f4c056c (diff) | |
improve stats
Diffstat (limited to 'xmake/plugins/project/main.lua')
| -rw-r--r-- | xmake/plugins/project/main.lua | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/xmake/plugins/project/main.lua b/xmake/plugins/project/main.lua index 08337b9bb..79235da11 100644 --- a/xmake/plugins/project/main.lua +++ b/xmake/plugins/project/main.lua @@ -31,12 +31,10 @@ import("vstudio.vs") import("vsxmake.vsxmake") import("clang.compile_flags") import("clang.compile_commands") +import("private.utils.statistics") function makers() - - -- the maps - return - { + return { make = makefile.make , makefile = makefile.make , xmakefile = xmakefile.make @@ -71,15 +69,11 @@ end -- make project function _make(kind) - local maps = makers() assert(maps[kind], "the project kind(%s) is not supported!", kind) - - -- make it maps[kind](option.get("outputdir")) end --- main function main() -- in project generator? @@ -88,6 +82,9 @@ function main() -- config it first task.run("config") + -- post statistics + statistics.post() + -- make project _make(option.get("kind")) |
