| 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_dependencies.gypi', | |
| 19 ], | 18 ], |
| 20 'targets': [ | 19 'targets': [ |
| 21 { | 20 { |
| 22 # This target exists so that the crashpad_handler can be embedded into | 21 # This target exists so that the crashpad_handler can be embedded into |
| 23 # another binary. | 22 # another binary. |
| 24 'target_name': 'crashpad_handler_lib', | 23 'target_name': 'crashpad_handler_lib', |
| 25 'type': 'static_library', | 24 'type': 'static_library', |
| 26 'dependencies': [ | 25 'dependencies': [ |
| 27 '../client/client.gyp:crashpad_client', | 26 '../client/client.gyp:crashpad_client', |
| 28 '../compat/compat.gyp:crashpad_compat', | 27 '../compat/compat.gyp:crashpad_compat', |
| (...skipping 30 matching lines...) Expand all Loading... |
| 59 'crashpad_handler_lib', | 58 'crashpad_handler_lib', |
| 60 ], | 59 ], |
| 61 'include_dirs': [ | 60 'include_dirs': [ |
| 62 '..', | 61 '..', |
| 63 ], | 62 ], |
| 64 'sources': [ | 63 'sources': [ |
| 65 'main.cc', | 64 'main.cc', |
| 66 ], | 65 ], |
| 67 | 66 |
| 68 'conditions': [ | 67 'conditions': [ |
| 69 ['OS=="mac"', { | |
| 70 # In an in-Chromium build with component=shared_library, | |
| 71 # crashpad_handler will depend on shared libraries such as | |
| 72 # libbase.dylib located in out/{Debug,Release} via the @rpath | |
| 73 # mechanism. When crashpad_handler is copied to its home deep inside | |
| 74 # the Chromium app bundle, it needs to have an LC_RPATH command | |
| 75 # pointing back to the directory containing these dependency | |
| 76 # libraries. | |
| 77 'variables': { | |
| 78 'component%': 'static_library', | |
| 79 }, | |
| 80 'conditions': [ | |
| 81 ['crashpad_dependencies=="chromium" and component=="shared_library"'
, { | |
| 82 'xcode_settings': { | |
| 83 'LD_RUNPATH_SEARCH_PATHS': [ # -Wl,-rpath | |
| 84 # Get back from | |
| 85 # Chromium.app/Contents/Versions/V/Framework.framework/Helpers | |
| 86 '@loader_path/../../../../../..', | |
| 87 ], | |
| 88 }, | |
| 89 }], | |
| 90 ], | |
| 91 }], | |
| 92 ['OS=="win"', { | 68 ['OS=="win"', { |
| 93 'msvs_settings': { | 69 'msvs_settings': { |
| 94 'VCLinkerTool': { | 70 'VCLinkerTool': { |
| 95 'SubSystem': '2', # /SUBSYSTEM:WINDOWS | 71 'SubSystem': '2', # /SUBSYSTEM:WINDOWS |
| 96 }, | 72 }, |
| 97 }, | 73 }, |
| 98 }], | 74 }], |
| 99 ], | 75 ], |
| 100 }, | 76 }, |
| 101 ], | 77 ], |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 ], | 216 ], |
| 241 }, | 217 }, |
| 242 ], | 218 ], |
| 243 }], | 219 }], |
| 244 ], | 220 ], |
| 245 }, { | 221 }, { |
| 246 'targets': [], | 222 'targets': [], |
| 247 }], | 223 }], |
| 248 ], | 224 ], |
| 249 } | 225 } |
| OLD | NEW |