blob: daabfdd014600fccdae9455978a6f0c09759dbdd [file] [edit]
# Copyright 2022 The ChromiumOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CROS_WORKON_COMMIT="3f36817a50e36a75f5d550e4224985d602dbdc2a"
CROS_WORKON_TREE=("85177660404f5d1964f33388d7ef929d2de50375" "2265d9ba621f5cab161139eb66c692d40e1ba69b" "8ce74e95f5e979aa5f6bf73875ba84a6f6e42bfc" "64d8ead44395e8ec58fb83826f014e178f1f0558")
inherit cros-constants
CROS_RUST_SUBDIR="rust/vboot_reference-sys"
CROS_WORKON_PROJECT="chromiumos/platform/vboot_reference"
CROS_WORKON_LOCALNAME="../platform/vboot_reference"
CROS_WORKON_SUBTREE="host/include firmware/include firmware/2lib/include rust/vboot_reference-sys"
inherit cros-workon cros-rust
DESCRIPTION="Chrome OS verified boot tools Rust bindings"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+/HEAD/rust"
LICENSE="BSD-Google"
KEYWORDS="*"
# ebuilds that install executables and depend on vboot_reference-sys need to
# RDEPEND on chromeos-base/vboot_reference
DEPEND="
dev-rust/third-party-crates-src:=
chromeos-base/vboot_reference:=
virtual/bindgen:=
"
# (crbug.com/1182669): build-time only deps need to be in RDEPEND so they are pulled in when
# installing binpkgs since the full source tree is required to use the crate.
RDEPEND="${DEPEND}"
BDEPEND="
dev-rust/bindgen
"