summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/protobuf/xmake.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmake/rules/protobuf/xmake.lua b/xmake/rules/protobuf/xmake.lua
index d812cc1a7..b9d0bafdb 100644
--- a/xmake/rules/protobuf/xmake.lua
+++ b/xmake/rules/protobuf/xmake.lua
@@ -24,11 +24,10 @@ rule("protobuf.cpp")
-- set extension
set_extensions(".proto")
- --[[
-- build protobuf file
before_build_file(function (target, sourcefile_proto, opt)
import("proto").build(target, sourcefile_proto, opt, "cxx")
- end)]]
+ end)
-- generate build commands
before_buildcmd_file(function (target, batchcmds, sourcefile_proto, opt)
@@ -42,11 +41,10 @@ rule("protobuf.c")
-- set extension
set_extensions(".proto")
- --[[
-- build protobuf file
before_build_file(function (target, sourcefile_proto, opt)
import("proto").build(target, sourcefile_proto, opt, "cc")
- end)]]
+ end)
-- generate build commands
before_buildcmd_file(function (target, batchcmds, sourcefile_proto, opt)