diff options
Diffstat (limited to 'xmake/plugins/lua/main.lua')
| -rw-r--r-- | xmake/plugins/lua/main.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/plugins/lua/main.lua b/xmake/plugins/lua/main.lua index cf0ed80a1..437d69870 100644 --- a/xmake/plugins/lua/main.lua +++ b/xmake/plugins/lua/main.lua @@ -22,6 +22,8 @@ import("core.base.option") import("core.sandbox.module") import("core.sandbox.sandbox") +import("core.project.project") +import("private.service.remote_build.action", {alias = "remote_build_action"}) -- get all lua scripts function scripts() @@ -159,6 +161,11 @@ end function main() + -- do action for remote if we are in the project directory? + if os.isfile(project.rootfile()) and remote_build_action.enabled() then + return remote_build_action() + end + -- list builtin scripts if option.get("list") then return _list() |
