1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-22 12:32:02 +00:00

build: take an optional argument specifying protobuf output directory

This commit is contained in:
matejcik 2018-04-05 12:15:19 +02:00
parent 40ff849228
commit d7fb363ffb

View File

@ -1,11 +1,15 @@
#!/bin/bash
set -e
if [ -n "$1" ]; then
OUTDIR=`readlink -f "$1"`
fi
cd "$(dirname "$0")"
# set up paths
INDEX="__init__.py"
GENPATH="../trezorlib/messages"
GENPATH="${OUTDIR:-../trezorlib/messages}"
PROTO_PATH="../vendor/trezor-common/protob"
PROTO_FILES="types messages"