diff options
| author | Chi Huu Huynh <[email protected]> | 2023-11-25 18:15:19 +0000 |
|---|---|---|
| committer | Chi Huu Huynh <[email protected]> | 2023-11-25 18:15:19 +0000 |
| commit | c29d931dbab73c20b2e52c13150797084e69d18c (patch) | |
| tree | af4ed9510217ab47ef32bc1e43dc70afc10dcb2f | |
| parent | 18d41db2172836a010738d976c9d990c5b066449 (diff) | |
Use dependfile instead of sourcefile_proto for `dependfiles`
| -rw-r--r-- | xmake/rules/protobuf/proto.lua | 5 |
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) |
