2014-12-30 14:23:47 -05:00
|
|
|
# Copyright 2014 The Crashpad Authors. All rights reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
{
|
2015-03-08 15:17:22 -04:00
|
|
|
'includes': [
|
|
|
|
'../build/crashpad.gypi',
|
|
|
|
],
|
2015-09-03 13:31:19 -07:00
|
|
|
'targets': [
|
|
|
|
{
|
2015-11-06 10:52:09 -08:00
|
|
|
# This target exists so that the crashpad_handler can be embedded into
|
|
|
|
# another binary.
|
|
|
|
'target_name': 'crashpad_handler_lib',
|
|
|
|
'type': 'static_library',
|
2015-09-03 13:31:19 -07:00
|
|
|
'dependencies': [
|
|
|
|
'../client/client.gyp:crashpad_client',
|
|
|
|
'../compat/compat.gyp:crashpad_compat',
|
|
|
|
'../minidump/minidump.gyp:crashpad_minidump',
|
|
|
|
'../snapshot/snapshot.gyp:crashpad_snapshot',
|
|
|
|
'../third_party/mini_chromium/mini_chromium.gyp:base',
|
|
|
|
'../tools/tools.gyp:crashpad_tool_support',
|
|
|
|
'../util/util.gyp:crashpad_util',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'..',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'crash_report_upload_thread.cc',
|
|
|
|
'crash_report_upload_thread.h',
|
2016-01-05 15:09:00 -05:00
|
|
|
'handler_main.cc',
|
|
|
|
'handler_main.h',
|
2017-12-19 12:03:54 -08:00
|
|
|
'linux/exception_handler_server.cc',
|
|
|
|
'linux/exception_handler_server.h',
|
2015-09-03 13:31:19 -07:00
|
|
|
'mac/crash_report_exception_handler.cc',
|
|
|
|
'mac/crash_report_exception_handler.h',
|
|
|
|
'mac/exception_handler_server.cc',
|
|
|
|
'mac/exception_handler_server.h',
|
2017-04-18 11:50:39 -04:00
|
|
|
'mac/file_limit_annotation.cc',
|
|
|
|
'mac/file_limit_annotation.h',
|
2017-11-02 11:55:44 -04:00
|
|
|
'minidump_to_upload_parameters.cc',
|
|
|
|
'minidump_to_upload_parameters.h',
|
2016-01-05 15:09:00 -05:00
|
|
|
'prune_crash_reports_thread.cc',
|
|
|
|
'prune_crash_reports_thread.h',
|
2017-04-11 14:48:10 -04:00
|
|
|
'user_stream_data_source.cc',
|
|
|
|
'user_stream_data_source.h',
|
2015-09-03 13:31:19 -07:00
|
|
|
'win/crash_report_exception_handler.cc',
|
|
|
|
'win/crash_report_exception_handler.h',
|
|
|
|
],
|
2017-12-19 12:03:54 -08:00
|
|
|
'conditions': [
|
|
|
|
['OS=="linux" or OS=="android"', {
|
|
|
|
'sources!': [
|
|
|
|
'handler_main.cc',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'target_conditions': [
|
|
|
|
['OS=="android"', {
|
|
|
|
'sources/': [
|
|
|
|
['include', '^linux/'],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2015-11-06 10:52:09 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'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',
|
|
|
|
],
|
2015-03-13 18:23:17 -04:00
|
|
|
|
2015-09-03 13:31:19 -07:00
|
|
|
'conditions': [
|
2016-08-16 16:30:31 -07:00
|
|
|
['OS=="win"', {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'SubSystem': '2', # /SUBSYSTEM:WINDOWS
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
2014-12-30 14:23:47 -05:00
|
|
|
],
|
2015-09-03 13:31:19 -07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
'conditions': [
|
2015-05-26 14:31:04 -04:00
|
|
|
['OS=="win"', {
|
|
|
|
'targets': [
|
2016-08-16 16:30:31 -07:00
|
|
|
{
|
|
|
|
# Duplicates crashpad_handler.exe to crashpad_handler.com and makes it
|
|
|
|
# a console app.
|
|
|
|
'target_name': 'crashpad_handler_console',
|
|
|
|
'type': 'none',
|
|
|
|
'dependencies': [
|
|
|
|
'../third_party/mini_chromium/mini_chromium.gyp:base',
|
|
|
|
'../tools/tools.gyp:crashpad_tool_support',
|
|
|
|
'crashpad_handler',
|
|
|
|
],
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'copy handler exe to com',
|
|
|
|
'inputs': [
|
|
|
|
'<(PRODUCT_DIR)/crashpad_handler.exe',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(PRODUCT_DIR)/crashpad_handler.com',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'copy <(PRODUCT_DIR)\crashpad_handler.exe '
|
|
|
|
'<(PRODUCT_DIR)\crashpad_handler.com >nul && '
|
|
|
|
'editbin -nologo -subsystem:console '
|
2016-08-23 08:56:44 -07:00
|
|
|
'<(PRODUCT_DIR)\crashpad_handler.com >nul',
|
2016-08-16 16:30:31 -07:00
|
|
|
],
|
|
|
|
'msvs_cygwin_shell': '0',
|
|
|
|
'quote_cmd': '0',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2015-10-31 11:45:39 -07:00
|
|
|
],
|
2014-12-30 14:23:47 -05:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
}
|