blob: 82b04bf463955f2a9ddb24c19c65d8bf956349cf [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=2
CROS_WORKON_COMMIT="8ffdb0af8f24494b7abdf838802b290e2756435d"
CROS_WORKON_PROJECT="chromiumos/platform/image-burner"
KEYWORDS="arm amd64 x86"
inherit cros-debug cros-workon
DESCRIPTION="Image-burning service for Chromium OS."
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
RDEPEND="chromeos-base/libchromeos
chromeos-base/libcros
dev-libs/dbus-glib
dev-libs/glib"
DEPEND="${RDEPEND}"
CROS_WORKON_LOCALNAME="$(basename ${CROS_WORKON_PROJECT})"
src_compile() {
tc-export CXX PKG_CONFIG
cros-debug-add-NDEBUG
emake image_burner || die "chromeos-imageburner compile failed."
emake image_burner_tester || \
die "chromeos-imageburner_tester compile failed."
}
src_install() {
dosbin "${S}/image_burner"
dosbin "${S}/image_burner_tester"
insinto /etc/dbus-1/system.d
doins "${S}/ImageBurner.conf"
insinto /usr/share/dbus-1/system-services
doins "${S}/org.chromium.ImageBurner.service"
}