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

Side by Side Diff: handler/handler.gyp

Issue 1416873016: Break crashpad_handler into lib and exe for Windows (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@integrity
Patch Set: nofindcopies Created 5 years, 1 month 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
OLDNEW
1 # Copyright 2014 The Crashpad Authors. All rights reserved. 1 # Copyright 2014 The Crashpad Authors. All rights reserved.
2 # 2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); 3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License. 4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at 5 # You may obtain a copy of the License at
6 # 6 #
7 # http://www.apache.org/licenses/LICENSE-2.0 7 # http://www.apache.org/licenses/LICENSE-2.0
8 # 8 #
9 # Unless required by applicable law or agreed to in writing, software 9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, 10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and 12 # See the License for the specific language governing permissions and
13 # limitations under the License. 13 # limitations under the License.
14 14
15 { 15 {
16 'includes': [ 16 'includes': [
17 '../build/crashpad.gypi', 17 '../build/crashpad.gypi',
18 '../build/crashpad_in_chromium.gypi', 18 '../build/crashpad_in_chromium.gypi',
19 ], 19 ],
20 'targets': [ 20 'targets': [
21 { 21 {
22 'target_name': 'crashpad_handler', 22 # This target exists so that the crashpad_handler can be embedded into
23 'type': 'executable', 23 # another binary.
24 'target_name': 'crashpad_handler_lib',
25 'type': 'static_library',
24 'dependencies': [ 26 'dependencies': [
25 '../client/client.gyp:crashpad_client', 27 '../client/client.gyp:crashpad_client',
26 '../compat/compat.gyp:crashpad_compat', 28 '../compat/compat.gyp:crashpad_compat',
27 '../minidump/minidump.gyp:crashpad_minidump', 29 '../minidump/minidump.gyp:crashpad_minidump',
28 '../snapshot/snapshot.gyp:crashpad_snapshot', 30 '../snapshot/snapshot.gyp:crashpad_snapshot',
29 '../third_party/mini_chromium/mini_chromium.gyp:base', 31 '../third_party/mini_chromium/mini_chromium.gyp:base',
30 '../tools/tools.gyp:crashpad_tool_support', 32 '../tools/tools.gyp:crashpad_tool_support',
31 '../util/util.gyp:crashpad_util', 33 '../util/util.gyp:crashpad_util',
32 ], 34 ],
33 'include_dirs': [ 35 'include_dirs': [
34 '..', 36 '..',
35 ], 37 ],
36 'sources': [ 38 'sources': [
37 'crash_report_upload_thread.cc', 39 'crash_report_upload_thread.cc',
38 'crash_report_upload_thread.h', 40 'crash_report_upload_thread.h',
39 'mac/crash_report_exception_handler.cc', 41 'mac/crash_report_exception_handler.cc',
40 'mac/crash_report_exception_handler.h', 42 'mac/crash_report_exception_handler.h',
41 'mac/exception_handler_server.cc', 43 'mac/exception_handler_server.cc',
42 'mac/exception_handler_server.h', 44 'mac/exception_handler_server.h',
43 'main.cc', 45 'main.cc',
44 'win/crash_report_exception_handler.cc', 46 'win/crash_report_exception_handler.cc',
45 'win/crash_report_exception_handler.h', 47 'win/crash_report_exception_handler.h',
46 ], 48 ],
49 },
50 {
51 'target_name': 'crashpad_handler',
52 'type': 'executable',
53 'dependencies': [
54 '../third_party/mini_chromium/mini_chromium.gyp:base',
55 '../tools/tools.gyp:crashpad_tool_support',
56 'crashpad_handler_lib',
57 ],
58 'include_dirs': [
59 '..',
60 ],
61 'sources': [
62 'entry_point.cc',
63 ],
47 64
48 'conditions': [ 65 'conditions': [
49 ['OS=="mac"', { 66 ['OS=="mac"', {
50 # In an in-Chromium build with component=shared_library, 67 # In an in-Chromium build with component=shared_library,
51 # crashpad_handler will depend on shared libraries such as 68 # crashpad_handler will depend on shared libraries such as
52 # libbase.dylib located in out/{Debug,Release} via the @rpath 69 # libbase.dylib located in out/{Debug,Release} via the @rpath
53 # mechanism. When crashpad_handler is copied to its home deep inside 70 # mechanism. When crashpad_handler is copied to its home deep inside
54 # the Chromium app bundle, it needs to have an LC_RPATH command 71 # the Chromium app bundle, it needs to have an LC_RPATH command
55 # pointing back to the directory containing these dependency 72 # pointing back to the directory containing these dependency
56 # libraries. 73 # libraries.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ], 145 ],
129 }, 146 },
130 ], 147 ],
131 }], 148 }],
132 ], 149 ],
133 }, { 150 }, {
134 'targets': [], 151 'targets': [],
135 }], 152 }],
136 ], 153 ],
137 } 154 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698