OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 The Crashpad Authors. All rights reserved. |
| 2 # |
| 3 # Licensed under the Apache License, Version 2.0 (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 |
| 6 # |
| 7 # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 # |
| 9 # Unless required by applicable law or agreed to in writing, software |
| 10 # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 # See the License for the specific language governing permissions and |
| 13 # limitations under the License. |
| 14 |
| 15 { |
| 16 # Crashpad can build as a standalone project or as part of Chromium. When |
| 17 # building as a standalone project, it uses mini_chromium to provide the base |
| 18 # library, and uses its own copy of gtest in third_party. When building as |
| 19 # part of Chromium, it uses Chromium’s base library and copy of gtest. In |
| 20 # order for Crashpad’s .gyp files to reference the correct versions depending |
| 21 # on whether building standalone or as a part of Chromium, include this .gypi |
| 22 # file and reference the crashpad_in_chromium variable. |
| 23 |
| 24 'variables': { |
| 25 'variables': { |
| 26 # When building as a standalone project, build/gyp_crashpad.py sets |
| 27 # crashpad_standalone to 1, and this % assignment will not override it. |
| 28 # The variable will not be set when building as part of Chromium, so in |
| 29 # that case, this will define it with value 0. |
| 30 'crashpad_standalone%': 0, |
| 31 }, |
| 32 |
| 33 'conditions': [ |
| 34 ['crashpad_standalone!=0', { |
| 35 'crashpad_in_chromium': 0, |
| 36 }, { |
| 37 'crashpad_in_chromium': 1, |
| 38 }], |
| 39 ], |
| 40 |
| 41 'crashpad_in_chromium': '<(crashpad_in_chromium)', |
| 42 }, |
| 43 } |
OLD | NEW |