blob: 6569b82f5fba727037e11c9ed55a9ba18f2d7ae2 [file] [log] [blame]
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CROS_WORKON_COMMIT="81cb611aca7806203285587ff574b0bcb3b7d145"
CROS_WORKON_TREE=("e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb" "eaba00bff2d07fa5ad717a7fcda6f4ea295895df" "17ef7f8b78d237d55aed891b757c1c7397e9380e" "638bfde957a502ad58d182712c1ebdf335f9a3da")
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_LOCALNAME="platform2"
# TODO(crbug.com/809389): Remove libmems from this list.
CROS_WORKON_SUBTREE=".gn iioservice libmems common-mk"
CROS_WORKON_OUTOFTREE_BUILD="1"
CROS_WORKON_INCREMENTAL_BUILD="1"
PLATFORM_SUBDIR="iioservice/daemon"
inherit cros-workon platform
DESCRIPTION="Chrome OS sensor HAL IPC util."
LICENSE="BSD-Google"
KEYWORDS="*"
RDEPEND="
chromeos-base/libiioservice_ipc:=
chromeos-base/libmems:=
"
DEPEND="${RDEPEND}
chromeos-base/system_api:=
"
src_install() {
dosbin "${OUT}"/iioservice
}
platform_pkg_test() {
local tests=(
iioservice_testrunner
)
local test_bin
for test_bin in "${tests[@]}"; do
platform_test "run" "${OUT}/${test_bin}"
done
}