blob: 29cf52a5af0b586e1337f2b2c37ee62363e0fe55 [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="6bb9b8fe43e0b5add60f97ce92d0f4a2ecab65e1"
CROS_WORKON_TREE="8e47c3054d0748628354df2cc1713f31a4855a81"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_DESTDIR="${S}"
inherit toolchain-funcs cros-debug cros-workon
DESCRIPTION="TPM SmogCheck library"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
IUSE="-asan -clang"
REQUIRED_USE="asan? ( clang )"
KEYWORDS="*"
RDEPEND=""
DEPEND="${RDEPEND}
sys-kernel/linux-headers"
src_unpack() {
cros-workon_src_unpack
S+="/smogcheck"
}
src_configure() {
clang-setup-env
cros-workon_src_configure
}
src_compile() {
tc-export CC
cros-debug-add-NDEBUG
emake clean
emake
}
src_install() {
emake DESTDIR="${D}" install
}