diff options
| author | ruki <[email protected]> | 2019-06-30 13:27:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-06-30 13:27:31 +0800 |
| commit | ff067fda68bf431a4d46ce0149d425c7665aa2e7 (patch) | |
| tree | f92d697dcfdafdd4e078b379aef73816b5b2b3a7 /tests/projects/c++/protobuf/xmake.lua | |
| parent | 782068ccf675fb9846708b549b2ef3888701472b (diff) | |
add protobuf rules
Diffstat (limited to 'tests/projects/c++/protobuf/xmake.lua')
| -rw-r--r-- | tests/projects/c++/protobuf/xmake.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/projects/c++/protobuf/xmake.lua b/tests/projects/c++/protobuf/xmake.lua new file mode 100644 index 000000000..b340a8cd4 --- /dev/null +++ b/tests/projects/c++/protobuf/xmake.lua @@ -0,0 +1,20 @@ + +-- add rules: debug and release +add_rules("mode.debug", "mode.release") + +-- add protobuf +add_requires("protobuf-cpp", "protoc") + +-- add target +target("console_c++") + + -- set kind + set_kind("binary") + + -- add rules and packages + add_rules("protobuf.cpp") + add_packages("protobuf-cpp", "protoc") + + -- add files + add_files("src/*.cpp", "src/*.proto") + |
