diff options
| author | Chi Huu Huynh <[email protected]> | 2023-11-14 10:30:55 +0000 |
|---|---|---|
| committer | Chi Huu Huynh <[email protected]> | 2023-11-14 10:30:55 +0000 |
| commit | bcfa2e6260c1ebbc49be384e473a1b2ae62488b9 (patch) | |
| tree | a380fbfb5b9f43eee47b625d273591ae125ccb2a | |
| parent | 575e84175d3233d7172596eb2878378228f11c12 (diff) | |
fix proto comments
| -rw-r--r-- | xmake/rules/protobuf/proto.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/protobuf/proto.lua b/xmake/rules/protobuf/proto.lua index 0dbd2460c..08f8bf12e 100644 --- a/xmake/rules/protobuf/proto.lua +++ b/xmake/rules/protobuf/proto.lua @@ -204,7 +204,6 @@ end -- build batch jobs function build_sourcefiles_proto(target, batchjobs, sourcebatch, opt, sourcekind) - -- get the root directory of protobuf local proto_rootdir if #sourcebatch.sourcefiles > 0 then @@ -224,8 +223,8 @@ function build_sourcefiles_proto(target, batchjobs, sourcebatch, opt, sourcekind for i = 1, sourcefiles_total do local sourcefile = sourcebatch.sourcefiles[i] local moduleinfo = moduledeps_files[sourcefile] or {} + -- make build job moduleinfo.job = batchjobs:newjob(sourcefile, function (index, total) - -- make build job local batchcmds_ = batchcmds.new({target = target}) build_proto_cmd(target, batchcmds_, sourcefile, {progress = (index * 100) / total}, sourcekind) batchcmds_:runcmds({changed = target:is_rebuilt(), dryrun = option.get("dry-run")}) @@ -240,6 +239,7 @@ function build_compiled_sourcefiles_proto(target, batchjobs, sourcebatch, opt, s -- generate jobs for i = 1, sourcefiles_total do local sourcefile = sourcebatch.sourcefiles[i] + -- make build job batchjobs:newjob(sourcefile, function (index, total) local batchcmds_ = batchcmds.new({target = target}) build_c_cmd(target, batchcmds_, sourcefile, {progress = (index * 100) / total}, sourcekind) |
