xref: /aosp_15_r20/external/pdfium/DEPS (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1*3ac0a46fSAndroid Build Coastguard Workeruse_relative_paths = True
2*3ac0a46fSAndroid Build Coastguard Worker
3*3ac0a46fSAndroid Build Coastguard Workergclient_gn_args_file = 'build/config/gclient_args.gni'
4*3ac0a46fSAndroid Build Coastguard Workergclient_gn_args = [
5*3ac0a46fSAndroid Build Coastguard Worker  'checkout_skia',
6*3ac0a46fSAndroid Build Coastguard Worker]
7*3ac0a46fSAndroid Build Coastguard Worker
8*3ac0a46fSAndroid Build Coastguard Workervars = {
9*3ac0a46fSAndroid Build Coastguard Worker  # By default, we should check out everything needed to run on the main
10*3ac0a46fSAndroid Build Coastguard Worker  # pdfium waterfalls. This var can be also be set to 'small', in order to skip
11*3ac0a46fSAndroid Build Coastguard Worker  # things are not strictly needed to build pdfium for development purposes,
12*3ac0a46fSAndroid Build Coastguard Worker  # by adding the following line to the .gclient file inside a solutions entry:
13*3ac0a46fSAndroid Build Coastguard Worker  #      "custom_vars": { "checkout_configuration": "small" },
14*3ac0a46fSAndroid Build Coastguard Worker  # Similarly, this var can be set to 'minimal' to also skip the Skia and V8
15*3ac0a46fSAndroid Build Coastguard Worker  # checkouts for the smallest possible checkout, where some features will not
16*3ac0a46fSAndroid Build Coastguard Worker  # work.
17*3ac0a46fSAndroid Build Coastguard Worker  'checkout_configuration': 'default',
18*3ac0a46fSAndroid Build Coastguard Worker
19*3ac0a46fSAndroid Build Coastguard Worker  'checkout_instrumented_libraries': 'checkout_linux and checkout_configuration != "small" and checkout_configuration != "minimal"',
20*3ac0a46fSAndroid Build Coastguard Worker
21*3ac0a46fSAndroid Build Coastguard Worker  'checkout_skia': 'checkout_configuration != "minimal"',
22*3ac0a46fSAndroid Build Coastguard Worker
23*3ac0a46fSAndroid Build Coastguard Worker  'checkout_testing_corpus': 'checkout_configuration != "small" and checkout_configuration != "minimal"',
24*3ac0a46fSAndroid Build Coastguard Worker
25*3ac0a46fSAndroid Build Coastguard Worker  'checkout_v8': 'checkout_configuration != "minimal"',
26*3ac0a46fSAndroid Build Coastguard Worker
27*3ac0a46fSAndroid Build Coastguard Worker  # By default, download the fuchsia sdk from the public sdk directory.
28*3ac0a46fSAndroid Build Coastguard Worker  'fuchsia_sdk_cipd_prefix': 'fuchsia/sdk/core/',
29*3ac0a46fSAndroid Build Coastguard Worker
30*3ac0a46fSAndroid Build Coastguard Worker  # Fetch configuration files required for the 'use_remoteexec' gn arg
31*3ac0a46fSAndroid Build Coastguard Worker  'download_remoteexec_cfg': False,
32*3ac0a46fSAndroid Build Coastguard Worker  # RBE instance to use for running remote builds
33*3ac0a46fSAndroid Build Coastguard Worker  'rbe_instance': Str('projects/rbe-chrome-untrusted/instances/default_instance'),
34*3ac0a46fSAndroid Build Coastguard Worker  # RBE project to download rewrapper config files for. Only needed if
35*3ac0a46fSAndroid Build Coastguard Worker  # different from the project used in 'rbe_instance'
36*3ac0a46fSAndroid Build Coastguard Worker  'rewrapper_cfg_project': Str(''),
37*3ac0a46fSAndroid Build Coastguard Worker  # reclient CIPD package
38*3ac0a46fSAndroid Build Coastguard Worker  'reclient_package': 'infra/rbe/client/',
39*3ac0a46fSAndroid Build Coastguard Worker  # reclient CIPD package version
40*3ac0a46fSAndroid Build Coastguard Worker  'reclient_version': 're_client_version:0.109.0.927890d-gomaip',
41*3ac0a46fSAndroid Build Coastguard Worker
42*3ac0a46fSAndroid Build Coastguard Worker  'chromium_git': 'https://chromium.googlesource.com',
43*3ac0a46fSAndroid Build Coastguard Worker  'pdfium_git': 'https://pdfium.googlesource.com',
44*3ac0a46fSAndroid Build Coastguard Worker  'skia_git': 'https://skia.googlesource.com',
45*3ac0a46fSAndroid Build Coastguard Worker
46*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
47*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling abseil
48*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
49*3ac0a46fSAndroid Build Coastguard Worker  'abseil_revision': '2288062eef9624e8b48070ed2447139d3fd4a1c5',
50*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
51*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling android_toolchain
52*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
53*3ac0a46fSAndroid Build Coastguard Worker  'android_toolchain_version': 'R_8suM8m0oHbZ1awdxGXvKEFpAOETscbfZxkkMthyk8C',
54*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
55*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling build
56*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
57*3ac0a46fSAndroid Build Coastguard Worker  'build_revision': '336e34d44c88d1160d150bd6c8d93e203a424b42',
58*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
59*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling buildtools
60*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
61*3ac0a46fSAndroid Build Coastguard Worker  'buildtools_revision': '16be42a9ff1f7e4a3e53b93b3adc181fa7ff9161',
62*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
63*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling catapult
64*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
65*3ac0a46fSAndroid Build Coastguard Worker  'catapult_revision': '220cbb13b5a7485be09813e7da4123088419a76a',
66*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
67*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling clang format
68*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
69*3ac0a46fSAndroid Build Coastguard Worker  'clang_format_revision': 'e5337933f2951cacd3aeacd238ce4578163ca0b9',
70*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
71*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling clang
72*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
73*3ac0a46fSAndroid Build Coastguard Worker  'clang_revision': '236e66ffd61f3bd710d20d20a67e71a1f1f55cba',
74*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
75*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling code_coverage
76*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
77*3ac0a46fSAndroid Build Coastguard Worker  'code_coverage_revision': 'bce4cdc2309e9a7f1e0ff1d9310e0d0302aa67e0',
78*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
79*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling code_coverage
80*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
81*3ac0a46fSAndroid Build Coastguard Worker  'cpu_features_revision': '936b9ab5515dead115606559502e3864958f7f6e',
82*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
83*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling depot_tools
84*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
85*3ac0a46fSAndroid Build Coastguard Worker  'depot_tools_revision': '59e10115417ac77f47e42c3f13a4f6b58ebe70c2',
86*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
87*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling freetype
88*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
89*3ac0a46fSAndroid Build Coastguard Worker  'freetype_revision': 'b2584c738f1a92e6369890cff0504cc044315b38',
90*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
91*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling freetype
92*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
93*3ac0a46fSAndroid Build Coastguard Worker  'fuchsia_gn_sdk_revision': '0d6902558d92fe3d49ba9a8f638ddea829be595b',
94*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
95*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling Fuchsia sdk
96*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
97*3ac0a46fSAndroid Build Coastguard Worker  'fuchsia_version': 'version:14.20230727.2.1',
98*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
99*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling GN CIPD package version
100*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
101*3ac0a46fSAndroid Build Coastguard Worker  'gn_version': 'git_revision:3fccef9033b950e8935e8debeba9fbd71617bc74',
102*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
103*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling gtest
104*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
105*3ac0a46fSAndroid Build Coastguard Worker  'gtest_revision': 'af29db7ec28d6df1c7f0f745186884091e602e07',
106*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
107*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling icu
108*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
109*3ac0a46fSAndroid Build Coastguard Worker  'icu_revision': 'de4ce0071eb47ed54cbda54869001210cf3a8ae5',
110*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
111*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling instrumented_lib
112*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
113*3ac0a46fSAndroid Build Coastguard Worker  'instrumented_lib_revision': '032e9c850ab975f7c088a625dcf2256917dbdfa6',
114*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
115*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling jinja2
116*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
117*3ac0a46fSAndroid Build Coastguard Worker  'jinja2_revision': '515dd10de9bf63040045902a4a310d2ba25213a0',
118*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
119*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling jpeg_turbo
120*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
121*3ac0a46fSAndroid Build Coastguard Worker  'jpeg_turbo_revision': '30bdb85e302ecfc52593636b2f44af438e05e784',
122*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
123*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling libc++
124*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
125*3ac0a46fSAndroid Build Coastguard Worker  # If you change this, also update the libc++ revision in
126*3ac0a46fSAndroid Build Coastguard Worker  # //buildtools/deps_revisions.gni.
127*3ac0a46fSAndroid Build Coastguard Worker  'libcxx_revision': '84fb809dd6dae36d556dc0bb702c6cc2ce9d4b80',
128*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
129*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling libc++abi
130*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
131*3ac0a46fSAndroid Build Coastguard Worker  'libcxxabi_revision': 'd4760c0af99ccc9bce077960d5ddde4d66146c05',
132*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
133*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling libpng
134*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
135*3ac0a46fSAndroid Build Coastguard Worker  'libpng_revision': '805df541c44099bb20d425ac47c666e29b1f7a80',
136*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
137*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling libunwind
138*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
139*3ac0a46fSAndroid Build Coastguard Worker  'libunwind_revision': 'e5a9c50e5e0b620a8886df1c4677b12404620fb6',
140*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
141*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling markupsafe
142*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
143*3ac0a46fSAndroid Build Coastguard Worker  'markupsafe_revision': '006709ba3ed87660a17bd4548c45663628f5ed85',
144*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
145*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling nasm_source
146*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
147*3ac0a46fSAndroid Build Coastguard Worker  'nasm_source_revision': '7fc833e889d1afda72c06220e5bed8fb43b2e5ce',
148*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
149*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling Ninja CIPD package version
150*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
151*3ac0a46fSAndroid Build Coastguard Worker  'ninja_version': 'version:[email protected]',
152*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
153*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling partition_allocator
154*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
155*3ac0a46fSAndroid Build Coastguard Worker  'partition_allocator_revision': 'f91d5ba232cbe61b9740b4101a5b5bea3cd631ed',
156*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
157*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling pdfium_tests
158*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
159*3ac0a46fSAndroid Build Coastguard Worker  'pdfium_tests_revision': 'dc2cd9afdd1bad8666072416c340ad1c6a01e388',
160*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
161*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling resultdb
162*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
163*3ac0a46fSAndroid Build Coastguard Worker  'resultdb_version': 'git_revision:ebc74d10fa0d64057daa6f128e89f3672eeeec95',
164*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
165*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling skia
166*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
167*3ac0a46fSAndroid Build Coastguard Worker  'skia_revision': '6119b059f50a1858f882068cc6738571240b4f5d',
168*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
169*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling test_fonts
170*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
171*3ac0a46fSAndroid Build Coastguard Worker  'test_fonts_revision': '7f51783942943e965cd56facf786544ccfc07713',
172*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
173*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling tools_memory
174*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
175*3ac0a46fSAndroid Build Coastguard Worker  'tools_memory_revision': '2a4c4ba1f4a94231b01280a0c63d3fe4404cc9c2',
176*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
177*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling trace_event
178*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
179*3ac0a46fSAndroid Build Coastguard Worker  'trace_event_revision': '147f65333c38ddd1ebf554e89965c243c8ce50b3',
180*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
181*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling v8
182*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
183*3ac0a46fSAndroid Build Coastguard Worker  'v8_revision': '41ff48bd620584b425618e7f8b51617c46c4d67f',
184*3ac0a46fSAndroid Build Coastguard Worker  # Three lines of non-changing comments so that
185*3ac0a46fSAndroid Build Coastguard Worker  # the commit queue can handle CLs rolling zlib
186*3ac0a46fSAndroid Build Coastguard Worker  # and whatever else without interference from each other.
187*3ac0a46fSAndroid Build Coastguard Worker  'zlib_revision': '526382e41c9c5275dc329db4328b54e4f344a204',
188*3ac0a46fSAndroid Build Coastguard Worker}
189*3ac0a46fSAndroid Build Coastguard Worker
190*3ac0a46fSAndroid Build Coastguard Worker# Only these hosts are allowed for dependencies in this DEPS file.
191*3ac0a46fSAndroid Build Coastguard Worker# If you need to add a new host, and the new host is not in Chromium's DEPS
192*3ac0a46fSAndroid Build Coastguard Worker# file's allowed_hosts list, contact Chrome infrastructure team.
193*3ac0a46fSAndroid Build Coastguard Workerallowed_hosts = [
194*3ac0a46fSAndroid Build Coastguard Worker  'chromium.googlesource.com',
195*3ac0a46fSAndroid Build Coastguard Worker  'pdfium.googlesource.com',
196*3ac0a46fSAndroid Build Coastguard Worker  'skia.googlesource.com',
197*3ac0a46fSAndroid Build Coastguard Worker]
198*3ac0a46fSAndroid Build Coastguard Worker
199*3ac0a46fSAndroid Build Coastguard Workerdeps = {
200*3ac0a46fSAndroid Build Coastguard Worker  'base/allocator/partition_allocator':
201*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') +
202*3ac0a46fSAndroid Build Coastguard Worker        '/chromium/src/base/allocator/partition_allocator.git@' +
203*3ac0a46fSAndroid Build Coastguard Worker        Var('partition_allocator_revision'),
204*3ac0a46fSAndroid Build Coastguard Worker
205*3ac0a46fSAndroid Build Coastguard Worker  'base/trace_event/common':
206*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/src/base/trace_event/common.git@' +
207*3ac0a46fSAndroid Build Coastguard Worker        Var('trace_event_revision'),
208*3ac0a46fSAndroid Build Coastguard Worker
209*3ac0a46fSAndroid Build Coastguard Worker  'build':
210*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/src/build.git@' + Var('build_revision'),
211*3ac0a46fSAndroid Build Coastguard Worker
212*3ac0a46fSAndroid Build Coastguard Worker  'buildtools':
213*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/src/buildtools.git@' +
214*3ac0a46fSAndroid Build Coastguard Worker        Var('buildtools_revision'),
215*3ac0a46fSAndroid Build Coastguard Worker
216*3ac0a46fSAndroid Build Coastguard Worker  'buildtools/clang_format/script':
217*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') +
218*3ac0a46fSAndroid Build Coastguard Worker        '/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@' +
219*3ac0a46fSAndroid Build Coastguard Worker        Var('clang_format_revision'),
220*3ac0a46fSAndroid Build Coastguard Worker
221*3ac0a46fSAndroid Build Coastguard Worker  'buildtools/linux64': {
222*3ac0a46fSAndroid Build Coastguard Worker    'packages': [
223*3ac0a46fSAndroid Build Coastguard Worker      {
224*3ac0a46fSAndroid Build Coastguard Worker        'package': 'gn/gn/linux-amd64',
225*3ac0a46fSAndroid Build Coastguard Worker        'version': Var('gn_version'),
226*3ac0a46fSAndroid Build Coastguard Worker      }
227*3ac0a46fSAndroid Build Coastguard Worker    ],
228*3ac0a46fSAndroid Build Coastguard Worker    'dep_type': 'cipd',
229*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'host_os == "linux"',
230*3ac0a46fSAndroid Build Coastguard Worker  },
231*3ac0a46fSAndroid Build Coastguard Worker
232*3ac0a46fSAndroid Build Coastguard Worker  'buildtools/mac': {
233*3ac0a46fSAndroid Build Coastguard Worker    'packages': [
234*3ac0a46fSAndroid Build Coastguard Worker      {
235*3ac0a46fSAndroid Build Coastguard Worker        'package': 'gn/gn/mac-${{arch}}',
236*3ac0a46fSAndroid Build Coastguard Worker        'version': Var('gn_version'),
237*3ac0a46fSAndroid Build Coastguard Worker      }
238*3ac0a46fSAndroid Build Coastguard Worker    ],
239*3ac0a46fSAndroid Build Coastguard Worker    'dep_type': 'cipd',
240*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'host_os == "mac"',
241*3ac0a46fSAndroid Build Coastguard Worker  },
242*3ac0a46fSAndroid Build Coastguard Worker
243*3ac0a46fSAndroid Build Coastguard Worker  'buildtools/reclient': {
244*3ac0a46fSAndroid Build Coastguard Worker    'packages': [
245*3ac0a46fSAndroid Build Coastguard Worker      {
246*3ac0a46fSAndroid Build Coastguard Worker        'package': Var('reclient_package') + '${{platform}}',
247*3ac0a46fSAndroid Build Coastguard Worker        'version': Var('reclient_version'),
248*3ac0a46fSAndroid Build Coastguard Worker      }
249*3ac0a46fSAndroid Build Coastguard Worker    ],
250*3ac0a46fSAndroid Build Coastguard Worker    'dep_type': 'cipd',
251*3ac0a46fSAndroid Build Coastguard Worker  },
252*3ac0a46fSAndroid Build Coastguard Worker
253*3ac0a46fSAndroid Build Coastguard Worker  # TODO(chromium:1458042): Remove these paths, when chromium builds files
254*3ac0a46fSAndroid Build Coastguard Worker  # have moved to third_party/lib*/src paths.
255*3ac0a46fSAndroid Build Coastguard Worker  'buildtools/third_party/libc++/trunk':
256*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') +
257*3ac0a46fSAndroid Build Coastguard Worker        '/external/github.com/llvm/llvm-project/libcxx.git@' +
258*3ac0a46fSAndroid Build Coastguard Worker        Var('libcxx_revision'),
259*3ac0a46fSAndroid Build Coastguard Worker
260*3ac0a46fSAndroid Build Coastguard Worker  'buildtools/third_party/libc++abi/trunk':
261*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') +
262*3ac0a46fSAndroid Build Coastguard Worker        '/external/github.com/llvm/llvm-project/libcxxabi.git@' +
263*3ac0a46fSAndroid Build Coastguard Worker        Var('libcxxabi_revision'),
264*3ac0a46fSAndroid Build Coastguard Worker
265*3ac0a46fSAndroid Build Coastguard Worker  'buildtools/third_party/libunwind/trunk':
266*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') +
267*3ac0a46fSAndroid Build Coastguard Worker        '/external/github.com/llvm/llvm-project/libunwind.git@' +
268*3ac0a46fSAndroid Build Coastguard Worker        Var('libunwind_revision'),
269*3ac0a46fSAndroid Build Coastguard Worker
270*3ac0a46fSAndroid Build Coastguard Worker  'buildtools/win': {
271*3ac0a46fSAndroid Build Coastguard Worker    'packages': [
272*3ac0a46fSAndroid Build Coastguard Worker      {
273*3ac0a46fSAndroid Build Coastguard Worker        'package': 'gn/gn/windows-amd64',
274*3ac0a46fSAndroid Build Coastguard Worker        'version': Var('gn_version'),
275*3ac0a46fSAndroid Build Coastguard Worker      }
276*3ac0a46fSAndroid Build Coastguard Worker    ],
277*3ac0a46fSAndroid Build Coastguard Worker    'dep_type': 'cipd',
278*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'host_os == "win"',
279*3ac0a46fSAndroid Build Coastguard Worker  },
280*3ac0a46fSAndroid Build Coastguard Worker
281*3ac0a46fSAndroid Build Coastguard Worker  'testing/corpus': {
282*3ac0a46fSAndroid Build Coastguard Worker    'url': Var('pdfium_git') + '/pdfium_tests@' + Var('pdfium_tests_revision'),
283*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_testing_corpus',
284*3ac0a46fSAndroid Build Coastguard Worker  },
285*3ac0a46fSAndroid Build Coastguard Worker
286*3ac0a46fSAndroid Build Coastguard Worker  'third_party/abseil-cpp':
287*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/src/third_party/abseil-cpp.git@' +
288*3ac0a46fSAndroid Build Coastguard Worker        Var('abseil_revision'),
289*3ac0a46fSAndroid Build Coastguard Worker
290*3ac0a46fSAndroid Build Coastguard Worker  'third_party/android_toolchain': {
291*3ac0a46fSAndroid Build Coastguard Worker    'packages': [
292*3ac0a46fSAndroid Build Coastguard Worker      {
293*3ac0a46fSAndroid Build Coastguard Worker        'package': 'chromium/third_party/android_toolchain/android_toolchain',
294*3ac0a46fSAndroid Build Coastguard Worker        'version': Var('android_toolchain_version'),
295*3ac0a46fSAndroid Build Coastguard Worker      },
296*3ac0a46fSAndroid Build Coastguard Worker    ],
297*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_android_native_support',
298*3ac0a46fSAndroid Build Coastguard Worker    'dep_type': 'cipd',
299*3ac0a46fSAndroid Build Coastguard Worker  },
300*3ac0a46fSAndroid Build Coastguard Worker
301*3ac0a46fSAndroid Build Coastguard Worker  'third_party/catapult': {
302*3ac0a46fSAndroid Build Coastguard Worker    'url': Var('chromium_git') + '/catapult.git@' + Var('catapult_revision'),
303*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_android',
304*3ac0a46fSAndroid Build Coastguard Worker  },
305*3ac0a46fSAndroid Build Coastguard Worker
306*3ac0a46fSAndroid Build Coastguard Worker  'third_party/cpu_features/src': {
307*3ac0a46fSAndroid Build Coastguard Worker    'url': Var('chromium_git') +
308*3ac0a46fSAndroid Build Coastguard Worker        '/external/github.com/google/cpu_features.git@' +
309*3ac0a46fSAndroid Build Coastguard Worker        Var('cpu_features_revision'),
310*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_android',
311*3ac0a46fSAndroid Build Coastguard Worker  },
312*3ac0a46fSAndroid Build Coastguard Worker
313*3ac0a46fSAndroid Build Coastguard Worker  'third_party/depot_tools':
314*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/tools/depot_tools.git@' +
315*3ac0a46fSAndroid Build Coastguard Worker        Var('depot_tools_revision'),
316*3ac0a46fSAndroid Build Coastguard Worker
317*3ac0a46fSAndroid Build Coastguard Worker  'third_party/freetype/src':
318*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/src/third_party/freetype2.git@' +
319*3ac0a46fSAndroid Build Coastguard Worker        Var('freetype_revision'),
320*3ac0a46fSAndroid Build Coastguard Worker
321*3ac0a46fSAndroid Build Coastguard Worker  'third_party/fuchsia-gn-sdk': {
322*3ac0a46fSAndroid Build Coastguard Worker    'url': Var('chromium_git') +
323*3ac0a46fSAndroid Build Coastguard Worker        '/chromium/src/third_party/fuchsia-gn-sdk.git@' +
324*3ac0a46fSAndroid Build Coastguard Worker        Var('fuchsia_gn_sdk_revision'),
325*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_fuchsia',
326*3ac0a46fSAndroid Build Coastguard Worker  },
327*3ac0a46fSAndroid Build Coastguard Worker
328*3ac0a46fSAndroid Build Coastguard Worker  'third_party/googletest/src':
329*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/external/github.com/google/googletest.git@' +
330*3ac0a46fSAndroid Build Coastguard Worker        Var('gtest_revision'),
331*3ac0a46fSAndroid Build Coastguard Worker
332*3ac0a46fSAndroid Build Coastguard Worker  'third_party/icu':
333*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/deps/icu.git@' + Var('icu_revision'),
334*3ac0a46fSAndroid Build Coastguard Worker
335*3ac0a46fSAndroid Build Coastguard Worker  'third_party/instrumented_libraries':
336*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') +
337*3ac0a46fSAndroid Build Coastguard Worker        '/chromium/src/third_party/instrumented_libraries.git@' +
338*3ac0a46fSAndroid Build Coastguard Worker        Var('instrumented_lib_revision'),
339*3ac0a46fSAndroid Build Coastguard Worker
340*3ac0a46fSAndroid Build Coastguard Worker  'third_party/jinja2':
341*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/src/third_party/jinja2.git@' +
342*3ac0a46fSAndroid Build Coastguard Worker        Var('jinja2_revision'),
343*3ac0a46fSAndroid Build Coastguard Worker
344*3ac0a46fSAndroid Build Coastguard Worker  'third_party/libc++/src':
345*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') +
346*3ac0a46fSAndroid Build Coastguard Worker        '/external/github.com/llvm/llvm-project/libcxx.git@' +
347*3ac0a46fSAndroid Build Coastguard Worker        Var('libcxx_revision'),
348*3ac0a46fSAndroid Build Coastguard Worker
349*3ac0a46fSAndroid Build Coastguard Worker  'third_party/libc++abi/src':
350*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') +
351*3ac0a46fSAndroid Build Coastguard Worker        '/external/github.com/llvm/llvm-project/libcxxabi.git@' +
352*3ac0a46fSAndroid Build Coastguard Worker        Var('libcxxabi_revision'),
353*3ac0a46fSAndroid Build Coastguard Worker
354*3ac0a46fSAndroid Build Coastguard Worker  'third_party/libunwind/src':
355*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') +
356*3ac0a46fSAndroid Build Coastguard Worker        '/external/github.com/llvm/llvm-project/libunwind.git@' +
357*3ac0a46fSAndroid Build Coastguard Worker        Var('libunwind_revision'),
358*3ac0a46fSAndroid Build Coastguard Worker
359*3ac0a46fSAndroid Build Coastguard Worker  'third_party/libjpeg_turbo':
360*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/deps/libjpeg_turbo.git@' +
361*3ac0a46fSAndroid Build Coastguard Worker        Var('jpeg_turbo_revision'),
362*3ac0a46fSAndroid Build Coastguard Worker
363*3ac0a46fSAndroid Build Coastguard Worker  'third_party/libpng':
364*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/src/third_party/libpng.git@' +
365*3ac0a46fSAndroid Build Coastguard Worker        Var('libpng_revision'),
366*3ac0a46fSAndroid Build Coastguard Worker
367*3ac0a46fSAndroid Build Coastguard Worker  'third_party/markupsafe':
368*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/src/third_party/markupsafe.git@' +
369*3ac0a46fSAndroid Build Coastguard Worker        Var('markupsafe_revision'),
370*3ac0a46fSAndroid Build Coastguard Worker
371*3ac0a46fSAndroid Build Coastguard Worker  'third_party/nasm':
372*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/deps/nasm.git@' +
373*3ac0a46fSAndroid Build Coastguard Worker        Var('nasm_source_revision'),
374*3ac0a46fSAndroid Build Coastguard Worker
375*3ac0a46fSAndroid Build Coastguard Worker  'third_party/ninja': {
376*3ac0a46fSAndroid Build Coastguard Worker    'packages': [
377*3ac0a46fSAndroid Build Coastguard Worker      {
378*3ac0a46fSAndroid Build Coastguard Worker        # https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja
379*3ac0a46fSAndroid Build Coastguard Worker        'package': 'infra/3pp/tools/ninja/${{platform}}',
380*3ac0a46fSAndroid Build Coastguard Worker        'version': Var('ninja_version'),
381*3ac0a46fSAndroid Build Coastguard Worker      }
382*3ac0a46fSAndroid Build Coastguard Worker    ],
383*3ac0a46fSAndroid Build Coastguard Worker    'dep_type': 'cipd',
384*3ac0a46fSAndroid Build Coastguard Worker  },
385*3ac0a46fSAndroid Build Coastguard Worker
386*3ac0a46fSAndroid Build Coastguard Worker  'third_party/skia': {
387*3ac0a46fSAndroid Build Coastguard Worker    'url': Var('skia_git') + '/skia.git@' + Var('skia_revision'),
388*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_skia',
389*3ac0a46fSAndroid Build Coastguard Worker  },
390*3ac0a46fSAndroid Build Coastguard Worker
391*3ac0a46fSAndroid Build Coastguard Worker  'third_party/test_fonts':
392*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/src/third_party/test_fonts.git@' +
393*3ac0a46fSAndroid Build Coastguard Worker        Var('test_fonts_revision'),
394*3ac0a46fSAndroid Build Coastguard Worker
395*3ac0a46fSAndroid Build Coastguard Worker  'third_party/zlib':
396*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/src/third_party/zlib.git@' +
397*3ac0a46fSAndroid Build Coastguard Worker        Var('zlib_revision'),
398*3ac0a46fSAndroid Build Coastguard Worker
399*3ac0a46fSAndroid Build Coastguard Worker  'tools/clang':
400*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/src/tools/clang@' + Var('clang_revision'),
401*3ac0a46fSAndroid Build Coastguard Worker
402*3ac0a46fSAndroid Build Coastguard Worker  'tools/code_coverage':
403*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/src/tools/code_coverage.git@' +
404*3ac0a46fSAndroid Build Coastguard Worker        Var('code_coverage_revision'),
405*3ac0a46fSAndroid Build Coastguard Worker
406*3ac0a46fSAndroid Build Coastguard Worker  'tools/memory':
407*3ac0a46fSAndroid Build Coastguard Worker    Var('chromium_git') + '/chromium/src/tools/memory@' +
408*3ac0a46fSAndroid Build Coastguard Worker        Var('tools_memory_revision'),
409*3ac0a46fSAndroid Build Coastguard Worker
410*3ac0a46fSAndroid Build Coastguard Worker  'tools/resultdb': {
411*3ac0a46fSAndroid Build Coastguard Worker    'packages': [
412*3ac0a46fSAndroid Build Coastguard Worker      {
413*3ac0a46fSAndroid Build Coastguard Worker        'package': 'infra/tools/result_adapter/${{platform}}',
414*3ac0a46fSAndroid Build Coastguard Worker        'version': Var('resultdb_version'),
415*3ac0a46fSAndroid Build Coastguard Worker      },
416*3ac0a46fSAndroid Build Coastguard Worker    ],
417*3ac0a46fSAndroid Build Coastguard Worker    'dep_type': 'cipd',
418*3ac0a46fSAndroid Build Coastguard Worker  },
419*3ac0a46fSAndroid Build Coastguard Worker
420*3ac0a46fSAndroid Build Coastguard Worker  # TODO(crbug.com/pdfium/1650): Set up autorollers for goldctl.
421*3ac0a46fSAndroid Build Coastguard Worker  'tools/skia_goldctl/linux': {
422*3ac0a46fSAndroid Build Coastguard Worker    'packages': [
423*3ac0a46fSAndroid Build Coastguard Worker      {
424*3ac0a46fSAndroid Build Coastguard Worker        'package': 'skia/tools/goldctl/linux-amd64',
425*3ac0a46fSAndroid Build Coastguard Worker        'version': 'eZ3k373CYgRxlu4JKph6e-_7xkP02swy_jePFFMiyIQC',
426*3ac0a46fSAndroid Build Coastguard Worker      }
427*3ac0a46fSAndroid Build Coastguard Worker    ],
428*3ac0a46fSAndroid Build Coastguard Worker    'dep_type': 'cipd',
429*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_linux',
430*3ac0a46fSAndroid Build Coastguard Worker  },
431*3ac0a46fSAndroid Build Coastguard Worker
432*3ac0a46fSAndroid Build Coastguard Worker  'tools/skia_goldctl/mac_amd64': {
433*3ac0a46fSAndroid Build Coastguard Worker    'packages': [
434*3ac0a46fSAndroid Build Coastguard Worker      {
435*3ac0a46fSAndroid Build Coastguard Worker        'package': 'skia/tools/goldctl/mac-amd64',
436*3ac0a46fSAndroid Build Coastguard Worker        'version': 'nHUjLIViYsLxRjv-zDdmzqT8p1R3VoyHq5gdGkKeMYwC',
437*3ac0a46fSAndroid Build Coastguard Worker      }
438*3ac0a46fSAndroid Build Coastguard Worker    ],
439*3ac0a46fSAndroid Build Coastguard Worker    'dep_type': 'cipd',
440*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_mac',
441*3ac0a46fSAndroid Build Coastguard Worker  },
442*3ac0a46fSAndroid Build Coastguard Worker
443*3ac0a46fSAndroid Build Coastguard Worker  'tools/skia_goldctl/mac_arm64': {
444*3ac0a46fSAndroid Build Coastguard Worker    'packages': [
445*3ac0a46fSAndroid Build Coastguard Worker      {
446*3ac0a46fSAndroid Build Coastguard Worker        'package': 'skia/tools/goldctl/mac-arm64',
447*3ac0a46fSAndroid Build Coastguard Worker        'version': '-mc865SGfJAqreLZM6fkn8tgCJ7u5QLk5zm7r-ZRJ9gC',
448*3ac0a46fSAndroid Build Coastguard Worker      }
449*3ac0a46fSAndroid Build Coastguard Worker    ],
450*3ac0a46fSAndroid Build Coastguard Worker    'dep_type': 'cipd',
451*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_mac',
452*3ac0a46fSAndroid Build Coastguard Worker  },
453*3ac0a46fSAndroid Build Coastguard Worker
454*3ac0a46fSAndroid Build Coastguard Worker  'tools/skia_goldctl/win': {
455*3ac0a46fSAndroid Build Coastguard Worker    'packages': [
456*3ac0a46fSAndroid Build Coastguard Worker      {
457*3ac0a46fSAndroid Build Coastguard Worker        'package': 'skia/tools/goldctl/windows-amd64',
458*3ac0a46fSAndroid Build Coastguard Worker        'version': 'iEqqRADI7znrc6pG-MVnc5pBZwD25koILREPC6x2AFAC',
459*3ac0a46fSAndroid Build Coastguard Worker      }
460*3ac0a46fSAndroid Build Coastguard Worker    ],
461*3ac0a46fSAndroid Build Coastguard Worker    'dep_type': 'cipd',
462*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_win',
463*3ac0a46fSAndroid Build Coastguard Worker  },
464*3ac0a46fSAndroid Build Coastguard Worker
465*3ac0a46fSAndroid Build Coastguard Worker  'v8': {
466*3ac0a46fSAndroid Build Coastguard Worker    'url': Var('chromium_git') + '/v8/v8.git@' + Var('v8_revision'),
467*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_v8',
468*3ac0a46fSAndroid Build Coastguard Worker  },
469*3ac0a46fSAndroid Build Coastguard Worker
470*3ac0a46fSAndroid Build Coastguard Worker}
471*3ac0a46fSAndroid Build Coastguard Worker
472*3ac0a46fSAndroid Build Coastguard Workerrecursedeps = []
473*3ac0a46fSAndroid Build Coastguard Worker
474*3ac0a46fSAndroid Build Coastguard Workerinclude_rules = [
475*3ac0a46fSAndroid Build Coastguard Worker  # Basic stuff that everyone can use.
476*3ac0a46fSAndroid Build Coastguard Worker  # Note: public is not here because core cannot depend on public.
477*3ac0a46fSAndroid Build Coastguard Worker  '+build/build_config.h',
478*3ac0a46fSAndroid Build Coastguard Worker  '+constants',
479*3ac0a46fSAndroid Build Coastguard Worker  '+testing',
480*3ac0a46fSAndroid Build Coastguard Worker  '+third_party/base',
481*3ac0a46fSAndroid Build Coastguard Worker
482*3ac0a46fSAndroid Build Coastguard Worker  # Abseil features must be allowlisted explicitly for now. See Chromium's
483*3ac0a46fSAndroid Build Coastguard Worker  # //styleguide/c++/c++11.html. Allowed features' headers will be listed
484*3ac0a46fSAndroid Build Coastguard Worker  # explicitly here.
485*3ac0a46fSAndroid Build Coastguard Worker  '-absl',
486*3ac0a46fSAndroid Build Coastguard Worker  '-third_party/abseil-cpp',
487*3ac0a46fSAndroid Build Coastguard Worker  '+third_party/abseil-cpp/absl/types/optional.h',
488*3ac0a46fSAndroid Build Coastguard Worker  '+third_party/abseil-cpp/absl/types/variant.h',
489*3ac0a46fSAndroid Build Coastguard Worker]
490*3ac0a46fSAndroid Build Coastguard Worker
491*3ac0a46fSAndroid Build Coastguard Workerspecific_include_rules = {
492*3ac0a46fSAndroid Build Coastguard Worker  # Allow embedder tests to use public APIs.
493*3ac0a46fSAndroid Build Coastguard Worker  '(.*embeddertest\.cpp)': [
494*3ac0a46fSAndroid Build Coastguard Worker    '+public',
495*3ac0a46fSAndroid Build Coastguard Worker  ]
496*3ac0a46fSAndroid Build Coastguard Worker}
497*3ac0a46fSAndroid Build Coastguard Worker
498*3ac0a46fSAndroid Build Coastguard Workerhooks = [
499*3ac0a46fSAndroid Build Coastguard Worker  {
500*3ac0a46fSAndroid Build Coastguard Worker    # Ensure that the DEPS'd "depot_tools" has its self-update capability
501*3ac0a46fSAndroid Build Coastguard Worker    # disabled.
502*3ac0a46fSAndroid Build Coastguard Worker    'name': 'disable_depot_tools_selfupdate',
503*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
504*3ac0a46fSAndroid Build Coastguard Worker    'action': [ 'python3',
505*3ac0a46fSAndroid Build Coastguard Worker                'third_party/depot_tools/update_depot_tools_toggle.py',
506*3ac0a46fSAndroid Build Coastguard Worker                '--disable',
507*3ac0a46fSAndroid Build Coastguard Worker    ],
508*3ac0a46fSAndroid Build Coastguard Worker  },
509*3ac0a46fSAndroid Build Coastguard Worker  {
510*3ac0a46fSAndroid Build Coastguard Worker    # Case-insensitivity for the Win SDK. Must run before win_toolchain below.
511*3ac0a46fSAndroid Build Coastguard Worker    'name': 'ciopfs_linux',
512*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
513*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_win and host_os == "linux"',
514*3ac0a46fSAndroid Build Coastguard Worker    'action': [ 'python3',
515*3ac0a46fSAndroid Build Coastguard Worker                'third_party/depot_tools/download_from_google_storage.py',
516*3ac0a46fSAndroid Build Coastguard Worker                '--no_resume',
517*3ac0a46fSAndroid Build Coastguard Worker                '--no_auth',
518*3ac0a46fSAndroid Build Coastguard Worker                '--bucket', 'chromium-browser-clang/ciopfs',
519*3ac0a46fSAndroid Build Coastguard Worker                '-s', 'build/ciopfs.sha1',
520*3ac0a46fSAndroid Build Coastguard Worker    ]
521*3ac0a46fSAndroid Build Coastguard Worker  },
522*3ac0a46fSAndroid Build Coastguard Worker  {
523*3ac0a46fSAndroid Build Coastguard Worker    # Update the Windows toolchain if necessary.  Must run before 'clang' below.
524*3ac0a46fSAndroid Build Coastguard Worker    'name': 'win_toolchain',
525*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
526*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_win',
527*3ac0a46fSAndroid Build Coastguard Worker    'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'],
528*3ac0a46fSAndroid Build Coastguard Worker  },
529*3ac0a46fSAndroid Build Coastguard Worker  {
530*3ac0a46fSAndroid Build Coastguard Worker    # Update the Mac toolchain if necessary.
531*3ac0a46fSAndroid Build Coastguard Worker    'name': 'mac_toolchain',
532*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
533*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_mac',
534*3ac0a46fSAndroid Build Coastguard Worker    'action': ['python3', 'build/mac_toolchain.py'],
535*3ac0a46fSAndroid Build Coastguard Worker  },
536*3ac0a46fSAndroid Build Coastguard Worker  # Pull dsymutil binaries using checked-in hashes.
537*3ac0a46fSAndroid Build Coastguard Worker  {
538*3ac0a46fSAndroid Build Coastguard Worker    'name': 'dsymutil_mac_arm64',
539*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
540*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'host_os == "mac" and host_cpu == "arm64"',
541*3ac0a46fSAndroid Build Coastguard Worker    'action': [ 'python3',
542*3ac0a46fSAndroid Build Coastguard Worker                'third_party/depot_tools/download_from_google_storage.py',
543*3ac0a46fSAndroid Build Coastguard Worker                '--no_resume',
544*3ac0a46fSAndroid Build Coastguard Worker                '--no_auth',
545*3ac0a46fSAndroid Build Coastguard Worker                '--bucket', 'chromium-browser-clang',
546*3ac0a46fSAndroid Build Coastguard Worker                '-s', 'tools/clang/dsymutil/bin/dsymutil.arm64.sha1',
547*3ac0a46fSAndroid Build Coastguard Worker                '-o', 'tools/clang/dsymutil/bin/dsymutil',
548*3ac0a46fSAndroid Build Coastguard Worker    ],
549*3ac0a46fSAndroid Build Coastguard Worker  },
550*3ac0a46fSAndroid Build Coastguard Worker  {
551*3ac0a46fSAndroid Build Coastguard Worker    'name': 'dsymutil_mac_x64',
552*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
553*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'host_os == "mac" and host_cpu == "x64"',
554*3ac0a46fSAndroid Build Coastguard Worker    'action': [ 'python3',
555*3ac0a46fSAndroid Build Coastguard Worker                'third_party/depot_tools/download_from_google_storage.py',
556*3ac0a46fSAndroid Build Coastguard Worker                '--no_resume',
557*3ac0a46fSAndroid Build Coastguard Worker                '--no_auth',
558*3ac0a46fSAndroid Build Coastguard Worker                '--bucket', 'chromium-browser-clang',
559*3ac0a46fSAndroid Build Coastguard Worker                '-s', 'tools/clang/dsymutil/bin/dsymutil.x64.sha1',
560*3ac0a46fSAndroid Build Coastguard Worker                '-o', 'tools/clang/dsymutil/bin/dsymutil',
561*3ac0a46fSAndroid Build Coastguard Worker    ],
562*3ac0a46fSAndroid Build Coastguard Worker  },
563*3ac0a46fSAndroid Build Coastguard Worker  # Pull clang-format binaries using checked-in hashes.
564*3ac0a46fSAndroid Build Coastguard Worker  {
565*3ac0a46fSAndroid Build Coastguard Worker    'name': 'clang_format_win',
566*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
567*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'host_os == "win"',
568*3ac0a46fSAndroid Build Coastguard Worker    'action': [ 'python3',
569*3ac0a46fSAndroid Build Coastguard Worker                'third_party/depot_tools/download_from_google_storage.py',
570*3ac0a46fSAndroid Build Coastguard Worker                '--no_resume',
571*3ac0a46fSAndroid Build Coastguard Worker                '--no_auth',
572*3ac0a46fSAndroid Build Coastguard Worker                '--bucket', 'chromium-clang-format',
573*3ac0a46fSAndroid Build Coastguard Worker                '-s', 'buildtools/win/clang-format.exe.sha1',
574*3ac0a46fSAndroid Build Coastguard Worker    ],
575*3ac0a46fSAndroid Build Coastguard Worker  },
576*3ac0a46fSAndroid Build Coastguard Worker  {
577*3ac0a46fSAndroid Build Coastguard Worker    'name': 'clang_format_mac_x64',
578*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
579*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'host_os == "mac" and host_cpu == "x64"',
580*3ac0a46fSAndroid Build Coastguard Worker    'action': [ 'python3',
581*3ac0a46fSAndroid Build Coastguard Worker                'third_party/depot_tools/download_from_google_storage.py',
582*3ac0a46fSAndroid Build Coastguard Worker                '--no_resume',
583*3ac0a46fSAndroid Build Coastguard Worker                '--no_auth',
584*3ac0a46fSAndroid Build Coastguard Worker                '--bucket', 'chromium-clang-format',
585*3ac0a46fSAndroid Build Coastguard Worker                '-s', 'buildtools/mac/clang-format.x64.sha1',
586*3ac0a46fSAndroid Build Coastguard Worker                '-o', 'buildtools/mac/clang-format',
587*3ac0a46fSAndroid Build Coastguard Worker    ],
588*3ac0a46fSAndroid Build Coastguard Worker  },
589*3ac0a46fSAndroid Build Coastguard Worker  {
590*3ac0a46fSAndroid Build Coastguard Worker    'name': 'clang_format_mac_arm64',
591*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
592*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'host_os == "mac" and host_cpu == "arm64"',
593*3ac0a46fSAndroid Build Coastguard Worker    'action': [ 'python3',
594*3ac0a46fSAndroid Build Coastguard Worker                'third_party/depot_tools/download_from_google_storage.py',
595*3ac0a46fSAndroid Build Coastguard Worker                '--no_resume',
596*3ac0a46fSAndroid Build Coastguard Worker                '--no_auth',
597*3ac0a46fSAndroid Build Coastguard Worker                '--bucket', 'chromium-clang-format',
598*3ac0a46fSAndroid Build Coastguard Worker                '-s', 'buildtools/mac/clang-format.arm64.sha1',
599*3ac0a46fSAndroid Build Coastguard Worker                '-o', 'buildtools/mac/clang-format',
600*3ac0a46fSAndroid Build Coastguard Worker    ],
601*3ac0a46fSAndroid Build Coastguard Worker  },
602*3ac0a46fSAndroid Build Coastguard Worker  {
603*3ac0a46fSAndroid Build Coastguard Worker    'name': 'clang_format_linux',
604*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
605*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'host_os == "linux"',
606*3ac0a46fSAndroid Build Coastguard Worker    'action': [ 'python3',
607*3ac0a46fSAndroid Build Coastguard Worker                'third_party/depot_tools/download_from_google_storage.py',
608*3ac0a46fSAndroid Build Coastguard Worker                '--no_resume',
609*3ac0a46fSAndroid Build Coastguard Worker                '--no_auth',
610*3ac0a46fSAndroid Build Coastguard Worker                '--bucket', 'chromium-clang-format',
611*3ac0a46fSAndroid Build Coastguard Worker                '-s', 'buildtools/linux64/clang-format.sha1',
612*3ac0a46fSAndroid Build Coastguard Worker    ],
613*3ac0a46fSAndroid Build Coastguard Worker  },
614*3ac0a46fSAndroid Build Coastguard Worker  {
615*3ac0a46fSAndroid Build Coastguard Worker    # Note: On Win, this should run after win_toolchain, as it may use it.
616*3ac0a46fSAndroid Build Coastguard Worker    'name': 'clang',
617*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
618*3ac0a46fSAndroid Build Coastguard Worker    'action': ['python3',
619*3ac0a46fSAndroid Build Coastguard Worker               'tools/clang/scripts/update.py'
620*3ac0a46fSAndroid Build Coastguard Worker    ],
621*3ac0a46fSAndroid Build Coastguard Worker  },
622*3ac0a46fSAndroid Build Coastguard Worker  {
623*3ac0a46fSAndroid Build Coastguard Worker    'name': 'sysroot_arm',
624*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
625*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_linux and checkout_arm',
626*3ac0a46fSAndroid Build Coastguard Worker    'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
627*3ac0a46fSAndroid Build Coastguard Worker               '--arch=arm'],
628*3ac0a46fSAndroid Build Coastguard Worker  },
629*3ac0a46fSAndroid Build Coastguard Worker  {
630*3ac0a46fSAndroid Build Coastguard Worker    'name': 'sysroot_arm64',
631*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
632*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_linux and checkout_arm64',
633*3ac0a46fSAndroid Build Coastguard Worker    'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
634*3ac0a46fSAndroid Build Coastguard Worker               '--arch=arm64'],
635*3ac0a46fSAndroid Build Coastguard Worker  },
636*3ac0a46fSAndroid Build Coastguard Worker  {
637*3ac0a46fSAndroid Build Coastguard Worker    'name': 'sysroot_x86',
638*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
639*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_linux and (checkout_x86 or checkout_x64)',
640*3ac0a46fSAndroid Build Coastguard Worker    'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
641*3ac0a46fSAndroid Build Coastguard Worker               '--arch=x86'],
642*3ac0a46fSAndroid Build Coastguard Worker  },
643*3ac0a46fSAndroid Build Coastguard Worker  {
644*3ac0a46fSAndroid Build Coastguard Worker    'name': 'sysroot_mips',
645*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
646*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_linux and checkout_mips',
647*3ac0a46fSAndroid Build Coastguard Worker    'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
648*3ac0a46fSAndroid Build Coastguard Worker               '--arch=mips'],
649*3ac0a46fSAndroid Build Coastguard Worker  },
650*3ac0a46fSAndroid Build Coastguard Worker  {
651*3ac0a46fSAndroid Build Coastguard Worker    'name': 'sysroot_x64',
652*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
653*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_linux and checkout_x64',
654*3ac0a46fSAndroid Build Coastguard Worker    'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
655*3ac0a46fSAndroid Build Coastguard Worker               '--arch=x64'],
656*3ac0a46fSAndroid Build Coastguard Worker  },
657*3ac0a46fSAndroid Build Coastguard Worker  {
658*3ac0a46fSAndroid Build Coastguard Worker    'name': 'test_fonts',
659*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
660*3ac0a46fSAndroid Build Coastguard Worker    'action': [ 'python3',
661*3ac0a46fSAndroid Build Coastguard Worker                'third_party/depot_tools/download_from_google_storage.py',
662*3ac0a46fSAndroid Build Coastguard Worker                '--no_resume',
663*3ac0a46fSAndroid Build Coastguard Worker                '--extract',
664*3ac0a46fSAndroid Build Coastguard Worker                '--no_auth',
665*3ac0a46fSAndroid Build Coastguard Worker                '--bucket', 'chromium-fonts',
666*3ac0a46fSAndroid Build Coastguard Worker                '-s', 'third_party/test_fonts/test_fonts.tar.gz.sha1',
667*3ac0a46fSAndroid Build Coastguard Worker    ],
668*3ac0a46fSAndroid Build Coastguard Worker  },
669*3ac0a46fSAndroid Build Coastguard Worker  {
670*3ac0a46fSAndroid Build Coastguard Worker    'name': 'msan_chained_origins_focal',
671*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
672*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_instrumented_libraries',
673*3ac0a46fSAndroid Build Coastguard Worker    'action': [ 'python3',
674*3ac0a46fSAndroid Build Coastguard Worker                'third_party/depot_tools/download_from_google_storage.py',
675*3ac0a46fSAndroid Build Coastguard Worker                '--no_resume',
676*3ac0a46fSAndroid Build Coastguard Worker                '--no_auth',
677*3ac0a46fSAndroid Build Coastguard Worker                '--bucket', 'chromium-instrumented-libraries',
678*3ac0a46fSAndroid Build Coastguard Worker                '-s', 'third_party/instrumented_libraries/binaries/msan-chained-origins-focal.tgz.sha1',
679*3ac0a46fSAndroid Build Coastguard Worker              ],
680*3ac0a46fSAndroid Build Coastguard Worker  },
681*3ac0a46fSAndroid Build Coastguard Worker  {
682*3ac0a46fSAndroid Build Coastguard Worker    'name': 'msan_no_origins_focal',
683*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
684*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_instrumented_libraries',
685*3ac0a46fSAndroid Build Coastguard Worker    'action': [ 'python3',
686*3ac0a46fSAndroid Build Coastguard Worker                'third_party/depot_tools/download_from_google_storage.py',
687*3ac0a46fSAndroid Build Coastguard Worker                '--no_resume',
688*3ac0a46fSAndroid Build Coastguard Worker                '--no_auth',
689*3ac0a46fSAndroid Build Coastguard Worker                '--bucket', 'chromium-instrumented-libraries',
690*3ac0a46fSAndroid Build Coastguard Worker                '-s', 'third_party/instrumented_libraries/binaries/msan-no-origins-focal.tgz.sha1',
691*3ac0a46fSAndroid Build Coastguard Worker              ],
692*3ac0a46fSAndroid Build Coastguard Worker  },
693*3ac0a46fSAndroid Build Coastguard Worker  {
694*3ac0a46fSAndroid Build Coastguard Worker    # Update LASTCHANGE.
695*3ac0a46fSAndroid Build Coastguard Worker    'name': 'lastchange',
696*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
697*3ac0a46fSAndroid Build Coastguard Worker    'action': ['python3', 'build/util/lastchange.py',
698*3ac0a46fSAndroid Build Coastguard Worker               '-o', 'build/util/LASTCHANGE'],
699*3ac0a46fSAndroid Build Coastguard Worker  },
700*3ac0a46fSAndroid Build Coastguard Worker  {
701*3ac0a46fSAndroid Build Coastguard Worker    'name': 'Download Fuchsia SDK from GCS',
702*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
703*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'checkout_fuchsia',
704*3ac0a46fSAndroid Build Coastguard Worker    'action': [
705*3ac0a46fSAndroid Build Coastguard Worker      'python3',
706*3ac0a46fSAndroid Build Coastguard Worker      'build/fuchsia/update_sdk.py',
707*3ac0a46fSAndroid Build Coastguard Worker      '--cipd-prefix={fuchsia_sdk_cipd_prefix}',
708*3ac0a46fSAndroid Build Coastguard Worker      '--version={fuchsia_version}',
709*3ac0a46fSAndroid Build Coastguard Worker    ],
710*3ac0a46fSAndroid Build Coastguard Worker  },
711*3ac0a46fSAndroid Build Coastguard Worker  # Download remote exec cfg files
712*3ac0a46fSAndroid Build Coastguard Worker  {
713*3ac0a46fSAndroid Build Coastguard Worker    'name': 'fetch_reclient_cfgs',
714*3ac0a46fSAndroid Build Coastguard Worker    'pattern': '.',
715*3ac0a46fSAndroid Build Coastguard Worker    'condition': 'download_remoteexec_cfg',
716*3ac0a46fSAndroid Build Coastguard Worker    'action': ['python3',
717*3ac0a46fSAndroid Build Coastguard Worker               'buildtools/reclient_cfgs/fetch_reclient_cfgs.py',
718*3ac0a46fSAndroid Build Coastguard Worker               '--rbe_instance',
719*3ac0a46fSAndroid Build Coastguard Worker               Var('rbe_instance'),
720*3ac0a46fSAndroid Build Coastguard Worker               '--reproxy_cfg_template',
721*3ac0a46fSAndroid Build Coastguard Worker               'reproxy.cfg.template',
722*3ac0a46fSAndroid Build Coastguard Worker               '--rewrapper_cfg_project',
723*3ac0a46fSAndroid Build Coastguard Worker               Var('rewrapper_cfg_project'),
724*3ac0a46fSAndroid Build Coastguard Worker               '--quiet',
725*3ac0a46fSAndroid Build Coastguard Worker               '--hook',
726*3ac0a46fSAndroid Build Coastguard Worker               ],
727*3ac0a46fSAndroid Build Coastguard Worker  },
728*3ac0a46fSAndroid Build Coastguard Worker]
729