File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 25
25
set -e
26
26
set -x
27
27
28
- CONTAINER=shiftcrypto/firmware_v2:21
28
+ CONTAINER=shiftcrypto/firmware_v2:22
29
29
30
30
if [ " $1 " == " pull" ] ; then
31
31
docker pull " $CONTAINER "
Original file line number Diff line number Diff line change @@ -129,5 +129,8 @@ RUN rustup component add clippy
129
129
RUN CARGO_HOME=/opt/cargo cargo install cbindgen --version 0.20.0
130
130
RUN CARGO_HOME=/opt/cargo cargo install bindgen --version 0.59.1
131
131
132
+ COPY tools/prost-build prost-build
133
+ RUN CARGO_HOME=/opt/cargo cargo install --path prost-build --locked
134
+
132
135
# Clean temporary files to reduce image size
133
136
RUN rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ foreach(i ${PROTO_FILES})
42
42
endif ()
43
43
endforeach ()
44
44
45
+ find_program (PROST_BUILD prost-build )
46
+
45
47
add_custom_command (
46
48
OUTPUT ${OUTPUT_SOURCES} ${OUTPUT_HEADERS}
47
49
DEPENDS ${PROTO_FILES} ${PROTO_OPTION_FILES}
@@ -56,8 +58,7 @@ add_custom_command(
56
58
# Using prost-build the normal way as part of build.rs does not work due to a cargo bug:
57
59
# https://github.com/danburkert/prost/issues/344#issuecomment-650721245
58
60
COMMAND
59
- ${CMAKE_COMMAND} -E env
60
- cargo run --manifest-path =${CMAKE_SOURCE_DIR} /tools/prost-build /Cargo.toml -- --messages-dir=${CMAKE_CURRENT_SOURCE_DIR} --out-dir=${CMAKE_SOURCE_DIR} /src/rust/bitbox02-rust/src/
61
+ ${PROST_BUILD} --messages-dir=${CMAKE_CURRENT_SOURCE_DIR} --out-dir=${CMAKE_SOURCE_DIR} /src/rust/bitbox02-rust/src/
61
62
)
62
63
63
64
add_custom_target (
You can’t perform that action at this time.
0 commit comments