summaryrefslogtreecommitdiff
path: root/xmake/rules/protobuf/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-04-03 16:12:45 +0800
committerruki <[email protected]>2022-04-03 16:12:45 +0800
commit8b2bcfb11e985fb85d7e79f2086a097a0892b0f6 (patch)
treecf6d970163abba142368418c2338bc94b9bf7677 /xmake/rules/protobuf/xmake.lua
parent9337971116abe0e996954db4a24a877c70103873 (diff)
improve protobuf deps
Diffstat (limited to 'xmake/rules/protobuf/xmake.lua')
-rw-r--r--xmake/rules/protobuf/xmake.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmake/rules/protobuf/xmake.lua b/xmake/rules/protobuf/xmake.lua
index e28a9cbb6..ac210de8c 100644
--- a/xmake/rules/protobuf/xmake.lua
+++ b/xmake/rules/protobuf/xmake.lua
@@ -24,6 +24,10 @@ rule("protobuf.cpp")
before_buildcmd_file(function (target, batchcmds, sourcefile_proto, opt)
return import("proto").buildcmd(target, batchcmds, sourcefile_proto, opt, "cxx")
end)
+ before_build_files(function (target, batchjobs, sourcebatch, opt)
+ return import("proto").build_batchjobs(target, batchjobs, sourcebatch, opt, "cxx")
+ end, {batch = true})
+
-- define rule: protobuf.c
rule("protobuf.c")
@@ -31,3 +35,8 @@ rule("protobuf.c")
before_buildcmd_file(function (target, batchcmds, sourcefile_proto, opt)
return import("proto").buildcmd(target, batchcmds, sourcefile_proto, opt, "cc")
end)
+ before_build_files(function (target, batchjobs, sourcebatch, opt)
+ return import("proto").build_batchjobs(target, batchjobs, sourcebatch, opt, "cc")
+ end, {batch = true})
+
+