Skip to content

Commit

Permalink
Merge pull request lightningnetwork#4504 from halseth/mobile-wallet-u…
Browse files Browse the repository at this point in the history
…nlocker-split

mobile: remember walletunlocker.proto
  • Loading branch information
Roasbeef authored Aug 4, 2020
2 parents f144dea + 09b8bee commit ec94532
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions mobile/gen_bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,21 @@ listeners="lightning=lightningLis walletunlocker=walletUnlockerLis"
# one proto file is being parsed, it should only be done once.
mem_rpc=1

PROTOS="rpc.proto walletunlocker.proto"

opts="package_name=$pkg,target_package=$target_pkg,listeners=$listeners,mem_rpc=$mem_rpc"
protoc -I/usr/local/include -I. \
-I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--plugin=protoc-gen-custom=$falafel\
--custom_out=./build \
--custom_opt="$opts" \
--proto_path=../lnrpc \
rpc.proto

for file in $PROTOS; do
echo "Generating mobile protos from ${file}"

protoc -I/usr/local/include -I. \
-I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--plugin=protoc-gen-custom=$falafel\
--custom_out=./build \
--custom_opt="$opts" \
--proto_path=../lnrpc \
"${file}"
done

# If prefix=1 is specified, prefix the generated methods with subserver name.
# This must be enabled to support subservers with name conflicts.
Expand Down

0 comments on commit ec94532

Please sign in to comment.