| # Copyright 2019 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="7" |
| |
| CROS_WORKON_COMMIT="5869f01249df06c60bc6e1e498c8f2084304ed55" |
| CROS_WORKON_TREE="56f51edbec0ccbbca4e4cdd4694e849e4ae48f42" |
| CROS_RUST_SUBDIR="cras/src/server/rust" |
| |
| CROS_WORKON_LOCALNAME="adhd" |
| CROS_WORKON_PROJECT="chromiumos/third_party/adhd" |
| # We don't use CROS_WORKON_OUTOFTREE_BUILD here since cras/src/server/rust is |
| # using the `provided by ebuild` macro from the cros-rust eclass |
| CROS_WORKON_SUBTREE="${CROS_RUST_SUBDIR}" |
| |
| inherit cros-workon cros-rust |
| |
| DESCRIPTION="Rust code which is used within cras" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/third_party/adhd/+/HEAD/cras/src/server/rust" |
| |
| LICENSE="BSD-Google" |
| KEYWORDS="*" |
| IUSE="test" |
| |
| DEPEND=" |
| dev-rust/libc:= |
| " |
| |
| src_install() { |
| dolib.a "$(cros-rust_get_build_dir)/libcras_rust.a" |
| cros-rust_src_install |
| } |