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

Unified Diff: src/platform/crash/Makefile

Issue 1702008: Add crash_reporter functionality (Closed)
Patch Set: add set -e Created 10 years, 8 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 | src/platform/crash/crash_reporter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/crash/Makefile
diff --git a/src/platform/crash/Makefile b/src/platform/crash/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..714e1d0d993ad0c1a386671adb595afdc3c7b671
--- /dev/null
+++ b/src/platform/crash/Makefile
@@ -0,0 +1,29 @@
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+CRASH_BIN = crash_reporter
+CRASH_OBJS = system_logging.o user_collector.o
+TEST_OBJS = $(CRASH_OBJS) system_logging_mock.o
+TEST_BINS = user_collector_test
+
+LIBS = -lbase -lpthread -lgflags -lrt -lmetrics
+TEST_LIBS = $(LIBS) -lgtest -lgmock
+INCLUDE_DIRS = -I..
+LIB_DIRS =
+
+all: $(CRASH_BIN)
+
+$(CRASH_BIN): crash_reporter.o $(CRASH_OBJS)
+ $(CXX) $(CXXFLAGS) $(LIB_DIRS) $^ $(LIBS) -o $@
+
+tests: $(TEST_BINS)
+
+user_collector_test: user_collector_test.o $(TEST_OBJS)
+ $(CXX) $(CXXFLAGS) $(LIB_DIRS) $^ $(TEST_LIBS) -o $@
+
+.cc.o:
+ $(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) -c $< -o $@
+
+clean:
+ rm -rf *.o $(CRASH_BIN) $(TEST_BINS)
« no previous file with comments | « no previous file | src/platform/crash/crash_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698