summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-14 23:02:27 +0800
committerruki <[email protected]>2023-09-14 23:02:27 +0800
commit543be3202228b3b6999c92936cbd8a335b95054b (patch)
tree454f996251b5b407741e2cde98553c83838381c5
parentf0422fd50a1c444052d2e824bf7c25c06c6d762c (diff)
support remote build for project generator
-rw-r--r--xmake/plugins/project/main.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/plugins/project/main.lua b/xmake/plugins/project/main.lua
index 79235da11..e9ef607f1 100644
--- a/xmake/plugins/project/main.lua
+++ b/xmake/plugins/project/main.lua
@@ -32,6 +32,7 @@ import("vsxmake.vsxmake")
import("clang.compile_flags")
import("clang.compile_commands")
import("private.utils.statistics")
+import("private.service.remote_build.action", {alias = "remote_build_action"})
function makers()
return {
@@ -76,6 +77,11 @@ end
function main()
+ -- do action for remote?
+ if remote_build_action.enabled() then
+ return remote_build_action()
+ end
+
-- in project generator?
os.setenv("XMAKE_IN_PROJECT_GENERATOR", "true")