From 84d80e6642acda39989afc89992a39f371dc3ece Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 20 Feb 2021 11:20:34 +0800 Subject: revert proto rule script --- xmake/rules/protobuf/xmake.lua | 6 ++---- 1 file 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) -- cgit v1.3.1