| # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="4" |
| CROS_WORKON_PROJECT="chromiumos/platform/p2p" |
| |
| inherit autotools cros-debug cros-workon |
| |
| DESCRIPTION="Chrome OS P2P" |
| HOMEPAGE="http://www.chromium.org/" |
| SRC_URI="" |
| |
| LICENSE="BSD" |
| SLOT="0" |
| KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
| IUSE="-asan -clang" |
| REQUIRED_USE="asan? ( clang )" |
| |
| LIBCHROME_VERS="180609" |
| |
| RDEPEND="chromeos-base/libchrome:${LIBCHROME_VERS}[cros-debug=] |
| chromeos-base/metrics |
| chromeos-base/platform2 |
| dev-libs/glib |
| net-dns/avahi" |
| |
| DEPEND="test? ( dev-cpp/gmock ) |
| test? ( dev-cpp/gtest ) |
| ${RDEPEND}" |
| |
| src_prepare() { |
| eautoreconf |
| } |
| |
| src_configure() { |
| clang-setup-env |
| cros-workon_src_configure $(use_enable test tests) |
| } |
| |
| src_test() { |
| if ! use x86 && ! use amd64 ; then |
| einfo "Skipping tests on non-x86 platform..." |
| else |
| # Needed for `cros_run_unit_tests`. |
| cros-workon_src_test |
| fi |
| } |