summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-20 11:20:34 +0800
committerruki <[email protected]>2021-02-20 11:20:34 +0800
commit84d80e6642acda39989afc89992a39f371dc3ece (patch)
tree03ac7031c64d16c3c18f3d9dec287565d8c689dc
parent3749765647847d0c0155f34dde8d1e32447b87b9 (diff)
revert proto rule script
-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)