blob: c194ddef1be1d2a0355d21332f40e236d236b4a9 [file] [log] [blame]
# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="37b2e13c99f1f2b9429569378c297aab852c8f53"
CROS_WORKON_TREE="479f684d89d4aec71d0670e12a6707161833f8f2"
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
PLATFORM_SUBDIR="libwebserv"
inherit cros-workon platform
DESCRIPTION="HTTP sever interface library"
HOMEPAGE="http://www.chromium.org/"
LICENSE="BSD-Google"
SLOT=0
KEYWORDS="*"
RDEPEND="
chromeos-base/libchromeos
net-libs/libmicrohttpd
"
DEPEND="
${RDEPEND}
test? (
dev-cpp/gmock
dev-cpp/gtest
)
"
src_install() {
insinto "/usr/$(get_libdir)/pkgconfig"
local v
for v in "${LIBCHROME_VERS[@]}"; do
./preinstall.sh "${OUT}" "${v}"
dolib.so "${OUT}/lib/libwebserv-${v}.so"
doins "${OUT}/lib/libwebserv-${v}.pc"
done
# Install header files from libwebserv
insinto /usr/include/libwebserv
doins *.h
}
platform_pkg_test() {
local tests=(
libwebserv_testrunner
)
local test_bin
for test_bin in "${tests[@]}"; do
platform_test "run" "${OUT}/${test_bin}"
done
}