crashpad_dependencies.gypi 1.7 KB

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