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 | |
| parent | a78ac5fdec5fa7eb626c44c386cc77970f4c056c (diff) | |
improve stats
| -rw-r--r-- | xmake/actions/build/main.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/utils/statistics.lua (renamed from xmake/actions/build/statistics.lua) | 0 | ||||
| -rw-r--r-- | xmake/plugins/project/main.lua | 13 |
3 files changed, 6 insertions, 9 deletions
diff --git a/xmake/actions/build/main.lua b/xmake/actions/build/main.lua index ae7ec756b..54ec2e9e9 100644 --- a/xmake/actions/build/main.lua +++ b/xmake/actions/build/main.lua @@ -31,10 +31,10 @@ import("utils.progress") import("build") import("build_files") import("cleaner") -import("statistics") import("check", {alias = "check_targets"}) import("private.cache.build_cache") import("private.service.remote_build.action", {alias = "remote_build_action"}) +import("private.utils.statistics") -- try building it function _do_try_build(configfile, tool, trybuild, trybuild_detected, targetname) diff --git a/xmake/actions/build/statistics.lua b/xmake/modules/private/utils/statistics.lua index 7619526a5..7619526a5 100644 --- a/xmake/actions/build/statistics.lua +++ b/xmake/modules/private/utils/statistics.lua 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")) |
