| OLD | NEW |
| 1 # Copyright 2015 The Crashpad Authors. All rights reserved. | 1 # Copyright 2015 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 # Crashpad can obtain dependencies in three different ways, directed by the | 16 # Crashpad’s GYP build can obtain dependencies in two different ways, directed |
| 17 # crashpad_standalone GYP variable. It may have these values: | 17 # by the crashpad_standalone GYP variable. It may have these values: |
| 18 # standalone | 18 # standalone |
| 19 # A “standalone” Crashpad build, where the dependencies are in the | 19 # A “standalone” Crashpad build, where the dependencies are in the |
| 20 # Crashpad tree. third_party/mini_chromium and third_party/gtest provide | 20 # Crashpad tree. third_party/mini_chromium and third_party/gtest provide |
| 21 # the base and gtest libraries. | 21 # the base and gtest libraries. |
| 22 # chromium | |
| 23 # An in-Chromium build, where Crashpad is within the Chromium tree. | |
| 24 # Chromium provides its own base library and its copy of the gtest | |
| 25 # library. | |
| 26 # external | 22 # external |
| 27 # A build with external dependencies. mini_chromium provides the base | 23 # A build with external dependencies. mini_chromium provides the base |
| 28 # library, but it’s located outside of the Crashpad tree, as is gtest. | 24 # library, but it’s located outside of the Crashpad tree, as is gtest. |
| 29 # | 25 # |
| 30 # In order for Crashpad’s .gyp files to reference the correct versions | 26 # In order for Crashpad’s .gyp files to reference the correct versions |
| 31 # depending on how dependencies are being provided, include this .gypi file | 27 # depending on how dependencies are being provided, include this .gypi file |
| 32 # and reference the crashpad_dependencies variable. | 28 # and reference the crashpad_dependencies variable. |
| 29 # |
| 30 # Note that Crashpad’s in-Chromium build uses GN instead of GYP, and |
| 31 # Chromium’s GN build configures Crashpad to use Chromium’s own base library |
| 32 # and its copy of the gtest library. |
| 33 | 33 |
| 34 'variables': { | 34 'variables': { |
| 35 # When building as a standalone project or with external dependencies, | 35 # When with external dependencies, build/gyp_crashpad.py sets |
| 36 # build/gyp_crashpad.py sets crashpad_dependencies to "standalone" or | 36 # crashpad_dependencies to "external", and this % assignment will not |
| 37 # "external", and this % assignment will not override it. The variable will | 37 # override it. |
| 38 # not be set by anything else when building as part of Chromium, so in that | 38 'crashpad_dependencies%': 'standalone', |
| 39 # case, this will define it with value "chromium". | |
| 40 'crashpad_dependencies%': 'chromium', | |
| 41 }, | 39 }, |
| 42 } | 40 } |
| OLD | NEW |