mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-27 08:38:07 +00:00
protob: add combine makefile target for proto2js (which can't combine files by itself)
This commit is contained in:
parent
105fbeb16d
commit
4c77015ed9
1
protob/.gitignore
vendored
1
protob/.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
*.pb
|
*.pb
|
||||||
|
combined.proto
|
||||||
graph.gv*
|
graph.gv*
|
||||||
|
@ -3,5 +3,10 @@ check: messages.pb messages-bitcoin.pb messages-bootloader.pb messages-cardano.p
|
|||||||
%.pb: %.proto
|
%.pb: %.proto
|
||||||
protoc -I/usr/include -I. $< -o $@
|
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:
|
clean:
|
||||||
rm -f *.pb
|
rm -f *.pb
|
||||||
|
Loading…
Reference in New Issue
Block a user