mobile: add comments to build script
This commit is contained in:
parent
b1e6d9c5cf
commit
1b543b919e
@ -19,11 +19,21 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Name of the package for the generated APIs.
|
||||||
pkg="lndmobile"
|
pkg="lndmobile"
|
||||||
|
|
||||||
|
# The package where the protobuf definitions originally are found.
|
||||||
target_pkg="github.com/lightningnetwork/lnd/lnrpc"
|
target_pkg="github.com/lightningnetwork/lnd/lnrpc"
|
||||||
|
|
||||||
# Generate APIs by passing the parsed protos to the falafel plugin.
|
# A mapping from grpc service to name of the custom listeners. The grpc server
|
||||||
opts="package_name=$pkg,target_package=$target_pkg,listeners=lightning=lightningLis walletunlocker=walletUnlockerLis,mem_rpc=1"
|
# must be configured to listen on these.
|
||||||
|
listeners="lightning=lightningLis walletunlocker=walletUnlockerLis"
|
||||||
|
|
||||||
|
# Set to 1 to create boiler plate grpc client code and listeners. If more than
|
||||||
|
# one proto file is being parsed, it should only be done once.
|
||||||
|
mem_rpc=1
|
||||||
|
|
||||||
|
opts="package_name=$pkg,target_package=$target_pkg,listeners=$listeners,mem_rpc=$mem_rpc"
|
||||||
protoc -I/usr/local/include -I. \
|
protoc -I/usr/local/include -I. \
|
||||||
-I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
|
-I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
|
||||||
--plugin=protoc-gen-custom=$falafel\
|
--plugin=protoc-gen-custom=$falafel\
|
||||||
|
Loading…
Reference in New Issue
Block a user