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

Side by Side Diff: src/platform/metrics/Makefile

Issue 2049007: Start transition the metrics library to non-static API. Use gmock in tests. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Break down tests to avoid explicit metrics lib mock checkpoints. 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/platform/metrics/README » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 # 4 #
5 # Makefile for metrics utilities -- library, client and daemon 5 # Makefile for metrics utilities -- library, client and daemon
6 # 6 #
7 7
8 CCONFIG = $(shell $(PKG_CONFIG) --cflags dbus-1 glib-2.0 dbus-glib-1) 8 CCONFIG = $(shell $(PKG_CONFIG) --cflags dbus-1 glib-2.0 dbus-glib-1)
9 LDCONFIG = $(shell $(PKG_CONFIG) --libs dbus-1 glib-2.0 gthread-2.0 dbus-glib-1) 9 LDCONFIG = $(shell $(PKG_CONFIG) --libs dbus-1 glib-2.0 gthread-2.0 dbus-glib-1)
10 10
(...skipping 10 matching lines...) Expand all
21 LIB_OBJS = \ 21 LIB_OBJS = \
22 metrics_library.o 22 metrics_library.o
23 DAEMON_OBJS = \ 23 DAEMON_OBJS = \
24 metrics_daemon.o \ 24 metrics_daemon.o \
25 metrics_daemon_main.o 25 metrics_daemon_main.o
26 TESTDAEMON_OBJS = \ 26 TESTDAEMON_OBJS = \
27 metrics_daemon.o \ 27 metrics_daemon.o \
28 metrics_daemon_test.o 28 metrics_daemon_test.o
29 29
30 DAEMON_LDFLAGS = $(LDCONFIG) -lrt -lbase -lpthread -lgflags 30 DAEMON_LDFLAGS = $(LDCONFIG) -lrt -lbase -lpthread -lgflags
31 TESTDAEMON_LIBS = -lgtest 31 TESTDAEMON_LIBS = -lgmock -lgtest
32 32
33 all: $(LIB) $(SHAREDLIB) $(CLIENT) $(DAEMON) 33 all: $(LIB) $(SHAREDLIB) $(CLIENT) $(DAEMON)
34 34
35 tests: $(DAEMON_TEST) 35 tests: $(DAEMON_TEST)
36 36
37 $(CLIENT): $(CLIENT_OBJS) $(SHAREDLIB) 37 $(CLIENT): $(CLIENT_OBJS) $(SHAREDLIB)
38 $(CXX) $(LDFLAGS) $^ -o $@ 38 $(CXX) $(LDFLAGS) $^ -o $@
39 39
40 $(DAEMON): $(DAEMON_OBJS) $(SHAREDLIB) 40 $(DAEMON): $(DAEMON_OBJS) $(SHAREDLIB)
41 $(CXX) -o $@ $^ $(DAEMON_LDFLAGS) 41 $(CXX) -o $@ $^ $(DAEMON_LDFLAGS)
(...skipping 25 matching lines...) Expand all
67 install $(CLIENT) $(DESTDIR)/usr/bin 67 install $(CLIENT) $(DESTDIR)/usr/bin
68 install $(DAEMON) $(DESTDIR)/usr/bin 68 install $(DAEMON) $(DESTDIR)/usr/bin
69 install $(LIB) $(DESTDIR)/usr/lib 69 install $(LIB) $(DESTDIR)/usr/lib
70 install $(SHAREDLIB) $(DESTDIR)/usr/lib 70 install $(SHAREDLIB) $(DESTDIR)/usr/lib
71 install metrics_library.h $(DESTDIR)/usr/include 71 install metrics_library.h $(DESTDIR)/usr/include
72 install syslog_parser.sh $(DESTDIR)/usr/bin 72 install syslog_parser.sh $(DESTDIR)/usr/bin
73 install omaha_tracker.sh $(DESTDIR)/usr/sbin 73 install omaha_tracker.sh $(DESTDIR)/usr/sbin
74 74
75 clean: 75 clean:
76 rm -f $(CLIENT) $(DAEMON) $(LIB) $(SHAREDLIB) $(TESTDAEMON) *.o 76 rm -f $(CLIENT) $(DAEMON) $(LIB) $(SHAREDLIB) $(TESTDAEMON) *.o
OLDNEW
« no previous file with comments | « no previous file | src/platform/metrics/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698