| # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=2 |
| CROS_WORKON_COMMIT="c5d1fe40e9f61f184a29b7555ce7b063f215c575" |
| |
| KEYWORDS="arm amd64 x86" |
| |
| CROS_WORKON_PROJECT="chromiumos/platform/login_manager" |
| inherit cros-debug cros-workon toolchain-funcs |
| |
| DESCRIPTION="Login manager for Chromium OS." |
| HOMEPAGE="http://src.chromium.org" |
| SRC_URI="" |
| LICENSE="BSD" |
| SLOT="0" |
| IUSE="test" |
| |
| RDEPEND="dev-libs/protobuf |
| chromeos-base/chromeos-cryptohome |
| chromeos-base/chromeos-minijail" |
| |
| DEPEND="${RDEPEND} |
| chromeos-base/chromeos-chrome |
| chromeos-base/libcros |
| dev-cpp/gmock |
| test? ( dev-cpp/gtest )" |
| |
| CROS_WORKON_LOCALNAME="$(basename ${CROS_WORKON_PROJECT})" |
| src_compile() { |
| tc-export CXX PKG_CONFIG |
| cros-debug-add-NDEBUG |
| emake keygen session_manager || die "chromeos-login compile failed." |
| } |
| |
| src_test() { |
| tc-export CXX PKG_CONFIG |
| cros-debug-add-NDEBUG |
| |
| emake keygen session_manager_unittest || \ |
| die "chromeos-login compile tests failed." |
| |
| if use x86 ; then |
| ./session_manager_unittest ${GTEST_ARGS} || \ |
| die "unit tests (with ${GTEST_ARGS}) failed!" |
| fi |
| } |
| |
| src_install() { |
| into / |
| dosbin "${S}/keygen" |
| dosbin "${S}/session_manager_setup.sh" |
| dosbin "${S}/session_manager" |
| dosbin "${S}/xstart.sh" |
| |
| insinto /etc/dbus-1/system.d |
| doins "${S}/SessionManager.conf" |
| |
| insinto /usr/share/dbus-1/services |
| doins "${S}/org.chromium.SessionManager.service" |
| |
| insinto /usr/share/misc |
| doins "${S}/recovery_ui.html" |
| } |