• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1use_relative_paths = True
2
3gclient_gn_args_file = 'build/config/gclient_args.gni'
4gclient_gn_args = [
5  'checkout_android',
6  'checkout_skia',
7]
8
9vars = {
10  # By default, we should check out everything needed to run on the main
11  # pdfium waterfalls. This var can be also be set to 'small', in order to skip
12  # things are not strictly needed to build pdfium for development purposes,
13  # by adding the following line to the .gclient file inside a solutions entry:
14  #      "custom_vars": { "checkout_configuration": "small" },
15  # Similarly, this var can be set to 'minimal' to also skip the Skia and V8
16  # checkouts for the smallest possible checkout, where some features will not
17  # work.
18  'checkout_configuration': 'default',
19
20  # By default, don't check out android. Will be overridden by gclient
21  # variables.
22  # TODO(crbug.com/875037): Remove this once the bug in gclient is fixed.
23  'checkout_android': False,
24
25  # Pull in Android native toolchain dependencies, so we can build ARC++
26  # support libraries.
27  'checkout_android_native_support': 'checkout_android',
28
29  'checkout_clang_coverage_tools': 'False',
30
31  'checkout_clang_tidy': 'False',
32
33  'checkout_clangd': 'False',
34
35  'checkout_instrumented_libraries': 'checkout_linux and checkout_configuration != "small" and checkout_configuration != "minimal"',
36
37  # Fetch the rust toolchain.
38  #
39  # Use a custom_vars section to enable it:
40  # "custom_vars": {
41  #   "checkout_rust": True,
42  # }
43  'checkout_rust': False,
44
45  'checkout_skia': 'checkout_configuration != "minimal"',
46
47  'checkout_testing_corpus': 'checkout_configuration != "small" and checkout_configuration != "minimal"',
48
49  'checkout_v8': 'checkout_configuration != "minimal"',
50
51  # condition to allowlist deps for non-git-source processing.
52  'non_git_source': 'True',
53
54  # Fetch configuration files required for the 'use_remoteexec' gn arg
55  'download_remoteexec_cfg': False,
56  # RBE instance to use for running remote builds
57  'rbe_instance': Str('projects/rbe-chrome-untrusted/instances/default_instance'),
58  # RBE project to download rewrapper config files for. Only needed if
59  # different from the project used in 'rbe_instance'
60  'rewrapper_cfg_project': Str(''),
61  # reclient CIPD package
62  'reclient_package': 'infra/rbe/client/',
63  # reclient CIPD package version
64  'reclient_version': 're_client_version:0.164.0.76480e37-gomaip',
65
66  'chromium_git': 'https://chromium.googlesource.com',
67  'pdfium_git': 'https://pdfium.googlesource.com',
68  'skia_git': 'https://skia.googlesource.com',
69
70  # Three lines of non-changing comments so that
71  # the commit queue can handle CLs rolling abseil
72  # and whatever else without interference from each other.
73  'abseil_revision': 'd2ea9f0eb1a31f0e5a0ab11837ed19333700ab4c',
74  # Three lines of non-changing comments so that
75  # the commit queue can handle CLs rolling android_toolchain
76  # and whatever else without interference from each other.
77  'android_toolchain_version': 'Idl-vYnWGnM8K3XJhM3h6zjYVDXlnljVz3FE00V9IM8C',
78  # Three lines of non-changing comments so that
79  # the commit queue can handle CLs rolling build
80  # and whatever else without interference from each other.
81  'build_revision': '9b11bd3a6a523134ac35bcc9d1f59d04cc6f5821',
82  # Three lines of non-changing comments so that
83  # the commit queue can handle CLs rolling buildtools
84  # and whatever else without interference from each other.
85  'buildtools_revision': '7f979120bfa80658a4e48c596e9de989477b3311',
86  # Three lines of non-changing comments so that
87  # the commit queue can handle CLs rolling catapult
88  # and whatever else without interference from each other.
89  'catapult_revision': '3a454956bcb5a255d7d5def27af1ed3641e9e0bb',
90  # Three lines of non-changing comments so that
91  # the commit queue can handle CLs rolling clang format
92  # and whatever else without interference from each other.
93  'clang_format_revision': '3c0acd2d4e73dd911309d9e970ba09d58bf23a62',
94  # Three lines of non-changing comments so that
95  # the commit queue can handle CLs rolling clang
96  # and whatever else without interference from each other.
97  'clang_revision': '7566fe852151a611ee6138cb60b5e878a213f0e4',
98  # Three lines of non-changing comments so that
99  # the commit queue can handle CLs rolling code_coverage
100  # and whatever else without interference from each other.
101  'code_coverage_revision': 'e4b516100a73b1c2bec669448df56e12c6b3a26f',
102  # Three lines of non-changing comments so that
103  # the commit queue can handle CLs rolling code_coverage
104  # and whatever else without interference from each other.
105  'cpu_features_revision': '936b9ab5515dead115606559502e3864958f7f6e',
106  # Three lines of non-changing comments so that
107  # the commit queue can handle CLs rolling depot_tools
108  # and whatever else without interference from each other.
109  'depot_tools_revision': '106363735045d4f81d0a67962d4513ec95dbf7ec',
110  # Three lines of non-changing comments so that
111  # the commit queue can handle CLs rolling fast_float
112  # and whatever else without interference from each other.
113  'fast_float_revision': '3e57d8dcfb0a04b5a8a26b486b54490a2e9b310f',
114  # Three lines of non-changing comments so that
115  # the commit queue can handle CLs rolling fp16
116  # and whatever else without interference from each other.
117  'fp16_revision': '581ac1c79dd9d9f6f4e8b2934e7a55c7becf0799',
118  # Three lines of non-changing comments so that
119  # the commit queue can handle CLs rolling freetype
120  # and whatever else without interference from each other.
121  'freetype_revision': '83af801b552111e37d9466a887e1783a0fb5f196',
122  # Three lines of non-changing comments so that
123  # the commit queue can handle CLs rolling GN CIPD package version
124  # and whatever else without interference from each other.
125  'gn_version': 'git_revision:95b0f8fe31a992a33c040bbe3867901335c12762',
126  # Three lines of non-changing comments so that
127  # the commit queue can handle CLs rolling goldctl CIPD package version
128  # and whatever else without interference from each other.
129  'goldctl_version': 'git_revision:51a5c58c7f8d425e8615beffccdcf64f0f491e8e',
130  # Three lines of non-changing comments so that
131  # the commit queue can handle CLs rolling gtest
132  # and whatever else without interference from each other.
133  'gtest_revision': '6dae7eb4a5c3a169f3e298392bff4680224aa94a',
134  # Three lines of non-changing comments so that
135  # the commit queue can handle CLs rolling icu
136  # and whatever else without interference from each other.
137  'icu_revision': '9408c6fd4a39e6fef0e1c4077602e1c83b15f3fb',
138  # Three lines of non-changing comments so that
139  # the commit queue can handle CLs rolling instrumented_lib
140  # and whatever else without interference from each other.
141  'instrumented_lib_revision': '69291a3c7c79edcb36b706cd886c0681f046af65',
142  # Three lines of non-changing comments so that
143  # the commit queue can handle CLs rolling jinja2
144  # and whatever else without interference from each other.
145  'jinja2_revision': '2f6f2ff5e4c1d727377f5e1b9e1903d871f41e74',
146  # Three lines of non-changing comments so that
147  # the commit queue can handle CLs rolling jpeg_turbo
148  # and whatever else without interference from each other.
149  'jpeg_turbo_revision': '927aabfcd26897abb9776ecf2a6c38ea5bb52ab6',
150  # Three lines of non-changing comments so that
151  # the commit queue can handle CLs rolling libc++
152  # and whatever else without interference from each other.
153  # If you change this, also update the libc++ revision in
154  # //buildtools/deps_revisions.gni.
155  'libcxx_revision': 'e2d898ca22f1d5863d8f6a7a0df849109483e05f',
156  # Three lines of non-changing comments so that
157  # the commit queue can handle CLs rolling libc++abi
158  # and whatever else without interference from each other.
159  'libcxxabi_revision': '3c26edd0c36a294c74800ac48c17b18d0045e3b6',
160  # Three lines of non-changing comments so that
161  # the commit queue can handle CLs rolling libpng
162  # and whatever else without interference from each other.
163  'libpng_revision': 'cf7c36ed084cd051100c4a1597a901c08377b835',
164  # Three lines of non-changing comments so that
165  # the commit queue can handle CLs rolling libunwind
166  # and whatever else without interference from each other.
167  'libunwind_revision': 'b7cdacaadbc4d121081ad6b146c7e94acec4c7ff',
168  # Three lines of non-changing comments so that
169  # the commit queue can handle CLs rolling markupsafe
170  # and whatever else without interference from each other.
171  'markupsafe_revision': '6638e9b0a79afc2ff7edd9e84b518fe7d5d5fea9',
172  # Three lines of non-changing comments so that
173  # the commit queue can handle CLs rolling nasm_source
174  # and whatever else without interference from each other.
175  'nasm_source_revision': 'f477acb1049f5e043904b87b825c5915084a9a29',
176  # Three lines of non-changing comments so that
177  # the commit queue can handle CLs rolling Ninja CIPD package version
178  # and whatever else without interference from each other.
179  'ninja_version': 'version:3@1.12.1.chromium.4',
180  # Three lines of non-changing comments so that
181  # the commit queue can handle CLs rolling partition_allocator
182  # and whatever else without interference from each other.
183  'partition_allocator_revision': 'eb4c8ad8053e37bc0ca11f19cad1405bc0912676',
184  # Three lines of non-changing comments so that
185  # the commit queue can handle CLs rolling pdfium_tests
186  # and whatever else without interference from each other.
187  'pdfium_tests_revision': '7e9430c92e07cf45bd151bd4158a7795d117ffeb',
188  # Three lines of non-changing comments so that
189  # the commit queue can handle CLs rolling resultdb
190  # and whatever else without interference from each other.
191  'resultdb_version': 'git_revision:ebc74d10fa0d64057daa6f128e89f3672eeeec95',
192  # Three lines of non-changing comments so that
193  # the commit queue can handle CLs rolling rust
194  # and whatever else without interference from each other.
195  'rust_revision': '0e0ef14876a32128574eaf80bc7fc1c7cde92006',
196  # Three lines of non-changing comments so that
197  # the commit queue can handle CLs rolling skia
198  # and whatever else without interference from each other.
199  'skia_revision': '6c89706638eeb6365c06e274d8aae97097fc867e',
200  # Three lines of non-changing comments so that
201  # the commit queue can handle CLs rolling test_fonts
202  # and whatever else without interference from each other.
203  'test_fonts_revision': '7f51783942943e965cd56facf786544ccfc07713',
204  # Three lines of non-changing comments so that
205  # the commit queue can handle CLs rolling testing_rust
206  # and whatever else without interference from each other.
207  'testing_rust_revision': '347b3c20a65d76c83757a9f9db5f09d316115907',
208  # Three lines of non-changing comments so that
209  # the commit queue can handle CLs rolling tools_memory
210  # and whatever else without interference from each other.
211  'tools_memory_revision': '8385f10496532b425c4036d7e938393f683e5be9',
212  # Three lines of non-changing comments so that
213  # the commit queue can handle CLs rolling tools_rust
214  # and whatever else without interference from each other.
215  'tools_rust_revision': 'a7d3d8af53052ee94aba128d223befe1e48adbef',
216  # Three lines of non-changing comments so that
217  # the commit queue can handle CLs rolling v8
218  # and whatever else without interference from each other.
219  'v8_revision': 'ac7f43cd4bad11b77aaa46d0d6b5ec5d06bf716c',
220  # Three lines of non-changing comments so that
221  # the commit queue can handle CLs rolling zlib
222  # and whatever else without interference from each other.
223  'zlib_revision': 'c7678ba8af4577e45023b35ae96b6b71efa0acf7',
224}
225
226# Only these hosts are allowed for dependencies in this DEPS file.
227# If you need to add a new host, and the new host is not in Chromium's DEPS
228# file's allowed_hosts list, contact Chrome infrastructure team.
229allowed_hosts = [
230  'chromium.googlesource.com',
231  'pdfium.googlesource.com',
232  'skia.googlesource.com',
233
234   # TODO(337061377): Move into a separate allowed gcs bucket list.
235  'chromium-browser-clang',
236]
237
238deps = {
239  'base/allocator/partition_allocator':
240    Var('chromium_git') +
241        '/chromium/src/base/allocator/partition_allocator.git@' +
242        Var('partition_allocator_revision'),
243
244  'build':
245    Var('chromium_git') + '/chromium/src/build.git@' + Var('build_revision'),
246
247  'buildtools':
248    Var('chromium_git') + '/chromium/src/buildtools.git@' +
249        Var('buildtools_revision'),
250
251  'buildtools/linux64': {
252    'packages': [
253      {
254        'package': 'gn/gn/linux-amd64',
255        'version': Var('gn_version'),
256      }
257    ],
258    'dep_type': 'cipd',
259    'condition': 'host_os == "linux"',
260  },
261
262  'buildtools/mac': {
263    'packages': [
264      {
265        'package': 'gn/gn/mac-${{arch}}',
266        'version': Var('gn_version'),
267      }
268    ],
269    'dep_type': 'cipd',
270    'condition': 'host_os == "mac"',
271  },
272
273  'buildtools/reclient': {
274    'packages': [
275      {
276        'package': Var('reclient_package') + '${{platform}}',
277        'version': Var('reclient_version'),
278      }
279    ],
280    'dep_type': 'cipd',
281  },
282
283  'buildtools/win': {
284    'packages': [
285      {
286        'package': 'gn/gn/windows-amd64',
287        'version': Var('gn_version'),
288      }
289    ],
290    'dep_type': 'cipd',
291    'condition': 'host_os == "win"',
292  },
293
294  'testing/corpus': {
295    'url': Var('pdfium_git') + '/pdfium_tests@' + Var('pdfium_tests_revision'),
296    'condition': 'checkout_testing_corpus',
297  },
298
299  'testing/scripts/rust': {
300    'url': Var('chromium_git') + '/chromium/src/testing/scripts/rust.git@' +
301        Var('testing_rust_revision'),
302    'condition': 'checkout_rust',
303  },
304
305  'third_party/abseil-cpp':
306    Var('chromium_git') + '/chromium/src/third_party/abseil-cpp.git@' +
307        Var('abseil_revision'),
308
309  'third_party/android_toolchain/ndk': {
310    'packages': [
311      {
312        'package': 'chromium/third_party/android_toolchain/android_toolchain',
313        'version': Var('android_toolchain_version'),
314      },
315    ],
316    'condition': 'checkout_android_native_support',
317    'dep_type': 'cipd',
318  },
319
320  'third_party/catapult': {
321    'url': Var('chromium_git') + '/catapult.git@' + Var('catapult_revision'),
322    'condition': 'checkout_android',
323  },
324
325  'third_party/clang-format/script':
326    Var('chromium_git') +
327        '/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@' +
328        Var('clang_format_revision'),
329
330  'third_party/cpu_features/src': {
331    'url': Var('chromium_git') +
332        '/external/github.com/google/cpu_features.git@' +
333        Var('cpu_features_revision'),
334    'condition': 'checkout_android',
335  },
336
337  'third_party/depot_tools':
338    Var('chromium_git') + '/chromium/tools/depot_tools.git@' +
339        Var('depot_tools_revision'),
340
341  'third_party/fast_float/src':
342    Var('chromium_git') + '/external/github.com/fastfloat/fast_float.git@' +
343        Var('fast_float_revision'),
344
345  'third_party/fp16/src':
346    Var('chromium_git') + '/external/github.com/Maratyszcza/FP16.git@' +
347        Var('fp16_revision'),
348
349  'third_party/freetype/src':
350    Var('chromium_git') + '/chromium/src/third_party/freetype2.git@' +
351        Var('freetype_revision'),
352
353  'third_party/googletest/src':
354    Var('chromium_git') + '/external/github.com/google/googletest.git@' +
355        Var('gtest_revision'),
356
357  'third_party/icu':
358    Var('chromium_git') + '/chromium/deps/icu.git@' + Var('icu_revision'),
359
360  'third_party/instrumented_libs':
361    Var('chromium_git') +
362        '/chromium/third_party/instrumented_libraries.git@' +
363        Var('instrumented_lib_revision'),
364
365  'third_party/jinja2':
366    Var('chromium_git') + '/chromium/src/third_party/jinja2.git@' +
367        Var('jinja2_revision'),
368
369  'third_party/libc++/src':
370    Var('chromium_git') +
371        '/external/github.com/llvm/llvm-project/libcxx.git@' +
372        Var('libcxx_revision'),
373
374  'third_party/libc++abi/src':
375    Var('chromium_git') +
376        '/external/github.com/llvm/llvm-project/libcxxabi.git@' +
377        Var('libcxxabi_revision'),
378
379  'third_party/libunwind/src':
380    Var('chromium_git') +
381        '/external/github.com/llvm/llvm-project/libunwind.git@' +
382        Var('libunwind_revision'),
383
384  'third_party/libjpeg_turbo':
385    Var('chromium_git') + '/chromium/deps/libjpeg_turbo.git@' +
386        Var('jpeg_turbo_revision'),
387
388  'third_party/libpng':
389    Var('chromium_git') + '/chromium/src/third_party/libpng.git@' +
390        Var('libpng_revision'),
391
392  'third_party/llvm-build/Release+Asserts': {
393    'dep_type': 'gcs',
394    'bucket': 'chromium-browser-clang',
395    'objects': [
396      {
397        'object_name': 'Linux_x64/clang-llvmorg-20-init-3847-g69c43468-28.tar.xz',
398        'sha256sum': '6a30f7bc7c5f0eac02a40a4ec9a1ab906ddff2adacf2c9ff065916047c79f0fb',
399        'size_bytes': 52892060,
400        'generation': 1726118358890940,
401        'condition': 'host_os == "linux" and non_git_source',
402      },
403      {
404        'object_name': 'Mac/clang-llvmorg-20-init-3847-g69c43468-28.tar.xz',
405        'sha256sum': 'cabfc7ca792ef13d3e665c3a7811f9a76cc39094059c11606cea1724f0394bbc',
406        'size_bytes': 47551968,
407        'generation': 1726118361528729,
408        'condition': 'host_os == "mac" and host_cpu == "x64"',
409      },
410      {
411        'object_name': 'Mac/clang-mac-runtime-library-llvmorg-20-init-3847-g69c43468-28.tar.xz',
412        'sha256sum': '50a618246d7fd23645640fc50ccb0d4684c1895def378b90963a289f920ea88a',
413        'size_bytes': 879508,
414        'generation': 1726118377526206,
415        'condition': 'checkout_mac and not host_os == "mac"',
416      },
417      {
418        'object_name': 'Mac_arm64/clang-llvmorg-20-init-3847-g69c43468-28.tar.xz',
419        'sha256sum': 'e87eb4caa95c98ef36c40aec5b8cd07a6c4fb8959d3c7e7d452f6ed860c8c2bf',
420        'size_bytes': 41352592,
421        'generation': 1726118378868177,
422        'condition': 'host_os == "mac" and host_cpu == "arm64"',
423      },
424      {
425        'object_name': 'Win/clang-llvmorg-20-init-3847-g69c43468-28.tar.xz',
426        'sha256sum': 'cb416511e6379b7fd3f362f637ebb8a28957d0d2ff2dc6e2d9f4484a381f2885',
427        'size_bytes': 44655000,
428        'generation': 1726118399720986,
429        'condition': 'host_os == "win"',
430      },
431      {
432        'object_name': 'Win/clang-win-runtime-library-llvmorg-20-init-3847-g69c43468-28.tar.xz',
433        'sha256sum': '81d66840357d83ca1a2c85ebca5259a7a86d9e99c77b37727fbaee87ccacf675',
434        'size_bytes': 2897452,
435        'generation': 1726118416326356,
436        'condition': 'checkout_win and not host_os == "win"',
437      },
438    ]
439  },
440
441  'third_party/markupsafe':
442    Var('chromium_git') + '/chromium/src/third_party/markupsafe.git@' +
443        Var('markupsafe_revision'),
444
445  'third_party/nasm':
446    Var('chromium_git') + '/chromium/deps/nasm.git@' +
447        Var('nasm_source_revision'),
448
449  'third_party/ninja': {
450    'packages': [
451      {
452        # https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja
453        'package': 'infra/3pp/tools/ninja/${{platform}}',
454        'version': Var('ninja_version'),
455      }
456    ],
457    'dep_type': 'cipd',
458  },
459
460  'third_party/rust': {
461    'url': Var('chromium_git') + '/chromium/src/third_party/rust@' +
462        Var('rust_revision'),
463    'condition': 'checkout_rust',
464  },
465
466  'third_party/rust-toolchain': {
467    'dep_type': 'gcs',
468    'bucket': 'chromium-browser-clang',
469    'objects': [
470      {
471        'object_name': 'Linux_x64/rust-toolchain-009e73825af0e59ad4fc603562e038b3dbd6593a-2-llvmorg-20-init-3847-g69c43468.tar.xz',
472        'sha256sum': '043bc520520424fad9fdfc87102e3af7c8f1ca4da3f7885e18f54fd29fc783e4',
473        'size_bytes': 115068636,
474        'generation': 1725552307196828,
475        'condition': 'host_os == "linux" and non_git_source',
476      },
477      {
478        'object_name': 'Mac/rust-toolchain-009e73825af0e59ad4fc603562e038b3dbd6593a-2-llvmorg-20-init-3847-g69c43468.tar.xz',
479        'sha256sum': '100befb02da0940fdede41a0ad0e28ded1ce4b6794b5e488bccc91ba1d27348a',
480        'size_bytes': 108415524,
481        'generation': 1725552308530261,
482        'condition': 'host_os == "mac" and host_cpu == "x64"',
483      },
484      {
485        'object_name': 'Mac_arm64/rust-toolchain-009e73825af0e59ad4fc603562e038b3dbd6593a-2-llvmorg-20-init-3847-g69c43468.tar.xz',
486        'sha256sum': '6f3ba8fe5a9590b476c087b412bd60e7e46ec59bc37aac76d9f7894c6bc34a75',
487        'size_bytes': 97820200,
488        'generation': 1725552309875662,
489        'condition': 'host_os == "mac" and host_cpu == "arm64"',
490      },
491      {
492        'object_name': 'Win/rust-toolchain-009e73825af0e59ad4fc603562e038b3dbd6593a-2-llvmorg-20-init-3847-g69c43468.tar.xz',
493        'sha256sum': '1d04274c7a96aa0148a9bb5b29fa5b33c24b97971e33634bed62ce504b1cb346',
494        'size_bytes': 172453420,
495        'generation': 1725552311180142,
496        'condition': 'host_os == "win"',
497      },
498    ],
499  },
500
501  'third_party/skia': {
502    'url': Var('skia_git') + '/skia.git@' + Var('skia_revision'),
503    'condition': 'checkout_skia',
504  },
505
506  'third_party/test_fonts':
507    Var('chromium_git') + '/chromium/src/third_party/test_fonts.git@' +
508        Var('test_fonts_revision'),
509
510  'third_party/zlib':
511    Var('chromium_git') + '/chromium/src/third_party/zlib.git@' +
512        Var('zlib_revision'),
513
514  'tools/clang':
515    Var('chromium_git') + '/chromium/src/tools/clang@' + Var('clang_revision'),
516
517  'tools/code_coverage':
518    Var('chromium_git') + '/chromium/src/tools/code_coverage.git@' +
519        Var('code_coverage_revision'),
520
521  'tools/memory':
522    Var('chromium_git') + '/chromium/src/tools/memory@' +
523        Var('tools_memory_revision'),
524
525  'tools/resultdb': {
526    'packages': [
527      {
528        'package': 'infra/tools/result_adapter/${{platform}}',
529        'version': Var('resultdb_version'),
530      },
531    ],
532    'dep_type': 'cipd',
533  },
534
535  'tools/rust': {
536    'url': Var('chromium_git') + '/chromium/src/tools/rust@' +
537        Var('tools_rust_revision'),
538    'condition': 'checkout_rust',
539  },
540
541  'tools/skia_goldctl/linux': {
542    'packages': [
543      {
544        'package': 'skia/tools/goldctl/linux-amd64',
545        'version': Var('goldctl_version'),
546      }
547    ],
548    'dep_type': 'cipd',
549    'condition': 'checkout_linux',
550  },
551
552  'tools/skia_goldctl/mac_amd64': {
553    'packages': [
554      {
555        'package': 'skia/tools/goldctl/mac-amd64',
556        'version': Var('goldctl_version'),
557      }
558    ],
559    'dep_type': 'cipd',
560    'condition': 'checkout_mac',
561  },
562
563  'tools/skia_goldctl/mac_arm64': {
564    'packages': [
565      {
566        'package': 'skia/tools/goldctl/mac-arm64',
567        'version': Var('goldctl_version'),
568      }
569    ],
570    'dep_type': 'cipd',
571    'condition': 'checkout_mac',
572  },
573
574  'tools/skia_goldctl/win': {
575    'packages': [
576      {
577        'package': 'skia/tools/goldctl/windows-amd64',
578        'version': Var('goldctl_version'),
579      }
580    ],
581    'dep_type': 'cipd',
582    'condition': 'checkout_win',
583  },
584
585  'v8': {
586    'url': Var('chromium_git') + '/v8/v8.git@' + Var('v8_revision'),
587    'condition': 'checkout_v8',
588  },
589
590}
591
592recursedeps = [
593  'build',
594  'buildtools',
595  'third_party/instrumented_libs',
596]
597
598include_rules = [
599  # Basic stuff that everyone can use.
600  # Note: public is not here because core cannot depend on public.
601  '+build/build_config.h',
602  '+constants',
603  '+testing',
604
605  # Abseil is allowed by default, but some features are banned. See Chromium's
606  # //styleguide/c++/c++-features.md.
607  '+third_party/abseil-cpp',
608  '-third_party/abseil-cpp/absl/algorithm/container.h',
609  '-third_party/abseil-cpp/absl/base/no_destructor.h',
610  '-third_party/abseil-cpp/absl/base/nullability.h',
611  '-third_party/abseil-cpp/absl/container',
612  '+third_party/abseil-cpp/absl/container/inlined_vector.h',
613  '-third_party/abseil-cpp/absl/crc',
614  '-third_party/abseil-cpp/absl/flags',
615  '-third_party/abseil-cpp/absl/functional/any_invocable.h',
616  '-third_party/abseil-cpp/absl/functional/bind_front.h',
617  '-third_party/abseil-cpp/absl/functional/function_ref.h',
618  '-third_party/abseil-cpp/absl/functional/overload.h',
619  '-third_party/abseil-cpp/absl/hash',
620  '-third_party/abseil-cpp/absl/log',
621  '-third_party/abseil-cpp/absl/random',
622  '-third_party/abseil-cpp/absl/status/statusor.h',
623  '-third_party/abseil-cpp/absl/strings',
624  '+third_party/abseil-cpp/absl/strings/ascii.h',
625  '+third_party/abseil-cpp/absl/strings/cord.h',
626  '-third_party/abseil-cpp/absl/synchronization',
627  '-third_party/abseil-cpp/absl/time',
628  '-third_party/abseil-cpp/absl/types/any.h',
629  '-third_party/abseil-cpp/absl/types/optional.h',
630  '-third_party/abseil-cpp/absl/types/span.h',
631]
632
633specific_include_rules = {
634  # Allow embedder tests to use public APIs.
635  '(.*embeddertest\.cpp)': [
636    '+public',
637  ]
638}
639
640hooks = [
641  {
642    # Ensure that the DEPS'd "depot_tools" has its self-update capability
643    # disabled.
644    'name': 'disable_depot_tools_selfupdate',
645    'pattern': '.',
646    'action': [ 'python3',
647                'third_party/depot_tools/update_depot_tools_toggle.py',
648                '--disable',
649    ],
650  },
651  {
652    # Case-insensitivity for the Win SDK. Must run before win_toolchain below.
653    'name': 'ciopfs_linux',
654    'pattern': '.',
655    'condition': 'checkout_win and host_os == "linux"',
656    'action': [ 'python3',
657                'third_party/depot_tools/download_from_google_storage.py',
658                '--no_resume',
659                '--no_auth',
660                '--bucket', 'chromium-browser-clang/ciopfs',
661                '-s', 'build/ciopfs.sha1',
662    ]
663  },
664  {
665    # Update the Windows toolchain if necessary.  Must run before 'clang' below.
666    'name': 'win_toolchain',
667    'pattern': '.',
668    'condition': 'checkout_win',
669    'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'],
670  },
671  {
672    # Update the Mac toolchain if necessary.
673    'name': 'mac_toolchain',
674    'pattern': '.',
675    'condition': 'checkout_mac',
676    'action': ['python3', 'build/mac_toolchain.py'],
677  },
678  # Pull dsymutil binaries using checked-in hashes.
679  {
680    'name': 'dsymutil_mac_arm64',
681    'pattern': '.',
682    'condition': 'host_os == "mac" and host_cpu == "arm64"',
683    'action': [ 'python3',
684                'third_party/depot_tools/download_from_google_storage.py',
685                '--no_resume',
686                '--no_auth',
687                '--bucket', 'chromium-browser-clang',
688                '-s', 'tools/clang/dsymutil/bin/dsymutil.arm64.sha1',
689                '-o', 'tools/clang/dsymutil/bin/dsymutil',
690    ],
691  },
692  {
693    'name': 'dsymutil_mac_x64',
694    'pattern': '.',
695    'condition': 'host_os == "mac" and host_cpu == "x64"',
696    'action': [ 'python3',
697                'third_party/depot_tools/download_from_google_storage.py',
698                '--no_resume',
699                '--no_auth',
700                '--bucket', 'chromium-browser-clang',
701                '-s', 'tools/clang/dsymutil/bin/dsymutil.x64.sha1',
702                '-o', 'tools/clang/dsymutil/bin/dsymutil',
703    ],
704  },
705  {
706    'name': 'test_fonts',
707    'pattern': '.',
708    'action': [ 'python3',
709                'third_party/depot_tools/download_from_google_storage.py',
710                '--no_resume',
711                '--extract',
712                '--no_auth',
713                '--bucket', 'chromium-fonts',
714                '-s', 'third_party/test_fonts/test_fonts.tar.gz.sha1',
715    ],
716  },
717  {
718    # Update LASTCHANGE.
719    'name': 'lastchange',
720    'pattern': '.',
721    'action': ['python3', 'build/util/lastchange.py',
722               '-o', 'build/util/LASTCHANGE'],
723  },
724  # Configure remote exec cfg files
725  {
726    # Use luci_auth if on windows and using chrome-untrusted project
727    'name': 'download_and_configure_reclient_cfgs',
728    'pattern': '.',
729    'condition': 'download_remoteexec_cfg and host_os == "win"',
730    'action': ['python3',
731               'buildtools/reclient_cfgs/configure_reclient_cfgs.py',
732               '--rbe_instance',
733               Var('rbe_instance'),
734               '--reproxy_cfg_template',
735               'reproxy.cfg.template',
736               '--rewrapper_cfg_project',
737               Var('rewrapper_cfg_project'),
738               '--use_luci_auth_credshelper',
739               '--quiet',
740               ],
741  },  {
742    'name': 'download_and_configure_reclient_cfgs',
743    'pattern': '.',
744    'condition': 'download_remoteexec_cfg and not host_os == "win"',
745    'action': ['python3',
746               'buildtools/reclient_cfgs/configure_reclient_cfgs.py',
747               '--rbe_instance',
748               Var('rbe_instance'),
749               '--reproxy_cfg_template',
750               'reproxy.cfg.template',
751               '--rewrapper_cfg_project',
752               Var('rewrapper_cfg_project'),
753               '--quiet',
754               ],
755  },
756  {
757    'name': 'configure_reclient_cfgs',
758    'pattern': '.',
759    'condition': 'not download_remoteexec_cfg',
760    'action': ['python3',
761               'buildtools/reclient_cfgs/configure_reclient_cfgs.py',
762               '--rbe_instance',
763               Var('rbe_instance'),
764               '--reproxy_cfg_template',
765               'reproxy.cfg.template',
766               '--rewrapper_cfg_project',
767               Var('rewrapper_cfg_project'),
768               '--skip_remoteexec_cfg_fetch',
769               '--quiet',
770               ],
771  },
772]
773