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:
parent
105fbeb16d
commit
4c77015ed9
1
protob/.gitignore
vendored
1
protob/.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
*.pb
|
||||
combined.proto
|
||||
graph.gv*
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user