blob: 84e8caf32e48b852c43253b356e897e2229eb043 [file] [log] [blame]
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="98d53174639518ccb46055b5e3b539725d516f77"
CROS_WORKON_TREE="df4a06a2774c46ec71e7d6f1be7cfb23b32a59b4"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_PROJECT="chromiumos/platform/audiotest"
inherit cros-workon
DESCRIPTION="Audio test tools"
HOMEPAGE="http://src.chromium.org"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="-asan -clang"
REQUIRED_USE="asan? ( clang )"
RDEPEND="media-libs/alsa-lib
media-sound/adhd
sci-libs/fftw"
DEPEND="${RDEPEND}"
src_prepare() {
cros-workon_src_prepare
}
src_configure() {
clang-setup-env
cros-workon_src_configure
}
src_compile() {
cros-workon_src_compile
}
src_install() {
cros-workon_src_install
# Install built tools
pushd "${OUT}" >/dev/null
dobin audiofuntest
dobin test_tones
dobin looptest
dobin loopback_latency
popd >/dev/null
}