summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-06-25 11:38:08 +0800
committerruki <[email protected]>2023-06-25 11:38:08 +0800
commit835dfe13cc65031f0c517d010819e9215cfad9bb (patch)
treee8bfac6f1014b8632a8d3e54a0e3c25d9f09834e
parent5f437620e46abcb5863884dcac18b1e3980ae05a (diff)
add c++ rule for proto #3881
-rw-r--r--xmake/rules/protobuf/xmake.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/rules/protobuf/xmake.lua b/xmake/rules/protobuf/xmake.lua
index 31446eb8e..c7fa4d3cb 100644
--- a/xmake/rules/protobuf/xmake.lua
+++ b/xmake/rules/protobuf/xmake.lua
@@ -20,6 +20,7 @@
-- define rule: protobuf.cpp
rule("protobuf.cpp")
+ add_deps("c++")
set_extensions(".proto")
on_load(function(target)
import("proto").load(target, "cxx")
@@ -34,6 +35,7 @@ rule("protobuf.cpp")
-- define rule: protobuf.c
rule("protobuf.c")
+ add_deps("c++")
set_extensions(".proto")
on_load(function(target)
import("proto").load(target, "cc")