blob: 527e088feafb4e4501751b60cad04c7d9fd1aeeb [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="d3271498cb7f05397e7e9172c468d70dd6ab8ef1"
CROS_WORKON_TREE=("825512278f3738ba8ac7c5f167aacd4677cfebf7" "04cd0e8c5f96c27f49b7938d595c9c9c706fd8a0" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb")
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/net"
inherit cros-workon platform
DESCRIPTION="Shill networking component interface library"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/shill/net"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="fuzzer +wifi"
DEPEND=""
RDEPEND="
!<chromeos-base/shill-0.0.5
"
src_install() {
# Install libshill-net library.
insinto "/usr/$(get_libdir)/pkgconfig"
local v="$(libchrome_ver)"
./preinstall.sh "${OUT}" "${v}"
dolib.so "${OUT}/lib/libshill-net.so"
doins "${OUT}/lib/libshill-net.pc"
# TODO(crbug/920513): Remove both.
# Backward compatibility before all usages of versioned libraries are
# removed.
doins "${OUT}/lib/libshill-net-${v}.pc"
# Backward compatibility before developers has built their software against
# new shill.
dosym libshill-net.so "/usr/$(get_libdir)/libshill-net-${v}.so"
# Install header files from libshill-net.
insinto /usr/include/shill/net
doins ./*.h
local fuzzer
for fuzzer in "${OUT}"/*_fuzzer; do
platform_fuzzer_install "${S}"/../OWNERS "${fuzzer}"
done
}
platform_pkg_test() {
platform_test "run" "${OUT}/shill_net_test"
}