From 700b5497b88aecdfc604ef866f666d13f7d6c0b5 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 22 Apr 2025 17:35:50 +0800 Subject: Update xmake.lua --- xmake/rules/platform/windows/idl/xmake.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmake/rules/platform/windows/idl/xmake.lua b/xmake/rules/platform/windows/idl/xmake.lua index f7a47b230..4e3aabd1b 100644 --- a/xmake/rules/platform/windows/idl/xmake.lua +++ b/xmake/rules/platform/windows/idl/xmake.lua @@ -23,9 +23,11 @@ rule("platform.windows.idl") on_config("windows", "mingw", function (target) import("idl").configure(target) end) + before_build_files(function (target, jobgraph, sourcebatch, opt) - import("idl").gen_idl(target, jobgraph, sourcebatch, opt) + import("idl").generate_idl(target, jobgraph, sourcebatch, opt) end, {jobgraph = true, batch = true}) + on_build_files(function (target, jobgraph, sourcebatch, opt) import("idl").build_idlfiles(target, jobgraph, sourcebatch, opt) end, {jobgraph = true, batch = true, distcc = true}) -- cgit v1.3.1