blob: ffcedf2f6eef5ec085ec26732fb3fb1a828751c2 [file] [log] [blame]
# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
EAPI=7
CROS_WORKON_COMMIT="6c407bb2bb86d66da5677d7196a3390eeb849cc4"
CROS_WORKON_TREE="408ab006890e1b8590fc72c2484503fe25456cd7"
CROS_WORKON_PROJECT="chromiumos/platform/lithium"
CROS_WORKON_LOCALNAME="../platform/lithium"
CROS_WORKON_DESTDIR="${S}/platform/lithium"
inherit toolchain-funcs cros-workon
DESCRIPTION="C library for systems programming and unit testing"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/lithium"
LICENSE="BSD-Google"
KEYWORDS="*"
SLOT="0"
src_unpack() {
cros-workon_src_unpack
S+="/platform/lithium"
}
src_configure() {
tc-export CC AR
}
src_compile() {
emake build/release/libithium.so
}
src_install() {
dolib.so build/release/libithium.so
insinto /usr/include/lithium
doins -r include/*
}
src_test() {
emake run-tests
}