-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99073f7
commit 245176a
Showing
37 changed files
with
1,404 additions
and
1,640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
PROTO_FILES = rpc.proto | ||
PYTHON_OUT_DIR=../rpcclient/rpcclient/protos/ | ||
C_OUT_DIR=../rpcserver/protos/ | ||
|
||
.PHONY: all c_protos python_protos clean | ||
|
||
all: c_protos python_protos | ||
|
||
c_protos: $(PROTO_FILES) | ||
# Compile Protocol Buffers for C | ||
mkdir -p $(C_OUT_DIR) | ||
protoc --c_out=$(C_OUT_DIR) --proto_path=. $(PROTO_FILES) | ||
|
||
python_protos: $(PROTO_FILES) | ||
# Compile Protocol Buffers for Python | ||
mkdir -p $(PYTHON_OUT_DIR) | ||
python3 -m grpc_tools.protoc --python_out=$(PYTHON_OUT_DIR) --mypy_out=$(PYTHON_OUT_DIR) --proto_path=. $(PROTO_FILES) | ||
|
||
clean: | ||
# Clean up generated files | ||
rm -rf $(C_OUT_DIR) $(PYTHON_OUT_DIR) |
Oops, something went wrong.