diff options
| author | ruki <[email protected]> | 2023-06-25 11:38:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-06-25 11:38:08 +0800 |
| commit | 835dfe13cc65031f0c517d010819e9215cfad9bb (patch) | |
| tree | e8bfac6f1014b8632a8d3e54a0e3c25d9f09834e | |
| parent | 5f437620e46abcb5863884dcac18b1e3980ae05a (diff) | |
add c++ rule for proto #3881
| -rw-r--r-- | xmake/rules/protobuf/xmake.lua | 2 |
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") |
