Add protobuf parser generation

This commit is contained in:
Donncha Ó Cearbhaill
2024-10-28 10:37:30 +01:00
parent 9b41ba99aa
commit 8694e7a047
5 changed files with 203 additions and 0 deletions
+6
View File
@@ -25,6 +25,12 @@ install:
test-requirements:
python3 -m pip install --upgrade -r test-requirements.txt
generate-proto-parsers:
# Generate python parsers for protobuf files
PROTO_DIR="src/mvt/android/parsers/proto/"; \
PROTO_FILES=$$(find $(PROTO_DIR) -iname "*.proto"); \
protoc -I$(PROTO_DIR) --python_betterproto_out=$(PROTO_DIR) $$PROTO_FILES
clean:
rm -rf $(PWD)/build $(PWD)/dist $(PWD)/src/mvt.egg-info