| OLD | NEW |
| 1 # Copyright 2014 The Crashpad Authors. All rights reserved. | 1 # Copyright 2014 The Crashpad Authors. All rights reserved. |
| 2 # | 2 # |
| 3 # Licensed under the Apache License, Version 2.0 (the "License"); | 3 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 # you may not use this file except in compliance with the License. | 4 # you may not use this file except in compliance with the License. |
| 5 # You may obtain a copy of the License at | 5 # You may obtain a copy of the License at |
| 6 # | 6 # |
| 7 # http://www.apache.org/licenses/LICENSE-2.0 | 7 # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 # | 8 # |
| 9 # Unless required by applicable law or agreed to in writing, software | 9 # Unless required by applicable law or agreed to in writing, software |
| 10 # distributed under the License is distributed on an "AS IS" BASIS, | 10 # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 # See the License for the specific language governing permissions and | 12 # See the License for the specific language governing permissions and |
| 13 # limitations under the License. | 13 # limitations under the License. |
| 14 | 14 |
| 15 { | 15 { |
| 16 'includes': [ | 16 'includes': [ |
| 17 '../build/crashpad.gypi', | 17 '../build/crashpad.gypi', |
| 18 '../build/crashpad_in_chromium.gypi', | 18 '../build/crashpad_in_chromium.gypi', |
| 19 ], | 19 ], |
| 20 'targets': [ | 20 'targets': [ |
| 21 { | 21 { |
| 22 'target_name': 'crashpad_handler', | 22 # This target exists so that the crashpad_handler can be embedded into |
| 23 'type': 'executable', | 23 # another binary. |
| 24 'target_name': 'crashpad_handler_lib', |
| 25 'type': 'static_library', |
| 24 'dependencies': [ | 26 'dependencies': [ |
| 25 '../client/client.gyp:crashpad_client', | 27 '../client/client.gyp:crashpad_client', |
| 26 '../compat/compat.gyp:crashpad_compat', | 28 '../compat/compat.gyp:crashpad_compat', |
| 27 '../minidump/minidump.gyp:crashpad_minidump', | 29 '../minidump/minidump.gyp:crashpad_minidump', |
| 28 '../snapshot/snapshot.gyp:crashpad_snapshot', | 30 '../snapshot/snapshot.gyp:crashpad_snapshot', |
| 29 '../third_party/mini_chromium/mini_chromium.gyp:base', | 31 '../third_party/mini_chromium/mini_chromium.gyp:base', |
| 30 '../tools/tools.gyp:crashpad_tool_support', | 32 '../tools/tools.gyp:crashpad_tool_support', |
| 31 '../util/util.gyp:crashpad_util', | 33 '../util/util.gyp:crashpad_util', |
| 32 ], | 34 ], |
| 33 'include_dirs': [ | 35 'include_dirs': [ |
| 34 '..', | 36 '..', |
| 35 ], | 37 ], |
| 36 'sources': [ | 38 'sources': [ |
| 37 'crash_report_upload_thread.cc', | 39 'crash_report_upload_thread.cc', |
| 38 'crash_report_upload_thread.h', | 40 'crash_report_upload_thread.h', |
| 39 'mac/crash_report_exception_handler.cc', | 41 'mac/crash_report_exception_handler.cc', |
| 40 'mac/crash_report_exception_handler.h', | 42 'mac/crash_report_exception_handler.h', |
| 41 'mac/exception_handler_server.cc', | 43 'mac/exception_handler_server.cc', |
| 42 'mac/exception_handler_server.h', | 44 'mac/exception_handler_server.h', |
| 43 'main.cc', | 45 'handler_main.cc', |
| 46 'handler_main.h', |
| 44 'win/crash_report_exception_handler.cc', | 47 'win/crash_report_exception_handler.cc', |
| 45 'win/crash_report_exception_handler.h', | 48 'win/crash_report_exception_handler.h', |
| 46 ], | 49 ], |
| 50 }, |
| 51 { |
| 52 'target_name': 'crashpad_handler', |
| 53 'type': 'executable', |
| 54 'dependencies': [ |
| 55 '../third_party/mini_chromium/mini_chromium.gyp:base', |
| 56 '../tools/tools.gyp:crashpad_tool_support', |
| 57 'crashpad_handler_lib', |
| 58 ], |
| 59 'include_dirs': [ |
| 60 '..', |
| 61 ], |
| 62 'sources': [ |
| 63 'main.cc', |
| 64 ], |
| 47 | 65 |
| 48 'conditions': [ | 66 'conditions': [ |
| 49 ['OS=="mac"', { | 67 ['OS=="mac"', { |
| 50 # In an in-Chromium build with component=shared_library, | 68 # In an in-Chromium build with component=shared_library, |
| 51 # crashpad_handler will depend on shared libraries such as | 69 # crashpad_handler will depend on shared libraries such as |
| 52 # libbase.dylib located in out/{Debug,Release} via the @rpath | 70 # libbase.dylib located in out/{Debug,Release} via the @rpath |
| 53 # mechanism. When crashpad_handler is copied to its home deep inside | 71 # mechanism. When crashpad_handler is copied to its home deep inside |
| 54 # the Chromium app bundle, it needs to have an LC_RPATH command | 72 # the Chromium app bundle, it needs to have an LC_RPATH command |
| 55 # pointing back to the directory containing these dependency | 73 # pointing back to the directory containing these dependency |
| 56 # libraries. | 74 # libraries. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 ], | 146 ], |
| 129 }, | 147 }, |
| 130 ], | 148 ], |
| 131 }], | 149 }], |
| 132 ], | 150 ], |
| 133 }, { | 151 }, { |
| 134 'targets': [], | 152 'targets': [], |
| 135 }], | 153 }], |
| 136 ], | 154 ], |
| 137 } | 155 } |
| OLD | NEW |