blob: a536693d61cfb0248b63131295f9c5d8fb98a84d [file] [log] [blame]
# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_COMMIT="cbd49ae409608324b54a545e4e7fbc3261a1aa43"
CROS_WORKON_TREE="59995a05a50902a432a1f996701a8b0a93f9042f"
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
PLATFORM_SUBDIR="chromeos-config"
inherit cros-workon platform
DESCRIPTION="Chrome OS configuration tools"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/chromeos-config"
LICENSE="BSD-Google"
SLOT=0
KEYWORDS="*"
IUSE=""
RDEPEND="
chromeos-base/libbrillo
sys-apps/dtc
"
DEPEND="${RDEPEND}"
src_install() {
dolib.so "${OUT}/lib/libcros_config.so"
"${S}"/platform2_preinstall.sh "${PV}" "/usr/include/chromeos" "${OUT}"
insinto "/usr/$(get_libdir)/pkgconfig"
doins "${OUT}"/libcros_config.pc
dobin "${OUT}"/cros_config
}
platform_pkg_test() {
local tests=(
cros_config_unittest
cros_config_main_unittest
fake_cros_config_unittest
)
local test_bin
for test_bin in "${tests[@]}"; do
platform_test "run" "${OUT}/${test_bin}"
done
}