blob: b1aa7e4d02a35e310dda42630cb8641f4d89db2c [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="5af2f5ec27b9a119038406571ca23f3e435335a8"
CROS_WORKON_TREE="73b686ab000068fbc02b209c02ea1bdd27910567"
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 alsa_api_test
dobin audiofuntest
dobin test_tones
dobin looptest
dobin loopback_latency
popd >/dev/null
}