blob: ea322ff0835d5daf1c30f399c37f92d840b174e4 [file] [log] [blame]
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
CROS_RUST_REMOVE_DEV_DEPS=1
inherit cros-rust
DESCRIPTION="A VK-GL-CTS/dEQP wrapper program to parallelize it across CPUs and report results against a baseline."
HOMEPAGE="https://gitlab.freedesktop.org/anholt/deqp-runner"
SRC_URI="https://crates.io/api/v1/crates/${PN}/${PV}/download -> ${P}.crate"
LICENSE="MIT"
SLOT="0/${PR}"
KEYWORDS="*"
DEPEND="
=dev-rust/anyhow-1*:=
>=dev-rust/criterion-0.3.0:= <dev-rust/criterion-0.4.0
>=dev-rust/lazy_static-1.4:= <dev-rust/lazy_static-2.0
>=dev-rust/rand-0.7.3:= <dev-rust/rand-0.8
>=dev-rust/rayon-1.5.0:= <dev-rust/rayon-2.0.0
=dev-rust/regex-1*:=
>=dev-rust/stderrlog-0.4:= <dev-rust/stderrlog-0.6
=dev-rust/structopt-0.3*:=
>=dev-rust/thread-id-3.3.0:= <dev-rust/thread-id-4.0
>=dev-rust/timeout-readwrite-0.3.1:= <dev-rust/timeout-readwrite-0.4
"
src_compile() {
ecargo_build
}
src_install() {
local build_dir="$(cros-rust_get_build_dir)"
dobin "${build_dir}/deqp-runner"
}