1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-26 16:18:22 +00:00

protob: add combine makefile target for proto2js (which can't combine files by itself)

This commit is contained in:
Pavol Rusnak 2018-07-27 16:01:14 +02:00
parent 105fbeb16d
commit 4c77015ed9
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 6 additions and 0 deletions

1
protob/.gitignore vendored
View File

@ -1,2 +1,3 @@
*.pb
combined.proto
graph.gv*

View File

@ -3,5 +3,10 @@ check: messages.pb messages-bitcoin.pb messages-bootloader.pb messages-cardano.p
%.pb: %.proto
protoc -I/usr/include -I. $< -o $@
combine:
echo 'syntax = "proto2";' > combined.proto
echo 'import "google/protobuf/descriptor.proto";' >> combined.proto
grep -hv -e '^import ' -e '^syntax' -e 'option java_' messages*.proto >> combined.proto
clean:
rm -f *.pb