1 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
2 # Distributed under the terms of the GNU General Public License v2
5 CROS_WORKON_PROJECT="chromiumos/platform/metrics"
7 inherit cros-debug cros-workon
9 DESCRIPTION="Chrome OS Metrics Collection Utilities"
10 HOMEPAGE="http://www.chromium.org/"
15 KEYWORDS="~amd64 ~arm ~x86"
18 LIBCHROME_VERS="180609"
20 RDEPEND="chromeos-base/libchrome:${LIBCHROME_VERS}[cros-debug=]
21 chromeos-base/libchromeos
29 chromeos-base/system_api
35 cros-workon_src_configure
39 tc-export CXX AR PKG_CONFIG
41 export BASE_VER=${LIBCHROME_VERS}
46 tc-export CXX AR PKG_CONFIG
49 if ! use x86 && ! use amd64 ; then
50 elog "Skipping unit tests on non-x86 platform"
52 for test in ./*_test; do
53 # Always test the shared object we just built by
54 # adding . to the library path.
55 LD_LIBRARY_PATH=.:${LD_LIBRARY_PATH} \
56 "${test}" ${GTEST_ARGS} || die "${test} failed"
62 dobin metrics_{client,daemon} syslog_parser.sh
64 dolib.so libmetrics.so
66 insinto /usr/include/metrics
67 doins c_metrics_library.h metrics_library{,_mock}.h timer{,_mock}.h