Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 Release #36

Merged
merged 25 commits into from
Jan 2, 2020
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 2 additions & 76 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ proto: proto-gen tidy

# -I are the import paths, because we're using some plugins, we need to import the gogo protobuf helpers
.PHONY: proto-gen
proto-gen: gen-dag gen-file gen-util gen-status gen-pubsub gen-admin gen-namesys gen-keystore gen-node gen-docs
proto-gen: gen-file gen-util gen-status gen-pubsub gen-admin gen-namesys gen-node gen-docs


# run standard go tooling for better readability
Expand Down Expand Up @@ -47,43 +47,6 @@ install:

# protocol buffer generation targets

gen-dag:
# generate golang bindings (dag)
protoc \
-I=pb \
-I=${GOPATH}/src \
pb/dag.proto \
--gogofaster_out=plugins=grpc:go
# generate python bindings (dag)
python3 -m grpc_tools.protoc \
-I=pb \
-I=${GOPATH}/src \
pb/dag.proto \
--python_out=py \
--grpc_python_out=py
# generate typescript bindings (dag)
protoc \
--plugin="protoc-gen-ts=${PROTOC_GEN_TS_PATH}" \
-I=pb \
-I=${GOPATH}/src \
--ts_out=service=grpc-web:ts \
pb/dag.proto
# generate javascript bindings (dag)
protoc \
-I=pb \
-I=${GOPATH}/src \
--js_out=import_style=commonjs,binary:js \
--grpc_out=js \
--plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` \
pb/dag.proto
# generate java bindings (dag)
protoc \
-I=pb \
-I=${GOPATH}/src \
--plugin=protoc-gen-grpc-java=build/protoc-gen-grpc-java \
--grpc-java_out=java \
pb/dag.proto

gen-file:
# generate golang bindings (file)
protoc \
Expand Down Expand Up @@ -155,7 +118,7 @@ gen-util:
-I=${GOPATH}/src \
--plugin=protoc-gen-grpc-java=build/protoc-gen-grpc-java \
--grpc-java_out=java \
pb/dag.proto
pb/util.proto

gen-node:
# generate golang bindings (node)
Expand Down Expand Up @@ -341,43 +304,6 @@ gen-namesys:
--grpc-java_out=java \
pb/namesys.proto

gen-keystore:
# generate golang bindings (keystore)
protoc \
-I=pb \
-I=${GOPATH}/src \
pb/keystore.proto \
--gogofaster_out=plugins=grpc:go
# generate python bindings (keystore)
python3 -m grpc_tools.protoc \
-I=pb \
-I=${GOPATH}/src \
pb/keystore.proto \
--python_out=py \
--grpc_python_out=py
# generate tyepscript bindings (keystore)
protoc \
--plugin="protoc-gen-ts=${PROTOC_GEN_TS_PATH}" \
-I=pb \
-I=${GOPATH}/src \
--ts_out=service=grpc-web:ts \
keystore.proto
# generate javascript bindings (keystore)
protoc \
-I=pb \
-I=${GOPATH}/src \
--js_out=import_style=commonjs,binary:js \
--grpc_out=js \
--plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` \
pb/keystore.proto
# generate java bindings (keystore)
protoc \
-I=pb \
-I=${GOPATH}/src \
--plugin=protoc-gen-grpc-java=build/protoc-gen-grpc-java \
--grpc-java_out=java \
pb/keystore.proto

gen-docs:
# generate documentation
protoc \
Expand Down
Loading