blob: aed86e8c17f9c2dbcee5873022c2b5d0ea917682 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
CROS_WORKON_COMMIT="e60bbed4fcf62834f247c5910743e1677ff6c656"
CROS_WORKON_TREE="3eb87abffa7a9e3d9113b566766fe13a5193c2fa"
EAPI=4
CROS_WORKON_PROJECT="chromiumos/platform/crash-reporter"
inherit cros-debug cros-workon toolchain-funcs
DESCRIPTION="Build chromeos crash handler"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="test"
LIBCHROME_VERS="125070"
# crash_sender uses sys-apps/findutils (for /usr/bin/find).
RDEPEND="chromeos-base/google-breakpad
chromeos-base/libchrome:${LIBCHROME_VERS}[cros-debug=]
chromeos-base/libchromeos
chromeos-base/metrics
chromeos-base/chromeos-ca-certificates
dev-cpp/gflags
dev-libs/libpcre
test? ( dev-cpp/gtest )
net-misc/curl
sys-apps/findutils"
DEPEND="${RDEPEND}"
src_compile() {
tc-export CXX PKG_CONFIG
cros-debug-add-NDEBUG
export BASE_VER=${LIBCHROME_VERS}
emake
}
src_test() {
# TODO(benchan): Enable unit tests for arm target once
# crosbug.com/27127 is fixed.
if use arm; then
echo Skipping unit tests on arm platform
else
# TODO(mkrebs): The tests are not currently thread-safe, so
# running them in the default parallel mode results in
# failures.
emake -j1 tests
fi
}
src_install() {
into /
dosbin crash_{reporter,sender}
into /usr
dobin list_proxies
insinto /etc
doins crash_reporter_logs.conf
insinto "/lib/udev/rules.d" || die
doins "99-crash-reporter.rules" || die
}