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

Side by Side Diff: handler/handler.gyp

Issue 1314093002: Refactor handler/main for Windows, implement CrashHandlerExceptionServer (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@crash-handler-exe
Patch Set: fixes2 Created 5 years, 3 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 | « handler/crashpad_handler.ad ('k') | handler/mac/crashpad_handler.ad » ('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 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 'conditions': [ 20 'targets': [
21 ['OS=="mac"', { 21 {
22 'targets': [ 22 'target_name': 'crashpad_handler',
23 { 23 'type': 'executable',
24 'target_name': 'crashpad_handler', 24 'dependencies': [
25 'type': 'executable', 25 '../client/client.gyp:crashpad_client',
26 'dependencies': [ 26 '../compat/compat.gyp:crashpad_compat',
27 '../client/client.gyp:crashpad_client', 27 '../minidump/minidump.gyp:crashpad_minidump',
28 '../compat/compat.gyp:crashpad_compat', 28 '../snapshot/snapshot.gyp:crashpad_snapshot',
29 '../minidump/minidump.gyp:crashpad_minidump', 29 '../third_party/mini_chromium/mini_chromium.gyp:base',
30 '../snapshot/snapshot.gyp:crashpad_snapshot', 30 '../tools/tools.gyp:crashpad_tool_support',
31 '../third_party/mini_chromium/mini_chromium.gyp:base', 31 '../util/util.gyp:crashpad_util',
32 '../tools/tools.gyp:crashpad_tool_support', 32 ],
33 '../util/util.gyp:crashpad_util', 33 'include_dirs': [
34 ], 34 '..',
35 'include_dirs': [ 35 ],
36 '..', 36 'sources': [
37 ], 37 'crash_report_upload_thread.cc',
38 'sources': [ 38 'crash_report_upload_thread.h',
39 'crash_report_upload_thread.cc', 39 'mac/crash_report_exception_handler.cc',
40 'crash_report_upload_thread.h', 40 'mac/crash_report_exception_handler.h',
41 'mac/crash_report_exception_handler.cc', 41 'mac/exception_handler_server.cc',
42 'mac/crash_report_exception_handler.h', 42 'mac/exception_handler_server.h',
43 'mac/exception_handler_server.cc', 43 'main.cc',
44 'mac/exception_handler_server.h', 44 'win/crash_report_exception_handler.cc',
45 'mac/main.cc', 45 'win/crash_report_exception_handler.h',
46 ], 46 ],
47 47
48 'conditions': [
49 ['OS=="mac"', {
48 # In an in-Chromium build with component=shared_library, 50 # In an in-Chromium build with component=shared_library,
49 # crashpad_handler will depend on shared libraries such as 51 # crashpad_handler will depend on shared libraries such as
50 # libbase.dylib located in out/{Debug,Release} via the @rpath 52 # libbase.dylib located in out/{Debug,Release} via the @rpath
51 # mechanism. When crashpad_handler is copied to its home deep inside 53 # mechanism. When crashpad_handler is copied to its home deep inside
52 # the Chromium app bundle, it needs to have an LC_RPATH command 54 # the Chromium app bundle, it needs to have an LC_RPATH command
53 # pointing back to the directory containing these dependency 55 # pointing back to the directory containing these dependency
54 # libraries. 56 # libraries.
55 'variables': { 57 'variables': {
56 'component%': 'static_library', 58 'component%': 'static_library',
57 }, 59 },
58 'conditions': [ 60 'conditions': [
59 ['crashpad_in_chromium!=0 and component=="shared_library"', { 61 ['crashpad_in_chromium!=0 and component=="shared_library"', {
60 'xcode_settings': { 62 'xcode_settings': {
61 'LD_RUNPATH_SEARCH_PATHS': [ # -Wl,-rpath 63 'LD_RUNPATH_SEARCH_PATHS': [ # -Wl,-rpath
62 # Get back from 64 # Get back from
63 # Chromium.app/Contents/Versions/V/Framework.framework/Helpers 65 # Chromium.app/Contents/Versions/V/Framework.framework/Helpers
64 '@loader_path/../../../../../..', 66 '@loader_path/../../../../../..',
65 ], 67 ],
66 }, 68 },
67 }], 69 }],
68 ], 70 ],
69 }, 71 }],
70 ], 72 ],
71 },], 73 },
74 ],
75 'conditions': [
72 ['OS=="win"', { 76 ['OS=="win"', {
73 'targets': [ 77 'targets': [
74 { 78 {
75 'target_name': 'crashpad_handler', 79 'target_name': 'crashy_program',
76 # TODO(scottmg): This will soon be an executable, once main.cc exists. 80 'type': 'executable',
77 'type': 'static_library',
78 'dependencies': [ 81 'dependencies': [
79 '../compat/compat.gyp:crashpad_compat', 82 '../client/client.gyp:crashpad_client',
80 '../third_party/mini_chromium/mini_chromium.gyp:base', 83 '../third_party/mini_chromium/mini_chromium.gyp:base',
81 '../util/util.gyp:crashpad_util', 84 '../tools/tools.gyp:crashpad_tool_support',
82 ], 85 ],
83 'include_dirs': [ 86 'include_dirs': [
84 '..', 87 '..',
85 ], 88 ],
86 'sources': [ 89 'sources': [
87 'crash_report_upload_thread.cc', 90 'win/crashy_test_program.cc',
88 'crash_report_upload_thread.h',
89 ], 91 ],
90 }, 92 },
91 ], 93 ],
92 }, { 94 }, {
93 'targets': [], 95 'targets': [],
94 }], 96 }],
95 ], 97 ],
96 } 98 }
OLDNEW
« no previous file with comments | « handler/crashpad_handler.ad ('k') | handler/mac/crashpad_handler.ad » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698