summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/protobuf/proto.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/rules/protobuf/proto.lua b/xmake/rules/protobuf/proto.lua
index cc18c5390..72d3e6fce 100644
--- a/xmake/rules/protobuf/proto.lua
+++ b/xmake/rules/protobuf/proto.lua
@@ -311,16 +311,17 @@ function build_cxfiles(target, batchjobs, sourcebatch, opt, sourcekind)
-- add objectfile
local objectfile = target:objectfile(sourcefile_cx)
+ local dependfile = target:dependfile(sourcefile_proto)
table.insert(sourcebatch_cx.sourcefiles, sourcefile_cx)
table.insert(sourcebatch_cx.objectfiles, objectfile)
- table.insert(sourcebatch_cx.dependfiles, sourcefile_proto)
+ table.insert(sourcebatch_cx.dependfiles, dependfile)
local objectfile_grpc
if grpc_cpp_plugin then
objectfile_grpc = target:objectfile(sourcefile_cx_grpc)
table.insert(sourcebatch_cx.sourcefiles, sourcefile_cx_grpc)
table.insert(sourcebatch_cx.objectfiles, objectfile_grpc)
- table.insert(sourcebatch_cx.dependfiles, sourcefile_proto)
+ table.insert(sourcebatch_cx.dependfiles, dependfile)
end
end
build_objectfiles(target, batchjobs, sourcebatch_cx, opt)