depends: Add `rust/cxx.h` header as a dependency

We could also generate this in the main build with `cxxbridge --header`,
but we have the source from vendoring `cxxbridge`, and this simplifies
the automake integration slightly.
This commit is contained in:
Jack Grigg 2022-05-26 01:07:30 +00:00
parent 7a46e8365f
commit 21f1bbf4aa
2 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,4 @@
zcash_packages := libsodium utfcpp
zcash_packages := libsodium rustcxx utfcpp
packages := boost libevent zeromq $(zcash_packages) googletest
native_packages := native_clang native_ccache native_rust native_cxxbridge

View File

@ -0,0 +1,13 @@
package=rustcxx
$(package)_version=$(native_cxxbridge_version)
$(package)_file_name=$(native_cxxbridge_file_name)
$(package)_sha256_hash=$(native_cxxbridge_sha256_hash)
# Nothing to do, this was fetched by native_cxxbridge.
define $(package)_fetch_cmds
endef
define $(package)_stage_cmds
mkdir -p $($(package)_staging_prefix_dir)/include/rust && \
cp include/cxx.h $($(package)_staging_prefix_dir)/include/rust
endef