Skip to content
Snippets Groups Projects
Commit 6ee5f7e8 authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

Add make src to quickly generate protobuf code

parent 550599e9
No related branches found
No related tags found
1 merge request!12Extend Upload API for resumable downloads
Pipeline #61583 failed
ALL: ALL:
@echo "THIS IS ONLY FOR DEVELOPMENT. DON'T USE IT" @echo "THIS IS ONLY FOR DEVELOPMENT. DON'T USE IT"
src:
mkdir -p src/java &&\
mkdir -p src/python &&\
mkdir -p src/cpp &&\
mkdir -p src/js&&\
protoc -Iproto --java_out=src/java --python_out=src/python --cpp_out=src/cpp --js_out=src/js $$(find ./proto -type f -iname "*.proto")
clean:
rm -rf src
.PHONY: clean src
formatting: formatting:
clang-format -i $$(find proto/ -type f -iname "*.proto") clang-format -i $$(find proto/ -type f -iname "*.proto")
......
...@@ -17,6 +17,11 @@ contains all necessary configuration. ...@@ -17,6 +17,11 @@ contains all necessary configuration.
We use [buf](https://docs.buf.build/) for linting. Run `buf lint`. The We use [buf](https://docs.buf.build/) for linting. Run `buf lint`. The
`buf.yaml` contains all necessary configuration. `buf.yaml` contains all necessary configuration.
## Source code generation
`make src` generates the protobuf code for Java, C++, Python and JavaScript using
the locally installed `protoc`.
## Docs ## Docs
We use [cmake](https://cmake.org) as build tool for the documenation and We use [cmake](https://cmake.org) as build tool for the documenation and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment