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

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

Issue 2128004: Adding in-process crash dumping library and crash uploader (Closed) Base URL: ssh://git@chromiumos-git//chromeos
Patch Set: respond to review and add another test 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 | « DEPS ('k') | src/platform/crash/crash_dumper.h » ('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 CRASH_BIN = crash_reporter 5 CRASH_BIN = crash_reporter
6 CRASH_LIB = libcrash_dumper.so
6 CRASH_OBJS = system_logging.o user_collector.o 7 CRASH_OBJS = system_logging.o user_collector.o
7 TEST_OBJS = $(CRASH_OBJS) system_logging_mock.o 8 TEST_OBJS = $(CRASH_OBJS) system_logging_mock.o
8 TEST_BINS = user_collector_test 9 TEST_BINS = user_collector_test
9 10
10 LIBS = -lbase -lpthread -lgflags -lrt -lmetrics 11 LIBS = -lbase -lpthread -lgflags -lrt -lmetrics
12
11 TEST_LIBS = $(LIBS) -lgtest -lgmock 13 TEST_LIBS = $(LIBS) -lgtest -lgmock
12 INCLUDE_DIRS = -I.. 14 INCLUDE_DIRS = -I.. -I$(SYSROOT)/usr/include/google-breakpad
13 LIB_DIRS = 15 LIB_DIRS =
14 16
15 all: $(CRASH_BIN) 17 # We need -fPIC for linking objects into shared objects.
18 CXXFLAGS += -fPIC -Wall -Werror
19
20 all: $(CRASH_BIN) $(CRASH_LIB)
16 21
17 $(CRASH_BIN): crash_reporter.o $(CRASH_OBJS) 22 $(CRASH_BIN): crash_reporter.o $(CRASH_OBJS)
18 $(CXX) $(CXXFLAGS) $(LIB_DIRS) $^ $(LIBS) -o $@ 23 $(CXX) $(CXXFLAGS) $(LIB_DIRS) $^ $(LIBS) -o $@
19 24
25 $(CRASH_LIB): crash_dumper.o
26 $(CXX) -shared -lbreakpad_client $^ -o $@
27
20 tests: $(TEST_BINS) 28 tests: $(TEST_BINS)
21 29
22 user_collector_test: user_collector_test.o $(TEST_OBJS) 30 user_collector_test: user_collector_test.o $(TEST_OBJS)
23 $(CXX) $(CXXFLAGS) $(LIB_DIRS) $^ $(TEST_LIBS) -o $@ 31 $(CXX) $(CXXFLAGS) $(LIB_DIRS) $^ $(TEST_LIBS) -o $@
24 32
25 .cc.o: 33 .cc.o:
26 $(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) -c $< -o $@ 34 $(CXX) $(CXXFLAGS) $(INCLUDE_DIRS) -c $< -o $@
27 35
28 clean: 36 clean:
29 » rm -rf *.o $(CRASH_BIN) $(TEST_BINS) 37 » rm -rf *.o $(CRASH_BIN) $(TEST_BINS) $(CRASH_LIB)
OLDNEW
« no previous file with comments | « DEPS ('k') | src/platform/crash/crash_dumper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698