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

Unified 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: comment 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | handler/handler_main.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: handler/handler.gyp
diff --git a/handler/handler.gyp b/handler/handler.gyp
index 20df3d7388942cf5165ac55cfafa2724fc48efc8..e7f54c82dd776aa643f489d14af5af987353abe7 100644
--- a/handler/handler.gyp
+++ b/handler/handler.gyp
@@ -19,8 +19,10 @@
],
'targets': [
{
- 'target_name': 'crashpad_handler',
- 'type': 'executable',
+ # This target exists so that the crashpad_handler can be embedded into
+ # another binary.
+ 'target_name': 'crashpad_handler_lib',
+ 'type': 'static_library',
'dependencies': [
'../client/client.gyp:crashpad_client',
'../compat/compat.gyp:crashpad_compat',
@@ -40,10 +42,26 @@
'mac/crash_report_exception_handler.h',
'mac/exception_handler_server.cc',
'mac/exception_handler_server.h',
- 'main.cc',
+ 'handler_main.cc',
+ 'handler_main.h',
'win/crash_report_exception_handler.cc',
'win/crash_report_exception_handler.h',
],
+ },
+ {
+ 'target_name': 'crashpad_handler',
+ 'type': 'executable',
+ 'dependencies': [
+ '../third_party/mini_chromium/mini_chromium.gyp:base',
+ '../tools/tools.gyp:crashpad_tool_support',
+ 'crashpad_handler_lib',
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ 'sources': [
+ 'main.cc',
+ ],
'conditions': [
['OS=="mac"', {
« no previous file with comments | « no previous file | handler/handler_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698