OLD | NEW |
| (Empty) |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 if (is_android) { | |
6 import("//build/config/android/config.gni") | |
7 } | |
8 | |
9 source_set("lib") { | |
10 sources = [ | |
11 "crash_keys_win.cc", | |
12 "crash_keys_win.h", | |
13 "crash_reporter_client.cc", | |
14 "crash_reporter_client.h", | |
15 ] | |
16 | |
17 include_dirs = [ "../../../breakpad/src" ] | |
18 } | |
19 | |
20 # Note: if you depend on this target, you need to either link in | |
21 # content.gyp:content_common, or add content/public/common/content_switches.cc | |
22 # to your sources. | |
23 # | |
24 # GYP version: components/crash.gypi:crash_component | |
25 source_set("app") { | |
26 sources = [ | |
27 "breakpad_linux_impl.h", | |
28 "breakpad_mac.h", | |
29 "breakpad_mac.mm", | |
30 "breakpad_win.cc", | |
31 "breakpad_win.h", | |
32 "hard_error_handler_win.cc", | |
33 "hard_error_handler_win.h", | |
34 ] | |
35 | |
36 if (is_android) { | |
37 libs = [ "log" ] | |
38 } | |
39 | |
40 if (is_android || is_linux) { | |
41 # Want these files on both Linux and Android. | |
42 set_sources_assignment_filter([]) | |
43 sources += [ | |
44 "breakpad_linux.cc", | |
45 "breakpad_linux.h", | |
46 ] | |
47 } | |
48 | |
49 defines = [ "CRASH_IMPLEMENTATION" ] | |
50 | |
51 deps = [ | |
52 "//base", | |
53 "//base:base_static", | |
54 ":lib", | |
55 ] | |
56 | |
57 if (is_android) { | |
58 defines += [ "CHROME_BUILD_ID=" + android_chrome_build_id ] | |
59 } | |
60 | |
61 if (is_mac) { | |
62 deps += [ "//breakpad" ] | |
63 } else if (is_win) { | |
64 deps += [ | |
65 "//sandbox", | |
66 "//breakpad:breakpad_handler", | |
67 | |
68 #'../breakpad/breakpad.gyp:breakpad_sender', TODO(GYP) | |
69 ] | |
70 } else if (is_posix && !is_ios) { | |
71 deps += [ "//breakpad:client" ] | |
72 } | |
73 } | |
74 | |
75 source_set("test_support") { | |
76 deps = [ | |
77 ":lib", | |
78 ] | |
79 } | |
OLD | NEW |