blob: 293aab067bf509dd6ff3c1ff6b4f4519571a7d19 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_LOCALNAME="../platform/chromiumos-wide-profiling"
CROS_WORKON_PROJECT="chromiumos/platform/chromiumos-wide-profiling"
inherit cros-debug cros-workon toolchain-funcs
DESCRIPTION="Program used to collect performance data on ChromeOS machines"
HOMEPAGE=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="-asan -clang"
REQUIRED_USE="asan? ( clang )"
LIBCHROME_VERS="180609"
COMMON_DEPEND="chromeos-base/libchrome:${LIBCHROME_VERS}[cros-debug=]
dev-libs/openssl
dev-libs/protobuf"
RDEPEND="${COMMON_DEPEND}
virtual/perf"
DEPEND="${COMMON_DEPEND}
test? ( dev-cpp/gtest )"
src_configure() {
clang-setup-env
cros-workon_src_configure
}
src_compile() {
cros-workon_src_compile
}
src_test() {
if ! use x86 && ! use amd64 ; then
einfo Skipping unit tests on non-x86 platform
else
cros-workon_src_test
fi
}
src_install() {
dobin quipper
}