| # Copyright 2020 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_SUBTREE="common-mk shill .gn" |
| |
| PLATFORM_SUBDIR="shill/dbus/client" |
| |
| inherit cros-workon platform |
| |
| DESCRIPTION="Shill DBus client interface library" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/shill/dbus/client" |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="~*" |
| IUSE="" |
| |
| DEPEND="chromeos-base/shill-client:=" |
| RDEPEND="" |
| |
| src_install() { |
| # Install libshill-dbus-client library. |
| insinto "/usr/$(get_libdir)/pkgconfig" |
| local v="$(libchrome_ver)" |
| ./preinstall.sh "${OUT}" "${v}" |
| dolib.so "${OUT}/lib/libshill-dbus-client.so" |
| doins "${OUT}/lib/libshill-dbus-client.pc" |
| |
| # Install header files from libshill-dbus-client. |
| insinto /usr/include/shill/dbus/client |
| doins ./*.h |
| } |
| |
| platform_pkg_test() { |
| platform_test "run" "${OUT}/libshill-dbus-client_test" |
| } |