blob: f2eeee9358303495ded9f71779e4e7e6013b1aec [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="5"
CROS_WORKON_COMMIT="2617f00881f2c53b7ebe6c103f4165845e3b67ef"
CROS_WORKON_TREE=("b050a2ab2836dd6da5e48eab3fd4ac328d4325bc" "0fe09665ccf98d579aacc0ae02842ef4f39560b9" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb")
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_SUBTREE="common-mk smogcheck .gn"
CROS_WORKON_INCREMENTAL_BUILD="1"
CROS_WORKON_OUTOFTREE_BUILD="1"
inherit cros-sanitizers cros-workon cros-debug multilib
DESCRIPTION="TPM SmogCheck library"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/smogcheck/"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="-asan"
src_unpack() {
cros-workon_src_unpack
S+="/smogcheck"
}
src_prepare() {
cros-workon_src_prepare
}
src_configure() {
sanitizers-setup-env
cros-workon_src_configure
}
src_install() {
emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
}