blob: ff8b6c6166238750364f66db5f1e6d19b3f54740 [file] [log] [blame]
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# 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="1b54b0fa69bb183ed19945a79b72bc17145eafe4"
CROS_WORKON_TREE="ecddc13f623dcd1cef607dff7c78ef72c9f11ad8"
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
}