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’s GYP build can obtain dependencies in two different ways, directed 17 # by the crashpad_standalone GYP variable. It may have these values: 18 # standalone 19 # A “standalone” Crashpad build, where the dependencies are in the 20 # Crashpad tree. third_party/mini_chromium and third_party/googletest 21 # provide the base and Google Test libraries. 22 # external 23 # A build with external dependencies. mini_chromium provides the base 24 # library, but it’s located outside of the Crashpad tree, as is Google 25 # Test. 26 # 27 # In order for Crashpad’s .gyp files to reference the correct versions 28 # depending on how dependencies are being provided, include this .gypi file 29 # and reference the crashpad_dependencies variable. 30 # 31 # Note that Crashpad’s in-Chromium build uses GN instead of GYP, and 32 # Chromium’s GN build configures Crashpad to use Chromium’s own base library 33 # and its copy of the Google Test library. 34 35 'variables': { 36 # When with external dependencies, build/gyp_crashpad.py sets 37 # crashpad_dependencies to "external", and this % assignment will not 38 # override it. 39 'crashpad_dependencies%': 'standalone', 40 }, 41} 42