Qv2ray/tools/unix-generate-api.sh
Qv2ray-dev 70f7e16939
Rewrite Qv2ray.pro to make it easier to be understood. (#322)
* rewrite: rewritten Qv2ray.pro, adding project 'hooks'
* fix: fixed windows build
* fix: fixed macOS build
* Removing excess blank lines

Co-authored-by: DuckSoft <realducksoft@gmail.com>
2020-02-10 00:15:14 +08:00

6 lines
192 B
Bash
Executable File

#!/bin/bash
cd $1/../tools
mkdir -p ../libs/gen
protoc --grpc_out=../libs/gen --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` ./v2ray_api.proto
protoc --cpp_out=../libs/gen ./v2ray_api.proto