diff options
| author | Chi Huu Huynh <[email protected]> | 2023-11-26 15:10:08 +0000 |
|---|---|---|
| committer | Chi Huu Huynh <[email protected]> | 2023-11-26 15:10:08 +0000 |
| commit | 8defb4b8ee5be0d4e7dc7dac4aaef4a4a335cf60 (patch) | |
| tree | f8e474b11f04ad6e202bd4632cc9fc4c89bfa991 | |
| parent | 44c72b4b92b96334f49adecdb1c8d883e371b044 (diff) | |
Remove empty lines and make compile message smaller
| -rw-r--r-- | xmake/rules/protobuf/proto.lua | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/xmake/rules/protobuf/proto.lua b/xmake/rules/protobuf/proto.lua index b34ca2f63..f79301462 100644 --- a/xmake/rules/protobuf/proto.lua +++ b/xmake/rules/protobuf/proto.lua @@ -140,11 +140,10 @@ function buildcmd_pfiles(target, batchcmds, sourcefile_proto, opt, sourcekind) -- add commands batchcmds:mkdir(sourcefile_dir) batchcmds:show_progress( - opt.progress, - "${color.build.object}compiling.proto.%s %s %s", + opt.progress, + "${color.build.object}compiling.proto.%s %s", (sourcekind == "cxx" and "c++" or "c"), - sourcefile_proto, - sourcefile_cx + sourcefile_proto ) batchcmds:vrunv(protoc, protoc_args) end @@ -275,12 +274,10 @@ end function build_cxfiles(target, batchjobs, sourcebatch, opt, sourcekind) -- load moduledeps opt = opt or {} - local nodes = {} local nodenames = {} - local node_rulename = "rules/" .. sourcebatch.rulename .. "/node" - + -- generate node for each sourcefile local sourcefiles = sourcebatch.sourcefiles for _, sourcefile_proto in ipairs(sourcefiles) do local nodename = node_rulename .. "/" .. sourcefile_proto @@ -294,7 +291,6 @@ function build_cxfiles(target, batchjobs, sourcebatch, opt, sourcekind) } table.insert(nodenames, nodename) end - local rootname = "rules/" .. sourcebatch.rulename .. "/root" nodes[rootname] = { name = rootname, @@ -303,6 +299,5 @@ function build_cxfiles(target, batchjobs, sourcebatch, opt, sourcekind) build_cxfile_objects(target, batchjobs, opt, sourcekind) end) } - buildjobs(nodes, batchjobs, opt.rootjob) end |
