blob: 2c673f07d6c3e052bfd49d0cd6a178da4924ca51 [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="6bd4cc56d8060900acdfeb28cd4d9cb65fbd56ed"
CROS_WORKON_TREE="7b41af0c3e34626d2374274f77ca0fdb489e0034"
CROS_WORKON_PROJECT="chromiumos/platform/bootstat"
inherit cros-workon
DESCRIPTION="Chrome OS Boot Time Statistics Utilities"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86 arm"
IUSE=""
RDEPEND=""
DEPEND="dev-cpp/gtest"
src_configure() {
cros-workon_src_configure
tc-export CC CXX AR PKG_CONFIG
}
src_compile() {
emake
}
src_test() {
emake tests
if ! use x86 && ! use amd64 ; then
echo Skipping unit tests on non-x86 platform
else
for test in ./*_test; do
"${test}" ${GTEST_ARGS} || die "${test} failed"
done
fi
}
src_install() {
into /
dosbin bootstat
dosbin bootstat_get_last
dobin bootstat_summary
into /usr
dolib.a libbootstat.a
insinto /usr/include/metrics
doins bootstat.h
}