blob: 601f00cf4c3f249961926b052f6118a8ca54d0f0 [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="ef3616f80d427851007539fb3b46221b634e1bfc"
CROS_WORKON_TREE=("e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb" "1c8af557171e05a7a6879db996f8acc73acf390f" "8f35e119f25ef305beccfd5c0adf0236354fbe08" "cf397e9600a0b2d153f579c58419577cfca75ab7")
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
}