2014-10-02 17:09:37 -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',
|
|
|
|
],
|
2014-10-02 17:09:37 -04:00
|
|
|
'targets': [
|
|
|
|
{
|
2015-03-08 16:25:34 -04:00
|
|
|
'target_name': 'crashpad_snapshot',
|
2014-10-02 17:09:37 -04:00
|
|
|
'type': 'static_library',
|
|
|
|
'dependencies': [
|
2015-03-08 16:25:34 -04:00
|
|
|
'../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-08 16:25:34 -04:00
|
|
|
'../util/util.gyp:crashpad_util',
|
2014-10-02 17:09:37 -04:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'..',
|
|
|
|
],
|
|
|
|
'sources': [
|
2017-10-31 13:53:59 -04:00
|
|
|
'annotation_snapshot.cc',
|
|
|
|
'annotation_snapshot.h',
|
2016-01-14 12:50:22 -08:00
|
|
|
'capture_memory.cc',
|
|
|
|
'capture_memory.h',
|
2014-10-02 17:09:37 -04:00
|
|
|
'cpu_architecture.h',
|
|
|
|
'cpu_context.cc',
|
|
|
|
'cpu_context.h',
|
2015-05-01 13:48:23 -07:00
|
|
|
'crashpad_info_client_options.cc',
|
|
|
|
'crashpad_info_client_options.h',
|
2018-01-08 17:17:38 -08:00
|
|
|
'crashpad_types/crashpad_info_reader.cc',
|
|
|
|
'crashpad_types/crashpad_info_reader.h',
|
2018-01-09 10:22:24 -08:00
|
|
|
'crashpad_types/image_annotation_reader.cc',
|
|
|
|
'crashpad_types/image_annotation_reader.h',
|
2017-09-08 12:49:55 -07:00
|
|
|
'elf/elf_dynamic_array_reader.cc',
|
|
|
|
'elf/elf_dynamic_array_reader.h',
|
|
|
|
'elf/elf_image_reader.cc',
|
|
|
|
'elf/elf_image_reader.h',
|
|
|
|
'elf/elf_symbol_table_reader.cc',
|
|
|
|
'elf/elf_symbol_table_reader.h',
|
2018-02-20 16:11:41 -08:00
|
|
|
'elf/module_snapshot_elf.cc',
|
|
|
|
'elf/module_snapshot_elf.h',
|
2014-10-02 17:09:37 -04:00
|
|
|
'exception_snapshot.h',
|
2015-10-16 15:58:40 -07:00
|
|
|
'handle_snapshot.cc',
|
|
|
|
'handle_snapshot.h',
|
2017-07-20 10:51:08 -07:00
|
|
|
'linux/cpu_context_linux.cc',
|
|
|
|
'linux/cpu_context_linux.h',
|
2017-07-14 10:00:28 -07:00
|
|
|
'linux/debug_rendezvous.cc',
|
|
|
|
'linux/debug_rendezvous.h',
|
2017-08-01 19:05:06 -07:00
|
|
|
'linux/exception_snapshot_linux.cc',
|
|
|
|
'linux/exception_snapshot_linux.h',
|
2018-02-22 12:12:26 -08:00
|
|
|
'linux/process_reader_linux.cc',
|
|
|
|
'linux/process_reader_linux.h',
|
2017-11-03 08:54:54 -07:00
|
|
|
'linux/process_snapshot_linux.cc',
|
|
|
|
'linux/process_snapshot_linux.h',
|
2017-08-01 19:05:06 -07:00
|
|
|
'linux/signal_context.h',
|
2017-08-08 15:04:00 -07:00
|
|
|
'linux/system_snapshot_linux.cc',
|
|
|
|
'linux/system_snapshot_linux.h',
|
2017-07-20 12:08:56 -07:00
|
|
|
'linux/thread_snapshot_linux.cc',
|
|
|
|
'linux/thread_snapshot_linux.h',
|
2014-10-17 13:41:45 -04:00
|
|
|
'mac/cpu_context_mac.cc',
|
|
|
|
'mac/cpu_context_mac.h',
|
|
|
|
'mac/exception_snapshot_mac.cc',
|
|
|
|
'mac/exception_snapshot_mac.h',
|
2014-10-17 13:47:02 -04:00
|
|
|
'mac/mach_o_image_annotations_reader.cc',
|
|
|
|
'mac/mach_o_image_annotations_reader.h',
|
2014-10-17 13:41:45 -04:00
|
|
|
'mac/mach_o_image_reader.cc',
|
|
|
|
'mac/mach_o_image_reader.h',
|
|
|
|
'mac/mach_o_image_segment_reader.cc',
|
|
|
|
'mac/mach_o_image_segment_reader.h',
|
|
|
|
'mac/mach_o_image_symbol_table_reader.cc',
|
|
|
|
'mac/mach_o_image_symbol_table_reader.h',
|
2014-10-17 13:56:31 -04:00
|
|
|
'mac/module_snapshot_mac.cc',
|
|
|
|
'mac/module_snapshot_mac.h',
|
2018-02-22 12:12:26 -08:00
|
|
|
'mac/process_reader_mac.cc',
|
|
|
|
'mac/process_reader_mac.h',
|
2014-10-17 14:00:58 -04:00
|
|
|
'mac/process_snapshot_mac.cc',
|
|
|
|
'mac/process_snapshot_mac.h',
|
2014-10-17 13:41:45 -04:00
|
|
|
'mac/process_types.cc',
|
|
|
|
'mac/process_types.h',
|
|
|
|
'mac/process_types/all.proctype',
|
2017-10-31 17:14:27 -04:00
|
|
|
'mac/process_types/annotation.proctype',
|
2014-10-17 13:47:02 -04:00
|
|
|
'mac/process_types/crashpad_info.proctype',
|
2014-10-17 13:41:45 -04:00
|
|
|
'mac/process_types/crashreporterclient.proctype',
|
|
|
|
'mac/process_types/custom.cc',
|
|
|
|
'mac/process_types/dyld_images.proctype',
|
|
|
|
'mac/process_types/flavors.h',
|
|
|
|
'mac/process_types/internal.h',
|
|
|
|
'mac/process_types/loader.proctype',
|
|
|
|
'mac/process_types/nlist.proctype',
|
|
|
|
'mac/process_types/traits.h',
|
|
|
|
'mac/system_snapshot_mac.cc',
|
|
|
|
'mac/system_snapshot_mac.h',
|
|
|
|
'mac/thread_snapshot_mac.cc',
|
|
|
|
'mac/thread_snapshot_mac.h',
|
2018-02-01 15:54:56 -08:00
|
|
|
'memory_snapshot.cc',
|
2015-08-18 12:25:19 -07:00
|
|
|
'memory_snapshot.h',
|
2018-02-21 16:07:17 -08:00
|
|
|
'memory_snapshot_generic.h',
|
2017-11-01 16:24:09 -04:00
|
|
|
'minidump/minidump_annotation_reader.cc',
|
|
|
|
'minidump/minidump_annotation_reader.h',
|
2015-02-26 14:43:10 -05:00
|
|
|
'minidump/minidump_simple_string_dictionary_reader.cc',
|
|
|
|
'minidump/minidump_simple_string_dictionary_reader.h',
|
2018-11-16 20:41:17 -08:00
|
|
|
'minidump/minidump_stream.h',
|
2015-03-04 12:29:01 -05:00
|
|
|
'minidump/minidump_string_list_reader.cc',
|
|
|
|
'minidump/minidump_string_list_reader.h',
|
2015-02-26 14:43:10 -05:00
|
|
|
'minidump/minidump_string_reader.cc',
|
|
|
|
'minidump/minidump_string_reader.h',
|
2018-10-24 13:22:00 -07:00
|
|
|
'minidump/memory_snapshot_minidump.cc',
|
|
|
|
'minidump/memory_snapshot_minidump.h',
|
2015-03-04 12:29:01 -05:00
|
|
|
'minidump/module_snapshot_minidump.cc',
|
|
|
|
'minidump/module_snapshot_minidump.h',
|
2015-02-26 14:43:10 -05:00
|
|
|
'minidump/process_snapshot_minidump.cc',
|
|
|
|
'minidump/process_snapshot_minidump.h',
|
2018-10-15 15:20:48 -07:00
|
|
|
'minidump/system_snapshot_minidump.cc',
|
|
|
|
'minidump/system_snapshot_minidump.h',
|
2018-10-12 13:12:01 -07:00
|
|
|
'minidump/thread_snapshot_minidump.cc',
|
|
|
|
'minidump/thread_snapshot_minidump.h',
|
2014-10-02 17:09:37 -04:00
|
|
|
'module_snapshot.h',
|
2017-08-08 15:04:00 -07:00
|
|
|
'posix/timezone.cc',
|
|
|
|
'posix/timezone.h',
|
2014-10-02 17:09:37 -04:00
|
|
|
'process_snapshot.h',
|
2018-06-11 09:38:24 -07:00
|
|
|
'sanitized/memory_snapshot_sanitized.cc',
|
|
|
|
'sanitized/memory_snapshot_sanitized.h',
|
|
|
|
'sanitized/module_snapshot_sanitized.cc',
|
|
|
|
'sanitized/module_snapshot_sanitized.h',
|
|
|
|
'sanitized/process_snapshot_sanitized.cc',
|
|
|
|
'sanitized/process_snapshot_sanitized.h',
|
2018-06-12 08:30:36 -07:00
|
|
|
'sanitized/sanitization_information.cc',
|
|
|
|
'sanitized/sanitization_information.h',
|
2018-06-11 09:38:24 -07:00
|
|
|
'sanitized/thread_snapshot_sanitized.cc',
|
|
|
|
'sanitized/thread_snapshot_sanitized.h',
|
2017-10-31 17:14:27 -04:00
|
|
|
'snapshot_constants.h',
|
2014-10-02 17:09:37 -04:00
|
|
|
'system_snapshot.h',
|
|
|
|
'thread_snapshot.h',
|
2016-02-11 17:19:30 -08:00
|
|
|
'unloaded_module_snapshot.cc',
|
|
|
|
'unloaded_module_snapshot.h',
|
2015-08-18 12:25:19 -07:00
|
|
|
'win/cpu_context_win.cc',
|
|
|
|
'win/cpu_context_win.h',
|
|
|
|
'win/exception_snapshot_win.cc',
|
|
|
|
'win/exception_snapshot_win.h',
|
2016-01-14 12:50:22 -08:00
|
|
|
'win/capture_memory_delegate_win.cc',
|
|
|
|
'win/capture_memory_delegate_win.h',
|
2015-10-13 12:37:44 -07:00
|
|
|
'win/memory_map_region_snapshot_win.cc',
|
|
|
|
'win/memory_map_region_snapshot_win.h',
|
2015-05-11 13:29:52 -07:00
|
|
|
'win/memory_snapshot_win.cc',
|
|
|
|
'win/memory_snapshot_win.h',
|
2015-05-28 14:41:32 -07:00
|
|
|
'win/module_snapshot_win.cc',
|
2015-05-01 13:48:23 -07:00
|
|
|
'win/module_snapshot_win.h',
|
2015-05-28 14:41:32 -07:00
|
|
|
'win/pe_image_annotations_reader.cc',
|
|
|
|
'win/pe_image_annotations_reader.h',
|
2015-05-01 13:48:23 -07:00
|
|
|
'win/pe_image_reader.cc',
|
|
|
|
'win/pe_image_reader.h',
|
2015-12-01 17:06:37 -05:00
|
|
|
'win/pe_image_resource_reader.cc',
|
|
|
|
'win/pe_image_resource_reader.h',
|
2015-03-02 13:06:34 -08:00
|
|
|
'win/process_reader_win.cc',
|
|
|
|
'win/process_reader_win.h',
|
2015-05-01 13:48:23 -07:00
|
|
|
'win/process_snapshot_win.cc',
|
|
|
|
'win/process_snapshot_win.h',
|
2015-12-01 17:06:37 -05:00
|
|
|
'win/process_subrange_reader.cc',
|
|
|
|
'win/process_subrange_reader.h',
|
2015-03-02 13:06:34 -08:00
|
|
|
'win/system_snapshot_win.cc',
|
|
|
|
'win/system_snapshot_win.h',
|
2015-05-11 13:29:52 -07:00
|
|
|
'win/thread_snapshot_win.cc',
|
|
|
|
'win/thread_snapshot_win.h',
|
2017-08-08 15:04:00 -07:00
|
|
|
'x86/cpuid_reader.cc',
|
|
|
|
'x86/cpuid_reader.h',
|
2014-10-02 17:09:37 -04:00
|
|
|
],
|
2015-03-02 13:06:34 -08:00
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lpowrprof.lib',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2017-06-26 17:20:26 -04:00
|
|
|
['OS=="linux" or OS=="android"', {
|
|
|
|
'sources!': [
|
|
|
|
'capture_memory.cc',
|
|
|
|
'capture_memory.h',
|
|
|
|
],
|
2017-09-08 12:49:55 -07:00
|
|
|
}, { # else: OS!="linux" and OS!="android"
|
|
|
|
'sources/': [
|
|
|
|
['exclude', '^elf/'],
|
2018-01-08 17:17:38 -08:00
|
|
|
['exclude', '^crashpad_types/'],
|
2018-06-11 09:38:24 -07:00
|
|
|
['exclude', '^sanitized/'],
|
2017-09-08 12:49:55 -07:00
|
|
|
],
|
2017-06-26 17:20:26 -04:00
|
|
|
}],
|
2017-08-08 15:04:00 -07:00
|
|
|
['target_arch!="ia32" and target_arch!="x64"', {
|
|
|
|
'sources/': [
|
|
|
|
['exclude', '^x86/'],
|
|
|
|
],
|
|
|
|
}],
|
2017-07-05 18:23:32 -07:00
|
|
|
],
|
|
|
|
'target_conditions': [
|
|
|
|
['OS=="android"', {
|
|
|
|
'sources/': [
|
|
|
|
['include', '^linux/'],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2014-10-02 17:09:37 -04:00
|
|
|
},
|
2015-03-11 17:07:11 -04:00
|
|
|
],
|
2014-10-02 17:09:37 -04:00
|
|
|
}
|