DEPS 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. # Copyright 2014 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. vars = {
  15. 'chromium_git': 'https://chromium.googlesource.com',
  16. 'gn_version': 'git_revision:2ecd43a10266bd091c98e6dcde507c64f6a0dad3',
  17. 'pull_linux_clang': False,
  18. 'pull_win_toolchain': False,
  19. # Controls whether crashpad/build/ios/setup-ios-gn.py is run as part of
  20. # gclient hooks. It is enabled by default for developer's convenience. It can
  21. # be disabled with custom_vars (done automatically on the bots).
  22. 'run_setup_ios_gn': True,
  23. }
  24. deps = {
  25. 'buildtools':
  26. Var('chromium_git') + '/chromium/src/buildtools.git@' +
  27. '8b16338d17cd71b04a6ba28da7322ab6739892c2',
  28. 'buildtools/clang_format/script':
  29. Var('chromium_git') +
  30. '/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@' +
  31. 'c912837e0d82b5ca4b6e790b573b3956d3744c1c',
  32. 'crashpad/third_party/edo/edo': {
  33. 'url': Var('chromium_git') + '/external/github.com/google/eDistantObject.git@' +
  34. '727e556705278598fce683522beedbb9946bfda0',
  35. 'condition': 'checkout_ios',
  36. },
  37. 'crashpad/third_party/googletest/googletest':
  38. Var('chromium_git') + '/external/github.com/google/googletest@' +
  39. 'af29db7ec28d6df1c7f0f745186884091e602e07',
  40. 'crashpad/third_party/lss/lss':
  41. Var('chromium_git') + '/linux-syscall-support.git@' +
  42. 'e1e7b0ad8ee99a875b272c8e33e308472e897660',
  43. 'crashpad/third_party/mini_chromium/mini_chromium':
  44. Var('chromium_git') + '/chromium/mini_chromium@' +
  45. '75dcb8dc417af77fdb9ec23c7b51cb1d57dfcee2',
  46. 'crashpad/third_party/libfuzzer/src':
  47. Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git@' +
  48. 'fda403cf93ecb8792cb1d061564d89a6553ca020',
  49. 'crashpad/third_party/zlib/zlib':
  50. Var('chromium_git') + '/chromium/src/third_party/zlib@' +
  51. '13dc246a58e4b72104d35f9b1809af95221ebda7',
  52. # CIPD packages.
  53. 'buildtools/linux64': {
  54. 'packages': [
  55. {
  56. 'package': 'gn/gn/linux-amd64',
  57. 'version': Var('gn_version'),
  58. }
  59. ],
  60. 'dep_type': 'cipd',
  61. 'condition': 'host_os == "linux"',
  62. },
  63. 'buildtools/mac': {
  64. 'packages': [
  65. {
  66. 'package': 'gn/gn/mac-${{arch}}',
  67. 'version': Var('gn_version'),
  68. }
  69. ],
  70. 'dep_type': 'cipd',
  71. 'condition': 'host_os == "mac"',
  72. },
  73. 'buildtools/win': {
  74. 'packages': [
  75. {
  76. 'package': 'gn/gn/windows-amd64',
  77. 'version': Var('gn_version'),
  78. }
  79. ],
  80. 'dep_type': 'cipd',
  81. 'condition': 'host_os == "win"',
  82. },
  83. 'crashpad/third_party/linux/clang/linux-amd64': {
  84. 'packages': [
  85. {
  86. 'package': 'fuchsia/clang/linux-amd64',
  87. 'version': 'goma',
  88. },
  89. ],
  90. 'condition': 'checkout_linux and pull_linux_clang',
  91. 'dep_type': 'cipd'
  92. },
  93. 'crashpad/third_party/fuchsia/clang/mac-amd64': {
  94. 'packages': [
  95. {
  96. 'package': 'fuchsia/clang/mac-amd64',
  97. 'version': 'goma',
  98. },
  99. ],
  100. 'condition': 'checkout_fuchsia and host_os == "mac"',
  101. 'dep_type': 'cipd'
  102. },
  103. 'crashpad/third_party/fuchsia/clang/linux-amd64': {
  104. 'packages': [
  105. {
  106. 'package': 'fuchsia/clang/linux-amd64',
  107. 'version': 'goma',
  108. },
  109. ],
  110. 'condition': 'checkout_fuchsia and host_os == "linux"',
  111. 'dep_type': 'cipd'
  112. },
  113. 'crashpad/third_party/fuchsia/sdk/mac-amd64': {
  114. 'packages': [
  115. {
  116. 'package': 'fuchsia/sdk/gn/mac-amd64',
  117. 'version': 'latest'
  118. },
  119. ],
  120. 'condition': 'checkout_fuchsia and host_os == "mac"',
  121. 'dep_type': 'cipd'
  122. },
  123. 'crashpad/third_party/fuchsia/sdk/linux-amd64': {
  124. 'packages': [
  125. {
  126. 'package': 'fuchsia/sdk/gn/linux-amd64',
  127. 'version': 'latest'
  128. },
  129. ],
  130. 'condition': 'checkout_fuchsia and host_os == "linux"',
  131. 'dep_type': 'cipd'
  132. },
  133. 'crashpad/third_party/win/toolchain': {
  134. # This package is only updated when the solution in .gclient includes an
  135. # entry like:
  136. # "custom_vars": { "pull_win_toolchain": True }
  137. # This is because the contained bits are not redistributable.
  138. 'packages': [
  139. {
  140. 'package': 'chrome_internal/third_party/sdk/windows',
  141. 'version': 'uploaded:2021-04-28'
  142. },
  143. ],
  144. 'condition': 'checkout_win and pull_win_toolchain',
  145. 'dep_type': 'cipd'
  146. },
  147. }
  148. hooks = [
  149. {
  150. 'name': 'clang_format_mac',
  151. 'pattern': '.',
  152. 'condition': 'host_os == "mac"',
  153. 'action': [
  154. 'download_from_google_storage',
  155. '--no_resume',
  156. '--no_auth',
  157. '--bucket=chromium-clang-format',
  158. '--sha1_file',
  159. 'buildtools/mac/clang-format.{host_cpu}.sha1',
  160. '--output',
  161. 'buildtools/mac/clang-format',
  162. ],
  163. },
  164. {
  165. 'name': 'clang_format_linux',
  166. 'pattern': '.',
  167. 'condition': 'host_os == "linux"',
  168. 'action': [
  169. 'download_from_google_storage',
  170. '--no_resume',
  171. '--no_auth',
  172. '--bucket=chromium-clang-format',
  173. '--sha1_file',
  174. 'buildtools/linux64/clang-format.sha1',
  175. ],
  176. },
  177. {
  178. 'name': 'clang_format_win',
  179. 'pattern': '.',
  180. 'condition': 'host_os == "win"',
  181. 'action': [
  182. 'download_from_google_storage',
  183. '--no_resume',
  184. '--no_auth',
  185. '--bucket=chromium-clang-format',
  186. '--sha1_file',
  187. 'buildtools/win/clang-format.exe.sha1',
  188. ],
  189. },
  190. {
  191. # If using a local clang ("pull_linux_clang" above), also pull down a
  192. # sysroot.
  193. 'name': 'sysroot_linux',
  194. 'pattern': '.',
  195. 'condition': 'checkout_linux and pull_linux_clang',
  196. 'action': [
  197. 'crashpad/build/install_linux_sysroot.py',
  198. ],
  199. },
  200. {
  201. 'name': 'setup_gn_ios',
  202. 'pattern': '.',
  203. 'condition': 'run_setup_ios_gn and checkout_ios',
  204. 'action': [
  205. 'python3',
  206. 'crashpad/build/ios/setup_ios_gn.py'
  207. ],
  208. },
  209. ]
  210. recursedeps = [
  211. 'buildtools',
  212. ]