Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Unified Diff: chromeos-base/metrics/metrics-0.0.1.ebuild

Issue 2055013: Use -DNDEBUG in non-debug builds to suppress debug warnings. Add gmock. (Closed) Base URL: ssh://git@chromiumos-git/chromiumos-overlay.git
Patch Set: Make gtest/gprod unconditional DEPENDs because of gtest/test_prod.h. Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromeos-base/metrics/metrics-0.0.1-r7.ebuild » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos-base/metrics/metrics-0.0.1.ebuild
diff --git a/chromeos-base/metrics/metrics-0.0.1.ebuild b/chromeos-base/metrics/metrics-0.0.1.ebuild
index c151acc72f01eea38aabe758dfb83cb88669712a..ca33e517193df044649f4d9dc9c8641bbd8a5dac 100644
--- a/chromeos-base/metrics/metrics-0.0.1.ebuild
+++ b/chromeos-base/metrics/metrics-0.0.1.ebuild
@@ -3,7 +3,7 @@
EAPI=2
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
DESCRIPTION="Chrome OS Metrics Collection Utilities"
HOMEPAGE="http://src.chromium.org"
@@ -11,20 +11,23 @@ SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86 arm"
-IUSE=""
+IUSE="debug"
# TODO(petkov): Remove dependences on metrics_collection and metrics_daemon
# and the empty ebuilds once the build dust settles.
RDEPEND="chromeos-base/chromeos-metrics_collection
chromeos-base/chromeos-metrics_daemon
chromeos-base/libchrome
+ dev-cpp/gflags
>=dev-libs/glib-2.0
dev-libs/dbus-glib
- sys-apps/dbus"
+ sys-apps/dbus
+ "
-DEPEND="dev-cpp/gflags
+DEPEND="${RDEPEND}
+ dev-cpp/gmock
dev-cpp/gtest
- ${RDEPEND}"
+ "
src_unpack() {
local metrics="${CHROMEOS_ROOT}/src/platform/metrics"
@@ -33,6 +36,7 @@ src_unpack() {
}
src_compile() {
+ use debug || append-flags -DNDEBUG
tc-export CXX AR PKG_CONFIG
emake || die "metrics compile failed."
}
« no previous file with comments | « no previous file | chromeos-base/metrics/metrics-0.0.1-r7.ebuild » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698