2014-08-20 15:18:55 -04: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-05-06 10:28:07 -07:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'crashpad_tool_support',
|
|
|
|
'type': 'static_library',
|
|
|
|
'dependencies': [
|
|
|
|
'../third_party/mini_chromium/mini_chromium.gyp:base',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'..',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'tool_support.cc',
|
|
|
|
'tool_support.h',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'crashpad_database_util',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
|
|
|
'crashpad_tool_support',
|
|
|
|
'../client/client.gyp:crashpad_client',
|
|
|
|
'../compat/compat.gyp:crashpad_compat',
|
|
|
|
'../third_party/mini_chromium/mini_chromium.gyp:base',
|
|
|
|
'../util/util.gyp:crashpad_util',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'..',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'crashpad_database_util.cc',
|
|
|
|
],
|
|
|
|
},
|
2017-03-03 15:11:50 -05:00
|
|
|
{
|
|
|
|
'target_name': 'crashpad_http_upload',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
|
|
|
'crashpad_tool_support',
|
|
|
|
'../compat/compat.gyp:crashpad_compat',
|
|
|
|
'../third_party/mini_chromium/mini_chromium.gyp:base',
|
|
|
|
'../util/util.gyp:crashpad_util',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'..',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'crashpad_http_upload.cc',
|
|
|
|
],
|
|
|
|
},
|
2015-05-06 11:09:31 -07:00
|
|
|
{
|
|
|
|
'target_name': 'generate_dump',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
|
|
|
'crashpad_tool_support',
|
|
|
|
'../compat/compat.gyp:crashpad_compat',
|
|
|
|
'../minidump/minidump.gyp:crashpad_minidump',
|
|
|
|
'../snapshot/snapshot.gyp:crashpad_snapshot',
|
|
|
|
'../third_party/mini_chromium/mini_chromium.gyp:base',
|
|
|
|
'../util/util.gyp:crashpad_util',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'..',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'generate_dump.cc',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'-sectcreate',
|
|
|
|
'__TEXT',
|
|
|
|
'__info_plist',
|
|
|
|
'<(sectaskaccess_info_plist)'
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
2017-03-03 15:11:50 -05:00
|
|
|
},
|
2015-05-06 10:28:07 -07:00
|
|
|
],
|
2014-09-30 13:11:04 -07:00
|
|
|
'conditions': [
|
|
|
|
['OS=="mac"', {
|
2014-12-30 14:27:58 -05:00
|
|
|
'variables': {
|
|
|
|
# Programs that use task_for_pid() can indicate to taskgated(8) in their
|
|
|
|
# Info.plist that they are allowed to call that function. In order for
|
|
|
|
# this to work, the programs in question must be signed by an authority
|
|
|
|
# trusted by the system. Signing is beyond the scope of the build, but
|
|
|
|
# the key to make this work is placed in Info.plist to enable the
|
|
|
|
# desired behavior once the tools that require this access are signed.
|
|
|
|
#
|
|
|
|
# The tools built here are flat-file executables, and are not bundled.
|
|
|
|
# To have an Info.plist, they must have a special __TEXT,__info_plist
|
|
|
|
# section. This section is created at link time.
|
|
|
|
#
|
|
|
|
# The Info.plist for this purpose is mac/sectaskaccess_info.plist and is
|
|
|
|
# referenced by OTHER_LDFLAGS. ninja runs the link step from the output
|
|
|
|
# directory such as out/Release, and requires a relative path from that
|
|
|
|
# directory. Xcode runs the link step from the directory of the
|
|
|
|
# .xcodeproj, which is the directory of the .gyp file.
|
|
|
|
'conditions': [
|
|
|
|
['GENERATOR=="ninja"', {
|
2015-03-09 15:25:42 -04:00
|
|
|
'sectaskaccess_info_plist': '<!(pwd)/mac/sectaskaccess_info.plist',
|
2014-12-30 14:27:58 -05:00
|
|
|
}, { # else: GENERATOR!="ninja"
|
|
|
|
'sectaskaccess_info_plist': 'mac/sectaskaccess_info.plist',
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
2014-09-30 13:11:04 -07:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'catch_exception_tool',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
2015-03-08 16:25:34 -04:00
|
|
|
'crashpad_tool_support',
|
|
|
|
'../compat/compat.gyp:crashpad_compat',
|
2015-03-09 15:25:42 -04:00
|
|
|
'../third_party/mini_chromium/mini_chromium.gyp:base',
|
2015-03-08 16:25:34 -04:00
|
|
|
'../util/util.gyp:crashpad_util',
|
2014-09-30 13:11:04 -07:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'..',
|
|
|
|
],
|
|
|
|
'sources': [
|
2014-12-17 15:26:23 -05:00
|
|
|
'mac/catch_exception_tool.cc',
|
2014-09-30 13:11:04 -07:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'exception_port_tool',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
2015-03-08 16:25:34 -04:00
|
|
|
'crashpad_tool_support',
|
|
|
|
'../compat/compat.gyp:crashpad_compat',
|
2015-03-09 15:25:42 -04:00
|
|
|
'../third_party/mini_chromium/mini_chromium.gyp:base',
|
2015-03-08 16:25:34 -04:00
|
|
|
'../util/util.gyp:crashpad_util',
|
2014-09-30 13:11:04 -07:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'..',
|
|
|
|
],
|
|
|
|
'sources': [
|
2014-12-17 15:26:23 -05:00
|
|
|
'mac/exception_port_tool.cc',
|
2014-09-30 13:11:04 -07:00
|
|
|
],
|
2014-12-30 14:27:58 -05:00
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'-sectcreate',
|
|
|
|
'__TEXT',
|
|
|
|
'__info_plist',
|
|
|
|
'<(sectaskaccess_info_plist)'
|
|
|
|
],
|
|
|
|
},
|
2014-09-30 13:11:04 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'on_demand_service_tool',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
2015-03-08 16:25:34 -04:00
|
|
|
'crashpad_tool_support',
|
|
|
|
'../compat/compat.gyp:crashpad_compat',
|
2015-03-09 15:25:42 -04:00
|
|
|
'../third_party/mini_chromium/mini_chromium.gyp:base',
|
2015-03-08 16:25:34 -04:00
|
|
|
'../util/util.gyp:crashpad_util',
|
2014-09-30 13:11:04 -07:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'..',
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'sources': [
|
2014-12-17 15:26:23 -05:00
|
|
|
'mac/on_demand_service_tool.mm',
|
2014-09-30 13:11:04 -07:00
|
|
|
],
|
|
|
|
},
|
2014-12-30 14:25:58 -05:00
|
|
|
{
|
|
|
|
'target_name': 'run_with_crashpad',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
2015-03-08 16:25:34 -04:00
|
|
|
'crashpad_tool_support',
|
|
|
|
'../client/client.gyp:crashpad_client',
|
|
|
|
'../compat/compat.gyp:crashpad_compat',
|
2015-03-09 15:25:42 -04:00
|
|
|
'../third_party/mini_chromium/mini_chromium.gyp:base',
|
2015-03-12 14:28:19 -04:00
|
|
|
'../util/util.gyp:crashpad_util',
|
2014-12-30 14:25:58 -05:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'..',
|
|
|
|
],
|
|
|
|
'sources': [
|
2018-05-01 12:21:38 -07:00
|
|
|
'run_with_crashpad.cc',
|
2014-12-30 14:25:58 -05:00
|
|
|
],
|
|
|
|
},
|
2014-08-20 15:18:55 -04:00
|
|
|
],
|
2014-09-30 13:11:04 -07:00
|
|
|
}],
|
2014-08-20 15:18:55 -04:00
|
|
|
],
|
|
|
|
}
|