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

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: debase 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 | « no previous file | handler/mac/main.cc » ('j') | handler/main.cc » ('J')
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,
(...skipping 24 matching lines...) Expand all
35 'include_dirs': [ 35 'include_dirs': [
36 '..', 36 '..',
37 ], 37 ],
38 'sources': [ 38 'sources': [
39 'crash_report_upload_thread.cc', 39 'crash_report_upload_thread.cc',
40 'crash_report_upload_thread.h', 40 'crash_report_upload_thread.h',
41 'mac/crash_report_exception_handler.cc', 41 'mac/crash_report_exception_handler.cc',
42 'mac/crash_report_exception_handler.h', 42 'mac/crash_report_exception_handler.h',
43 'mac/exception_handler_server.cc', 43 'mac/exception_handler_server.cc',
44 'mac/exception_handler_server.h', 44 'mac/exception_handler_server.h',
45 'mac/main.cc', 45 'main.cc',
46 ], 46 ],
47 47
48 # In an in-Chromium build with component=shared_library, 48 # In an in-Chromium build with component=shared_library,
49 # crashpad_handler will depend on shared libraries such as 49 # crashpad_handler will depend on shared libraries such as
50 # libbase.dylib located in out/{Debug,Release} via the @rpath 50 # libbase.dylib located in out/{Debug,Release} via the @rpath
51 # mechanism. When crashpad_handler is copied to its home deep inside 51 # mechanism. When crashpad_handler is copied to its home deep inside
52 # the Chromium app bundle, it needs to have an LC_RPATH command 52 # the Chromium app bundle, it needs to have an LC_RPATH command
53 # pointing back to the directory containing these dependency 53 # pointing back to the directory containing these dependency
54 # libraries. 54 # libraries.
55 'variables': { 55 'variables': {
56 'component%': 'static_library', 56 'component%': 'static_library',
57 }, 57 },
58 'conditions': [ 58 'conditions': [
59 ['crashpad_in_chromium!=0 and component=="shared_library"', { 59 ['crashpad_in_chromium!=0 and component=="shared_library"', {
60 'xcode_settings': { 60 'xcode_settings': {
61 'LD_RUNPATH_SEARCH_PATHS': [ # -Wl,-rpath 61 'LD_RUNPATH_SEARCH_PATHS': [ # -Wl,-rpath
62 # Get back from 62 # Get back from
63 # Chromium.app/Contents/Versions/V/Framework.framework/Helpers 63 # Chromium.app/Contents/Versions/V/Framework.framework/Helpers
64 '@loader_path/../../../../../..', 64 '@loader_path/../../../../../..',
65 ], 65 ],
66 }, 66 },
67 }], 67 }],
68 ], 68 ],
69 }, 69 },
70 ], 70 ],
71 },], 71 },],
72 ['OS=="win"', { 72 ['OS=="win"', {
73 'targets': [ 73 'targets': [
74 { 74 {
75 'target_name': 'crashpad_handler', 75 'target_name': 'crashpad_handler',
Mark Mentovai 2015/09/03 18:33:37 Can we share this target between mac and win now?
scottmg 2015/09/03 19:54:31 Indeed, and that fixes some missing dependencies.
76 # TODO(scottmg): This will soon be an executable, once main.cc exists. 76 'type': 'executable',
77 'type': 'static_library',
78 'dependencies': [ 77 'dependencies': [
79 '../compat/compat.gyp:crashpad_compat', 78 '../compat/compat.gyp:crashpad_compat',
79 '../minidump/minidump.gyp:crashpad_minidump',
80 '../third_party/mini_chromium/mini_chromium.gyp:base', 80 '../third_party/mini_chromium/mini_chromium.gyp:base',
81 '../tools/tools.gyp:crashpad_tool_support',
81 '../util/util.gyp:crashpad_util', 82 '../util/util.gyp:crashpad_util',
82 ], 83 ],
83 'include_dirs': [ 84 'include_dirs': [
84 '..', 85 '..',
85 ], 86 ],
86 'sources': [ 87 'sources': [
87 'crash_report_upload_thread.cc', 88 'crash_report_upload_thread.cc',
88 'crash_report_upload_thread.h', 89 'crash_report_upload_thread.h',
90 'win/crash_report_exception_handler.cc',
91 'win/crash_report_exception_handler.h',
92 'main.cc',
93 ],
94 },
95 {
96 'target_name': 'crashy_program',
97 'type': 'executable',
98 'dependencies': [
99 '../client/client.gyp:crashpad_client',
100 '../third_party/mini_chromium/mini_chromium.gyp:base',
101 '../tools/tools.gyp:crashpad_tool_support',
102 ],
103 'include_dirs': [
104 '..',
105 ],
106 'sources': [
107 'win/crashy_test_program.cc',
89 ], 108 ],
90 }, 109 },
91 ], 110 ],
92 }, { 111 }, {
93 'targets': [], 112 'targets': [],
94 }], 113 }],
95 ], 114 ],
96 } 115 }
OLDNEW
« no previous file with comments | « no previous file | handler/mac/main.cc » ('j') | handler/main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698