blob: 9ed2209f7f1632eca92a9ce31a7d8e7cdec4f509 [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="07f013179e6253705f29de5ad0edf2af3a2eb26f"
CROS_WORKON_TREE="48c237b1f88fe5ad81a575e9114b5f98b0fbb002"
EAPI="4"
CROS_WORKON_PROJECT="chromiumos/platform/gestures"
CROS_WORKON_USE_VCSID=1
inherit toolchain-funcs multilib cros-debug cros-workon
DESCRIPTION="Gesture recognizer library"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE=""
LIBCHROME_VERS="125070"
RDEPEND="chromeos-base/libchrome:${LIBCHROME_VERS}[cros-debug=]"
DEPEND="dev-cpp/gtest
x11-base/xorg-server
${RDEPEND}"
src_compile() {
tc-export CXX
cros-debug-add-NDEBUG
export BASE_VER=${LIBCHROME_VERS}
emake clean # TODO(adlr): remove when a better solution exists
emake
}
src_test() {
emake test
if ! use x86 && ! use amd64 ; then
einfo "Skipping tests on non-x86 platform..."
else
./test || die
fi
}
src_install() {
emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" install
}