• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2014 Google Inc. All rights reserved.
2#
3# Redistribution and use in source and binary forms, with or without
4# modification, are permitted provided that the following conditions are
5# met:
6#
7#     * Redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer.
9#     * Redistributions in binary form must reproduce the above
10# copyright notice, this list of conditions and the following disclaimer
11# in the documentation and/or other materials provided with the
12# distribution.
13#     * Neither the name of Google Inc. nor the names of its
14# contributors may be used to endorse or promote products derived from
15# this software without specific prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29{
30  'includes': [
31    '../build/common.gypi',
32    'processor_tools.gypi',
33  ],
34  'targets': [
35    {
36      'target_name': 'processor',
37      'type': 'static_library',
38      'sources': [
39        'address_map-inl.h',
40        'address_map.h',
41        'basic_code_module.h',
42        'basic_code_modules.cc',
43        'basic_code_modules.h',
44        'basic_source_line_resolver.cc',
45        'basic_source_line_resolver_types.h',
46        'call_stack.cc',
47        'cfi_frame_info-inl.h',
48        'cfi_frame_info.cc',
49        'cfi_frame_info.h',
50        'contained_range_map-inl.h',
51        'contained_range_map.h',
52        'convert_old_arm64_context.cc',
53        'convert_old_arm64_context.h',
54        'disassembler_x86.cc',
55        'disassembler_x86.h',
56        'dump_context.cc',
57        'dump_object.cc',
58        'exploitability.cc',
59        'exploitability_linux.cc',
60        'exploitability_linux.h',
61        'exploitability_win.cc',
62        'exploitability_win.h',
63        'fast_source_line_resolver.cc',
64        'fast_source_line_resolver_types.h',
65        'linked_ptr.h',
66        'logging.cc',
67        'logging.h',
68        'map_serializers-inl.h',
69        'map_serializers.h',
70        'microdump_processor.cc',
71        'minidump.cc',
72        'minidump_processor.cc',
73        'module_comparer.cc',
74        'module_comparer.h',
75        'module_factory.h',
76        'module_serializer.cc',
77        'module_serializer.h',
78        'pathname_stripper.cc',
79        'pathname_stripper.h',
80        'postfix_evaluator-inl.h',
81        'postfix_evaluator.h',
82        'proc_maps_linux.cc',
83        'process_state.cc',
84        'range_map-inl.h',
85        'range_map.h',
86        'simple_serializer-inl.h',
87        'simple_serializer.h',
88        'simple_symbol_supplier.cc',
89        'simple_symbol_supplier.h',
90        'source_line_resolver_base.cc',
91        'source_line_resolver_base_types.h',
92        'stack_frame_cpu.cc',
93        'stack_frame_symbolizer.cc',
94        'stackwalk_common.cc',
95        'stackwalk_common.h',
96        'stackwalker.cc',
97        'stackwalker_address_list.cc',
98        'stackwalker_address_list.h',
99        'stackwalker_amd64.cc',
100        'stackwalker_amd64.h',
101        'stackwalker_arm.cc',
102        'stackwalker_arm.h',
103        'stackwalker_arm64.cc',
104        'stackwalker_arm64.h',
105        'stackwalker_mips.cc',
106        'stackwalker_mips.h',
107        'stackwalker_ppc.cc',
108        'stackwalker_ppc.h',
109        'stackwalker_ppc64.cc',
110        'stackwalker_ppc64.h',
111        'stackwalker_selftest.cc',
112        'stackwalker_sparc.cc',
113        'stackwalker_sparc.h',
114        'stackwalker_x86.cc',
115        'stackwalker_x86.h',
116        'static_address_map-inl.h',
117        'static_address_map.h',
118        'static_contained_range_map-inl.h',
119        'static_contained_range_map.h',
120        'static_map-inl.h',
121        'static_map.h',
122        'static_map_iterator-inl.h',
123        'static_map_iterator.h',
124        'static_range_map-inl.h',
125        'static_range_map.h',
126        'symbolic_constants_win.cc',
127        'symbolic_constants_win.h',
128        'synth_minidump.cc',
129        'synth_minidump.h',
130        'tokenize.cc',
131        'tokenize.h',
132        'windows_frame_info.h',
133      ],
134      'include_dirs': [
135        '..',
136      ],
137      'dependencies': [
138        '../common/common.gyp:common',
139        '../third_party/libdisasm/libdisasm.gyp:libdisasm',
140      ],
141    },
142    {
143      'target_name': 'processor_unittests',
144      'type': 'executable',
145      'sources': [
146        'address_map_unittest.cc',
147        'basic_source_line_resolver_unittest.cc',
148        'cfi_frame_info_unittest.cc',
149        'contained_range_map_unittest.cc',
150        'disassembler_x86_unittest.cc',
151        'exploitability_unittest.cc',
152        'fast_source_line_resolver_unittest.cc',
153        'map_serializers_unittest.cc',
154        'microdump_processor_unittest.cc',
155        'minidump_processor_unittest.cc',
156        'minidump_unittest.cc',
157        'pathname_stripper_unittest.cc',
158        'postfix_evaluator_unittest.cc',
159        'range_map_truncate_lower_unittest.cc',
160        'range_map_truncate_upper_unittest.cc',
161        'range_map_unittest.cc',
162        'stackwalker_address_list_unittest.cc',
163        'stackwalker_amd64_unittest.cc',
164        'stackwalker_arm64_unittest.cc',
165        'stackwalker_arm_unittest.cc',
166        'stackwalker_mips_unittest.cc',
167        'stackwalker_mips64_unittest.cc',
168        'stackwalker_unittest_utils.h',
169        'stackwalker_x86_unittest.cc',
170        'static_address_map_unittest.cc',
171        'static_contained_range_map_unittest.cc',
172        'static_map_unittest.cc',
173        'static_range_map_unittest.cc',
174        'synth_minidump_unittest.cc',
175        'synth_minidump_unittest_data.h',
176      ],
177      'include_dirs': [
178        '..',
179      ],
180      'dependencies': [
181        'processor',
182        '../build/testing.gyp:gmock',
183        '../build/testing.gyp:gtest',
184      ],
185    },
186  ],
187}
188