blob: 43bcf84bca4013eac3ef77885517f07d0f3181a4 [file] [log] [blame]
# Copyright 2022 The ChromiumOS Authors.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
EAPI="7"
CROS_WORKON_LOCALNAME="../platform/crosvm"
CROS_WORKON_PROJECT="chromiumos/platform/crosvm"
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_RUST_SUBDIR="tools/audio_streams_conformance_test"
CROS_WORKON_SUBDIRS_TO_COPY=("${CROS_RUST_SUBDIR}" .cargo)
CROS_WORKON_SUBTREE="${CROS_WORKON_SUBDIRS_TO_COPY[*]}"
inherit cros-workon cros-rust
DESCRIPTION="A Tool to verify the implementation correctness of audio_streams API."
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/crosvm/+/refs/heads/main/tools/audio_streams_conformance_test"
LICENSE="BSD-Google"
KEYWORDS="~*"
IUSE="test"
DEPEND="
dev-rust/third-party-crates-src:=
media-sound/audio_streams:=
media-sound/cras-client:=
dev-rust/cros_async:=
"
src_compile() {
local features=(
chromeos
)
ecargo_build -v \
--features="${features[*]}" ||
die "cargo build failed"
}
src_install() {
dobin "$(cros-rust_get_build_dir)/audio_streams_conformance_test"
}