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

Unified Diff: util/util.gyp

Issue 1377963002: win: Add and use a custom CaptureContext() implementation (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: util/util.gyp
diff --git a/util/util.gyp b/util/util.gyp
index 099c3103d272d26685edff857348085b2dcad614..dab345ac27ac8206e70211aff8894a57c753da7e 100644
--- a/util/util.gyp
+++ b/util/util.gyp
@@ -149,6 +149,8 @@
'thread/thread_posix.cc',
'thread/thread_win.cc',
'win/address_types.h',
+ 'win/capture_context.asm',
+ 'win/capture_context.h',
'win/checked_win_address_range.h',
'win/exception_handler_server.cc',
'win/exception_handler_server.h',
@@ -240,6 +242,41 @@
'-lwinhttp.lib',
],
},
+ 'conditions': [
+ ['target_arch=="ia32"', {
+ 'msvs_settings': {
+ 'MASM': {
+ 'UseSafeExceptionHandlers': 'true',
+ },
+ },
+ }],
+ ['target_arch=="x64"', {
+ 'rules': [
+ {
+ # .asm files aren’t assembled by the Windows toolchain by
+ # default on x86_64.
+ 'rule_name': 'Assemble',
+ 'msvs_cygwin_shell': 0,
+ 'msvs_quote_cmd': 0,
+ 'extension': 'asm',
+ 'inputs': [],
+ 'outputs': [
+ '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).obj',
+ ],
+ 'action': [
+ 'ml64',
+ '/nologo',
+ '/Fo',
+ '<(INTERMEDIATE_DIR)\\<(RULE_INPUT_ROOT).obj',
+ '/c',
+ '<(RULE_INPUT_PATH)',
+ ],
+ 'process_outputs_as_sources': 1,
+ 'message': 'Assembling <(RULE_INPUT_PATH)',
+ },
+ ],
+ }],
+ ],
}],
],
},

Powered by Google App Engine
This is Rietveld 408576698