blob: e04b17986123b825c48dca790e3fef2682f1da78 [file] [log] [blame]
Lei Zhange4bf8342015-10-21 17:11:04 -07001use_relative_paths = True
2
Lei Zhang323ade82020-07-13 22:07:03 +00003gclient_gn_args_file = 'build/config/gclient_args.gni'
K. Moon4948d0e2022-11-11 18:54:40 +00004gclient_gn_args = [
5 'checkout_skia',
6]
Lei Zhang5dc5c5b2020-07-06 22:50:02 +00007
Dan Sinclaira03c3432016-03-16 15:35:20 -04008vars = {
Lei Zhangab384ed2017-12-21 08:00:44 +00009 # By default, we should check out everything needed to run on the main
Lei Zhangb1536552022-07-12 20:59:06 +000010 # pdfium waterfalls. This var can be also be set to 'small', in order to skip
11 # things are not strictly needed to build pdfium for development purposes,
12 # by adding the following line to the .gclient file inside a solutions entry:
13 # "custom_vars": { "checkout_configuration": "small" },
Lei Zhanga2ccb262022-07-26 00:56:23 +000014 # Similarly, this var can be set to 'minimal' to also skip the Skia and V8
15 # checkouts for the smallest possible checkout, where some features will not
16 # work.
Lei Zhangab384ed2017-12-21 08:00:44 +000017 'checkout_configuration': 'default',
18
Lei Zhanga2ccb262022-07-26 00:56:23 +000019 'checkout_instrumented_libraries': 'checkout_linux and checkout_configuration != "small" and checkout_configuration != "minimal"',
Lei Zhangab384ed2017-12-21 08:00:44 +000020
Lei Zhanga2ccb262022-07-26 00:56:23 +000021 'checkout_skia': 'checkout_configuration != "minimal"',
22
23 'checkout_testing_corpus': 'checkout_configuration != "small" and checkout_configuration != "minimal"',
24
25 'checkout_v8': 'checkout_configuration != "minimal"',
Lei Zhangb1536552022-07-12 20:59:06 +000026
Lei Zhange52951a2022-05-04 20:49:01 +000027 # By default, download the fuchsia sdk from the public sdk directory.
Chong Gu411f2072023-06-28 22:01:35 +000028 'fuchsia_sdk_cipd_prefix': 'fuchsia/sdk/core/',
Lei Zhangb714e7c2022-02-28 22:48:44 +000029
Lei Zhange293c092023-07-06 21:55:51 +000030 # Fetch configuration files required for the 'use_remoteexec' gn arg
31 'download_remoteexec_cfg': False,
32 # RBE instance to use for running remote builds
33 'rbe_instance': Str('projects/rbe-chrome-untrusted/instances/default_instance'),
34 # RBE project to download rewrapper config files for. Only needed if
35 # different from the project used in 'rbe_instance'
36 'rewrapper_cfg_project': Str(''),
37 # reclient CIPD package
38 'reclient_package': 'infra/rbe/client/',
39 # reclient CIPD package version
40 'reclient_version': 're_client_version:0.109.0.927890d-gomaip',
41
Dan Sinclaira03c3432016-03-16 15:35:20 -040042 'chromium_git': 'https://chromium.googlesource.com',
43 'pdfium_git': 'https://pdfium.googlesource.com',
Lei Zhang7b9fe872021-11-30 21:45:18 +000044 'skia_git': 'https://skia.googlesource.com',
Dan Sinclaira03c3432016-03-16 15:35:20 -040045
Lei Zhang5b02a0a2020-02-21 18:57:27 +000046 # Three lines of non-changing comments so that
Lei Zhang32219d72021-09-29 21:13:27 +000047 # the commit queue can handle CLs rolling abseil
48 # and whatever else without interference from each other.
Lei Zhangacd622c2023-08-01 17:52:29 +000049 'abseil_revision': '2288062eef9624e8b48070ed2447139d3fd4a1c5',
Lei Zhang32219d72021-09-29 21:13:27 +000050 # Three lines of non-changing comments so that
K. Moon270f8d42023-07-06 00:16:55 +000051 # the commit queue can handle CLs rolling android_toolchain
Lei Zhang5b02a0a2020-02-21 18:57:27 +000052 # and whatever else without interference from each other.
K. Moon270f8d42023-07-06 00:16:55 +000053 'android_toolchain_version': 'R_8suM8m0oHbZ1awdxGXvKEFpAOETscbfZxkkMthyk8C',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000054 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000055 # the commit queue can handle CLs rolling build
56 # and whatever else without interference from each other.
Lei Zhang49e8b092023-07-28 23:45:46 +000057 'build_revision': '336e34d44c88d1160d150bd6c8d93e203a424b42',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000058 # Three lines of non-changing comments so that
59 # the commit queue can handle CLs rolling buildtools
60 # and whatever else without interference from each other.
Lei Zhang6e41cff2023-08-01 17:10:54 +000061 'buildtools_revision': '16be42a9ff1f7e4a3e53b93b3adc181fa7ff9161',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000062 # Three lines of non-changing comments so that
63 # the commit queue can handle CLs rolling catapult
64 # and whatever else without interference from each other.
pdfium-autoroll832d6bb2023-08-07 05:36:37 +000065 'catapult_revision': '220cbb13b5a7485be09813e7da4123088419a76a',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000066 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +000067 # the commit queue can handle CLs rolling clang format
68 # and whatever else without interference from each other.
Lei Zhang76f27a12023-08-07 23:55:16 +000069 'clang_format_revision': 'e5337933f2951cacd3aeacd238ce4578163ca0b9',
Hui Yingste0f5c5b2021-04-02 21:39:14 +000070 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000071 # the commit queue can handle CLs rolling clang
72 # and whatever else without interference from each other.
Lei Zhang5d3955e2023-07-31 22:15:26 +000073 'clang_revision': '236e66ffd61f3bd710d20d20a67e71a1f1f55cba',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000074 # Three lines of non-changing comments so that
75 # the commit queue can handle CLs rolling code_coverage
76 # and whatever else without interference from each other.
pdfium-autoroll442caf12023-08-07 05:30:45 +000077 'code_coverage_revision': 'bce4cdc2309e9a7f1e0ff1d9310e0d0302aa67e0',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000078 # Three lines of non-changing comments so that
Hui Yingst9dc67f02023-06-01 23:02:35 +000079 # the commit queue can handle CLs rolling code_coverage
80 # and whatever else without interference from each other.
81 'cpu_features_revision': '936b9ab5515dead115606559502e3864958f7f6e',
82 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000083 # the commit queue can handle CLs rolling depot_tools
84 # and whatever else without interference from each other.
Lei Zhang3f0bf8d2023-08-01 00:44:19 +000085 'depot_tools_revision': '59e10115417ac77f47e42c3f13a4f6b58ebe70c2',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000086 # Three lines of non-changing comments so that
87 # the commit queue can handle CLs rolling freetype
88 # and whatever else without interference from each other.
Lei Zhang75743332023-08-01 17:52:04 +000089 'freetype_revision': 'b2584c738f1a92e6369890cff0504cc044315b38',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000090 # Three lines of non-changing comments so that
Chong Gu411f2072023-06-28 22:01:35 +000091 # the commit queue can handle CLs rolling freetype
92 # and whatever else without interference from each other.
93 'fuchsia_gn_sdk_revision': '0d6902558d92fe3d49ba9a8f638ddea829be595b',
94 # Three lines of non-changing comments so that
Lei Zhange52951a2022-05-04 20:49:01 +000095 # the commit queue can handle CLs rolling Fuchsia sdk
96 # and whatever else without interference from each other.
Lei Zhange33975a2023-08-01 17:11:28 +000097 'fuchsia_version': 'version:14.20230727.2.1',
Lei Zhange52951a2022-05-04 20:49:01 +000098 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +000099 # the commit queue can handle CLs rolling GN CIPD package version
100 # and whatever else without interference from each other.
Lei Zhang1dab6182023-08-01 17:52:46 +0000101 'gn_version': 'git_revision:3fccef9033b950e8935e8debeba9fbd71617bc74',
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000102 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000103 # the commit queue can handle CLs rolling gtest
104 # and whatever else without interference from each other.
Alan Screenf8f29a82022-04-14 01:36:21 +0000105 'gtest_revision': 'af29db7ec28d6df1c7f0f745186884091e602e07',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000106 # Three lines of non-changing comments so that
107 # the commit queue can handle CLs rolling icu
108 # and whatever else without interference from each other.
Lei Zhang7f8f07e2023-08-01 01:31:23 +0000109 'icu_revision': 'de4ce0071eb47ed54cbda54869001210cf3a8ae5',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000110 # Three lines of non-changing comments so that
111 # the commit queue can handle CLs rolling instrumented_lib
112 # and whatever else without interference from each other.
pdfium-autoroll0485b622023-07-17 05:14:15 +0000113 'instrumented_lib_revision': '032e9c850ab975f7c088a625dcf2256917dbdfa6',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000114 # Three lines of non-changing comments so that
115 # the commit queue can handle CLs rolling jinja2
116 # and whatever else without interference from each other.
pdfium-autoroll59673782023-07-10 06:13:47 +0000117 'jinja2_revision': '515dd10de9bf63040045902a4a310d2ba25213a0',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000118 # Three lines of non-changing comments so that
119 # the commit queue can handle CLs rolling jpeg_turbo
120 # and whatever else without interference from each other.
Lei Zhang06581072023-07-31 22:54:19 +0000121 'jpeg_turbo_revision': '30bdb85e302ecfc52593636b2f44af438e05e784',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000122 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000123 # the commit queue can handle CLs rolling libc++
124 # and whatever else without interference from each other.
125 # If you change this, also update the libc++ revision in
126 # //buildtools/deps_revisions.gni.
K. Moonadcf1e72023-07-05 23:14:07 +0000127 'libcxx_revision': '84fb809dd6dae36d556dc0bb702c6cc2ce9d4b80',
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000128 # Three lines of non-changing comments so that
129 # the commit queue can handle CLs rolling libc++abi
130 # and whatever else without interference from each other.
Lei Zhang637bfca2023-08-02 17:06:13 +0000131 'libcxxabi_revision': 'd4760c0af99ccc9bce077960d5ddde4d66146c05',
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000132 # Three lines of non-changing comments so that
K. Moonefd00c22022-11-15 23:02:57 +0000133 # the commit queue can handle CLs rolling libpng
134 # and whatever else without interference from each other.
Andy Phan415349e2023-04-04 20:51:50 +0000135 'libpng_revision': '805df541c44099bb20d425ac47c666e29b1f7a80',
K. Moonefd00c22022-11-15 23:02:57 +0000136 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000137 # the commit queue can handle CLs rolling libunwind
138 # and whatever else without interference from each other.
Lei Zhang9f8b6bf2023-08-02 17:06:16 +0000139 'libunwind_revision': 'e5a9c50e5e0b620a8886df1c4677b12404620fb6',
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000140 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000141 # the commit queue can handle CLs rolling markupsafe
142 # and whatever else without interference from each other.
pdfium-autorollc749bfe2023-07-10 05:46:12 +0000143 'markupsafe_revision': '006709ba3ed87660a17bd4548c45663628f5ed85',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000144 # Three lines of non-changing comments so that
Lei Zhangd749ccd2020-04-13 23:48:51 +0000145 # the commit queue can handle CLs rolling nasm_source
146 # and whatever else without interference from each other.
K. Moon515651e2023-02-03 16:25:10 +0000147 'nasm_source_revision': '7fc833e889d1afda72c06220e5bed8fb43b2e5ce',
Lei Zhangd749ccd2020-04-13 23:48:51 +0000148 # Three lines of non-changing comments so that
Junji Watanabea0672342022-11-14 19:51:59 +0000149 # the commit queue can handle CLs rolling Ninja CIPD package version
150 # and whatever else without interference from each other.
K. Moon613dd302023-02-03 22:47:36 +0000151 'ninja_version': 'version:2@1.11.1.chromium.6',
Junji Watanabea0672342022-11-14 19:51:59 +0000152 # Three lines of non-changing comments so that
Tom Sepeze10b8b62022-09-16 19:35:02 +0000153 # the commit queue can handle CLs rolling partition_allocator
154 # and whatever else without interference from each other.
Tom Sepez1e4b7c22023-07-28 23:54:27 +0000155 'partition_allocator_revision': 'f91d5ba232cbe61b9740b4101a5b5bea3cd631ed',
Tom Sepeze10b8b62022-09-16 19:35:02 +0000156 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000157 # the commit queue can handle CLs rolling pdfium_tests
158 # and whatever else without interference from each other.
K. Moonc7df6022023-06-28 19:12:03 +0000159 'pdfium_tests_revision': 'dc2cd9afdd1bad8666072416c340ad1c6a01e388',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000160 # Three lines of non-changing comments so that
K. Moon643278d2022-10-06 20:41:42 +0000161 # the commit queue can handle CLs rolling resultdb
162 # and whatever else without interference from each other.
Lei Zhang82473b62023-03-07 16:00:43 +0000163 'resultdb_version': 'git_revision:ebc74d10fa0d64057daa6f128e89f3672eeeec95',
K. Moon643278d2022-10-06 20:41:42 +0000164 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000165 # the commit queue can handle CLs rolling skia
166 # and whatever else without interference from each other.
Brian Osman5cac3f62023-08-15 20:14:13 +0000167 'skia_revision': 'b5f614a8521b36e892798e6f42d85c3c439add38',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000168 # Three lines of non-changing comments so that
Tom Anderson331f3eb2021-10-22 00:49:44 +0000169 # the commit queue can handle CLs rolling test_fonts
170 # and whatever else without interference from each other.
171 'test_fonts_revision': '7f51783942943e965cd56facf786544ccfc07713',
172 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000173 # the commit queue can handle CLs rolling tools_memory
174 # and whatever else without interference from each other.
Lei Zhangd647c712023-08-01 00:22:32 +0000175 'tools_memory_revision': '2a4c4ba1f4a94231b01280a0c63d3fe4404cc9c2',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000176 # Three lines of non-changing comments so that
177 # the commit queue can handle CLs rolling trace_event
178 # and whatever else without interference from each other.
Lei Zhangc73d7842023-03-01 20:35:48 +0000179 'trace_event_revision': '147f65333c38ddd1ebf554e89965c243c8ce50b3',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000180 # Three lines of non-changing comments so that
181 # the commit queue can handle CLs rolling v8
182 # and whatever else without interference from each other.
Lei Zhangdf6fed92023-08-08 03:26:52 +0000183 'v8_revision': '41ff48bd620584b425618e7f8b51617c46c4d67f',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000184 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000185 # the commit queue can handle CLs rolling zlib
186 # and whatever else without interference from each other.
Lei Zhang073cb492023-08-01 01:51:03 +0000187 'zlib_revision': '526382e41c9c5275dc329db4328b54e4f344a204',
Dan Sinclaira03c3432016-03-16 15:35:20 -0400188}
189
Lei Zhang5e0f14e2021-11-30 22:51:28 +0000190# Only these hosts are allowed for dependencies in this DEPS file.
191# If you need to add a new host, and the new host is not in Chromium's DEPS
192# file's allowed_hosts list, contact Chrome infrastructure team.
193allowed_hosts = [
194 'chromium.googlesource.com',
195 'pdfium.googlesource.com',
196 'skia.googlesource.com',
197]
198
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700199deps = {
Tom Sepeze10b8b62022-09-16 19:35:02 +0000200 'base/allocator/partition_allocator':
201 Var('chromium_git') +
202 '/chromium/src/base/allocator/partition_allocator.git@' +
203 Var('partition_allocator_revision'),
204
Lei Zhang73b4e772020-04-13 23:35:48 +0000205 'base/trace_event/common':
206 Var('chromium_git') + '/chromium/src/base/trace_event/common.git@' +
thestig5fec5972016-08-30 06:39:40 -0700207 Var('trace_event_revision'),
208
Lei Zhang73b4e772020-04-13 23:35:48 +0000209 'build':
210 Var('chromium_git') + '/chromium/src/build.git@' + Var('build_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700211
Lei Zhang73b4e772020-04-13 23:35:48 +0000212 'buildtools':
213 Var('chromium_git') + '/chromium/src/buildtools.git@' +
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700214 Var('buildtools_revision'),
Tom Sepez4c0e2752015-06-05 13:46:08 -0700215
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000216 'buildtools/clang_format/script':
Lei Zhang8d314172021-11-30 22:48:19 +0000217 Var('chromium_git') +
218 '/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@' +
219 Var('clang_format_revision'),
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000220
221 'buildtools/linux64': {
222 'packages': [
223 {
224 'package': 'gn/gn/linux-amd64',
225 'version': Var('gn_version'),
226 }
227 ],
228 'dep_type': 'cipd',
229 'condition': 'host_os == "linux"',
230 },
231
232 'buildtools/mac': {
233 'packages': [
234 {
235 'package': 'gn/gn/mac-${{arch}}',
236 'version': Var('gn_version'),
237 }
238 ],
239 'dep_type': 'cipd',
240 'condition': 'host_os == "mac"',
241 },
242
Lei Zhange293c092023-07-06 21:55:51 +0000243 'buildtools/reclient': {
244 'packages': [
245 {
246 'package': Var('reclient_package') + '${{platform}}',
247 'version': Var('reclient_version'),
248 }
249 ],
250 'dep_type': 'cipd',
251 },
252
Joanna Wangc183fcf2023-07-21 21:30:10 +0000253 # TODO(chromium:1458042): Remove these paths, when chromium builds files
Joanna Wangc1bd7b52023-08-02 18:42:17 +0000254 # have moved to third_party/lib*/src paths.
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000255 'buildtools/third_party/libc++/trunk':
Lei Zhang8d314172021-11-30 22:48:19 +0000256 Var('chromium_git') +
257 '/external/github.com/llvm/llvm-project/libcxx.git@' +
258 Var('libcxx_revision'),
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000259
260 'buildtools/third_party/libc++abi/trunk':
Lei Zhang8d314172021-11-30 22:48:19 +0000261 Var('chromium_git') +
262 '/external/github.com/llvm/llvm-project/libcxxabi.git@' +
263 Var('libcxxabi_revision'),
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000264
265 'buildtools/third_party/libunwind/trunk':
Lei Zhang8d314172021-11-30 22:48:19 +0000266 Var('chromium_git') +
267 '/external/github.com/llvm/llvm-project/libunwind.git@' +
268 Var('libunwind_revision'),
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000269
270 'buildtools/win': {
271 'packages': [
272 {
273 'package': 'gn/gn/windows-amd64',
274 'version': Var('gn_version'),
275 }
276 ],
277 'dep_type': 'cipd',
278 'condition': 'host_os == "win"',
279 },
280
Lei Zhangb1536552022-07-12 20:59:06 +0000281 'testing/corpus': {
282 'url': Var('pdfium_git') + '/pdfium_tests@' + Var('pdfium_tests_revision'),
283 'condition': 'checkout_testing_corpus',
284 },
Tom Sepez9519ab22015-03-16 15:27:19 -0700285
Lei Zhang32219d72021-09-29 21:13:27 +0000286 'third_party/abseil-cpp':
287 Var('chromium_git') + '/chromium/src/third_party/abseil-cpp.git@' +
288 Var('abseil_revision'),
289
K. Moon270f8d42023-07-06 00:16:55 +0000290 'third_party/android_toolchain': {
291 'packages': [
292 {
293 'package': 'chromium/third_party/android_toolchain/android_toolchain',
294 'version': Var('android_toolchain_version'),
295 },
296 ],
297 'condition': 'checkout_android_native_support',
298 'dep_type': 'cipd',
Lei Zhangcb7c1182019-03-21 17:48:18 +0000299 },
300
Lei Zhang73b4e772020-04-13 23:35:48 +0000301 'third_party/catapult': {
302 'url': Var('chromium_git') + '/catapult.git@' + Var('catapult_revision'),
Lei Zhangcb7c1182019-03-21 17:48:18 +0000303 'condition': 'checkout_android',
304 },
305
Hui Yingst9dc67f02023-06-01 23:02:35 +0000306 'third_party/cpu_features/src': {
307 'url': Var('chromium_git') +
308 '/external/github.com/google/cpu_features.git@' +
309 Var('cpu_features_revision'),
310 'condition': 'checkout_android',
311 },
312
Lei Zhangab384ed2017-12-21 08:00:44 +0000313 'third_party/depot_tools':
Lei Zhang73b4e772020-04-13 23:35:48 +0000314 Var('chromium_git') + '/chromium/tools/depot_tools.git@' +
Lei Zhangab384ed2017-12-21 08:00:44 +0000315 Var('depot_tools_revision'),
316
Lei Zhang73b4e772020-04-13 23:35:48 +0000317 'third_party/freetype/src':
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700318 Var('chromium_git') + '/chromium/src/third_party/freetype2.git@' +
319 Var('freetype_revision'),
320
Chong Gu411f2072023-06-28 22:01:35 +0000321 'third_party/fuchsia-gn-sdk': {
322 'url': Var('chromium_git') +
323 '/chromium/src/third_party/fuchsia-gn-sdk.git@' +
324 Var('fuchsia_gn_sdk_revision'),
325 'condition': 'checkout_fuchsia',
Lei Zhange52951a2022-05-04 20:49:01 +0000326 },
327
Lei Zhang73b4e772020-04-13 23:35:48 +0000328 'third_party/googletest/src':
329 Var('chromium_git') + '/external/github.com/google/googletest.git@' +
Lei Zhangc5514272018-03-22 05:19:14 +0000330 Var('gtest_revision'),
331
Lei Zhang73b4e772020-04-13 23:35:48 +0000332 'third_party/icu':
333 Var('chromium_git') + '/chromium/deps/icu.git@' + Var('icu_revision'),
dsinclair685bb882016-04-20 07:32:39 -0700334
Lei Zhang73b4e772020-04-13 23:35:48 +0000335 'third_party/instrumented_libraries':
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700336 Var('chromium_git') +
Lei Zhang73b4e772020-04-13 23:35:48 +0000337 '/chromium/src/third_party/instrumented_libraries.git@' +
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700338 Var('instrumented_lib_revision'),
weili62f36732016-10-14 16:59:40 -0700339
Lei Zhang73b4e772020-04-13 23:35:48 +0000340 'third_party/jinja2':
341 Var('chromium_git') + '/chromium/src/third_party/jinja2.git@' +
Dale Curtisc758d9d2017-04-06 14:10:09 -0700342 Var('jinja2_revision'),
343
Joanna Wangc1bd7b52023-08-02 18:42:17 +0000344 'third_party/libc++/src':
Joanna Wangc183fcf2023-07-21 21:30:10 +0000345 Var('chromium_git') +
346 '/external/github.com/llvm/llvm-project/libcxx.git@' +
347 Var('libcxx_revision'),
348
Joanna Wangc1bd7b52023-08-02 18:42:17 +0000349 'third_party/libc++abi/src':
Joanna Wangc183fcf2023-07-21 21:30:10 +0000350 Var('chromium_git') +
351 '/external/github.com/llvm/llvm-project/libcxxabi.git@' +
352 Var('libcxxabi_revision'),
353
Joanna Wangc1bd7b52023-08-02 18:42:17 +0000354 'third_party/libunwind/src':
Joanna Wangc183fcf2023-07-21 21:30:10 +0000355 Var('chromium_git') +
356 '/external/github.com/llvm/llvm-project/libunwind.git@' +
357 Var('libunwind_revision'),
358
Lei Zhang73b4e772020-04-13 23:35:48 +0000359 'third_party/libjpeg_turbo':
360 Var('chromium_git') + '/chromium/deps/libjpeg_turbo.git@' +
Lei Zhang0e5d8922017-04-06 21:43:50 -0700361 Var('jpeg_turbo_revision'),
362
K. Moonefd00c22022-11-15 23:02:57 +0000363 'third_party/libpng':
364 Var('chromium_git') + '/chromium/src/third_party/libpng.git@' +
365 Var('libpng_revision'),
366
Lei Zhang73b4e772020-04-13 23:35:48 +0000367 'third_party/markupsafe':
368 Var('chromium_git') + '/chromium/src/third_party/markupsafe.git@' +
369 Var('markupsafe_revision'),
370
Lei Zhangd749ccd2020-04-13 23:48:51 +0000371 'third_party/nasm':
372 Var('chromium_git') + '/chromium/deps/nasm.git@' +
373 Var('nasm_source_revision'),
374
Junji Watanabea0672342022-11-14 19:51:59 +0000375 'third_party/ninja': {
376 'packages': [
377 {
378 # https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja
379 'package': 'infra/3pp/tools/ninja/${{platform}}',
380 'version': Var('ninja_version'),
381 }
382 ],
383 'dep_type': 'cipd',
384 },
385
Lei Zhanga2ccb262022-07-26 00:56:23 +0000386 'third_party/skia': {
387 'url': Var('skia_git') + '/skia.git@' + Var('skia_revision'),
388 'condition': 'checkout_skia',
389 },
Tom Sepez22ee2482015-01-07 10:04:16 -0800390
Tom Anderson331f3eb2021-10-22 00:49:44 +0000391 'third_party/test_fonts':
392 Var('chromium_git') + '/chromium/src/third_party/test_fonts.git@' +
393 Var('test_fonts_revision'),
394
Lei Zhang73b4e772020-04-13 23:35:48 +0000395 'third_party/zlib':
396 Var('chromium_git') + '/chromium/src/third_party/zlib.git@' +
Lei Zhanga2af7de2017-03-31 13:33:12 -0700397 Var('zlib_revision'),
398
Lei Zhang73b4e772020-04-13 23:35:48 +0000399 'tools/clang':
Lei Zhang8d314172021-11-30 22:48:19 +0000400 Var('chromium_git') + '/chromium/src/tools/clang@' + Var('clang_revision'),
Oliver Changafaa98e2015-10-21 15:29:47 -0700401
Lei Zhang73b4e772020-04-13 23:35:48 +0000402 'tools/code_coverage':
403 Var('chromium_git') + '/chromium/src/tools/code_coverage.git@' +
Ryan Harrisona7b65b82018-05-30 19:56:11 +0000404 Var('code_coverage_revision'),
405
Lei Zhang73b4e772020-04-13 23:35:48 +0000406 'tools/memory':
407 Var('chromium_git') + '/chromium/src/tools/memory@' +
dsinclairfb969002016-05-31 12:55:32 -0700408 Var('tools_memory_revision'),
409
K. Moon643278d2022-10-06 20:41:42 +0000410 'tools/resultdb': {
411 'packages': [
412 {
413 'package': 'infra/tools/result_adapter/${{platform}}',
414 'version': Var('resultdb_version'),
415 },
416 ],
417 'dep_type': 'cipd',
418 },
419
Stephanie Kim606d0852021-03-04 16:02:41 +0000420 # TODO(crbug.com/pdfium/1650): Set up autorollers for goldctl.
421 'tools/skia_goldctl/linux': {
422 'packages': [
423 {
424 'package': 'skia/tools/goldctl/linux-amd64',
Lei Zhang74f88202022-03-01 17:58:58 +0000425 'version': 'eZ3k373CYgRxlu4JKph6e-_7xkP02swy_jePFFMiyIQC',
Stephanie Kim606d0852021-03-04 16:02:41 +0000426 }
427 ],
428 'dep_type': 'cipd',
429 'condition': 'checkout_linux',
430 },
431
Daniel Hosseinian68bba802021-12-31 01:23:54 +0000432 'tools/skia_goldctl/mac_amd64': {
433 'packages': [
434 {
435 'package': 'skia/tools/goldctl/mac-amd64',
Lei Zhang74f88202022-03-01 17:58:58 +0000436 'version': 'nHUjLIViYsLxRjv-zDdmzqT8p1R3VoyHq5gdGkKeMYwC',
Daniel Hosseinian68bba802021-12-31 01:23:54 +0000437 }
438 ],
439 'dep_type': 'cipd',
440 'condition': 'checkout_mac',
441 },
442
443 'tools/skia_goldctl/mac_arm64': {
444 'packages': [
445 {
446 'package': 'skia/tools/goldctl/mac-arm64',
Lei Zhang74f88202022-03-01 17:58:58 +0000447 'version': '-mc865SGfJAqreLZM6fkn8tgCJ7u5QLk5zm7r-ZRJ9gC',
Daniel Hosseinian68bba802021-12-31 01:23:54 +0000448 }
449 ],
450 'dep_type': 'cipd',
451 'condition': 'checkout_mac',
452 },
453
Stephanie Kim606d0852021-03-04 16:02:41 +0000454 'tools/skia_goldctl/win': {
455 'packages': [
456 {
457 'package': 'skia/tools/goldctl/windows-amd64',
Lei Zhang74f88202022-03-01 17:58:58 +0000458 'version': 'iEqqRADI7znrc6pG-MVnc5pBZwD25koILREPC6x2AFAC',
Stephanie Kim606d0852021-03-04 16:02:41 +0000459 }
460 ],
461 'dep_type': 'cipd',
462 'condition': 'checkout_win',
463 },
464
Lei Zhanga2ccb262022-07-26 00:56:23 +0000465 'v8': {
466 'url': Var('chromium_git') + '/v8/v8.git@' + Var('v8_revision'),
467 'condition': 'checkout_v8',
468 },
469
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700470}
471
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000472recursedeps = []
thestig3873f302016-09-28 17:39:26 -0700473
Tom Sepez4c0e2752015-06-05 13:46:08 -0700474include_rules = [
Lei Zhang8fec3e42015-11-04 15:32:02 -0800475 # Basic stuff that everyone can use.
476 # Note: public is not here because core cannot depend on public.
Lei Zhangf79e15b2019-03-19 23:15:50 +0000477 '+build/build_config.h',
Lei Zhang26170562018-04-17 17:01:52 +0000478 '+constants',
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700479 '+testing',
480 '+third_party/base',
Lei Zhang32219d72021-09-29 21:13:27 +0000481
482 # Abseil features must be allowlisted explicitly for now. See Chromium's
483 # //styleguide/c++/c++11.html. Allowed features' headers will be listed
484 # explicitly here.
485 '-absl',
486 '-third_party/abseil-cpp',
487 '+third_party/abseil-cpp/absl/types/optional.h',
488 '+third_party/abseil-cpp/absl/types/variant.h',
Tom Sepez4c0e2752015-06-05 13:46:08 -0700489]
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700490
weili90c964f2016-04-22 15:25:14 -0700491specific_include_rules = {
492 # Allow embedder tests to use public APIs.
Lei Zhang73b4e772020-04-13 23:35:48 +0000493 '(.*embeddertest\.cpp)': [
494 '+public',
weili90c964f2016-04-22 15:25:14 -0700495 ]
496}
497
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700498hooks = [
dsinclair685bb882016-04-20 07:32:39 -0700499 {
Ankit Kumar5ef1d5c2020-07-01 06:57:13 +0000500 # Ensure that the DEPS'd "depot_tools" has its self-update capability
501 # disabled.
502 'name': 'disable_depot_tools_selfupdate',
503 'pattern': '.',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000504 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000505 'third_party/depot_tools/update_depot_tools_toggle.py',
Ankit Kumar5ef1d5c2020-07-01 06:57:13 +0000506 '--disable',
507 ],
508 },
509 {
Lei Zhang4b1dea82019-02-08 00:39:06 +0000510 # Case-insensitivity for the Win SDK. Must run before win_toolchain below.
511 'name': 'ciopfs_linux',
512 'pattern': '.',
513 'condition': 'checkout_win and host_os == "linux"',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000514 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000515 'third_party/depot_tools/download_from_google_storage.py',
Lei Zhang4b1dea82019-02-08 00:39:06 +0000516 '--no_resume',
517 '--no_auth',
518 '--bucket', 'chromium-browser-clang/ciopfs',
Ankit Kumar01846f72020-07-01 07:37:23 +0000519 '-s', 'build/ciopfs.sha1',
Lei Zhang4b1dea82019-02-08 00:39:06 +0000520 ]
521 },
522 {
523 # Update the Windows toolchain if necessary. Must run before 'clang' below.
524 'name': 'win_toolchain',
525 'pattern': '.',
526 'condition': 'checkout_win',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000527 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'],
Lei Zhang4b1dea82019-02-08 00:39:06 +0000528 },
529 {
530 # Update the Mac toolchain if necessary.
531 'name': 'mac_toolchain',
532 'pattern': '.',
Lei Zhang791eaff2020-07-28 19:44:41 +0000533 'condition': 'checkout_mac',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000534 'action': ['python3', 'build/mac_toolchain.py'],
Lei Zhang4b1dea82019-02-08 00:39:06 +0000535 },
Lei Zhang96122852022-05-04 00:43:55 +0000536 # Pull dsymutil binaries using checked-in hashes.
537 {
538 'name': 'dsymutil_mac_arm64',
539 'pattern': '.',
540 'condition': 'host_os == "mac" and host_cpu == "arm64"',
541 'action': [ 'python3',
542 'third_party/depot_tools/download_from_google_storage.py',
543 '--no_resume',
544 '--no_auth',
545 '--bucket', 'chromium-browser-clang',
546 '-s', 'tools/clang/dsymutil/bin/dsymutil.arm64.sha1',
547 '-o', 'tools/clang/dsymutil/bin/dsymutil',
548 ],
549 },
550 {
551 'name': 'dsymutil_mac_x64',
552 'pattern': '.',
553 'condition': 'host_os == "mac" and host_cpu == "x64"',
554 'action': [ 'python3',
555 'third_party/depot_tools/download_from_google_storage.py',
556 '--no_resume',
557 '--no_auth',
558 '--bucket', 'chromium-browser-clang',
559 '-s', 'tools/clang/dsymutil/bin/dsymutil.x64.sha1',
560 '-o', 'tools/clang/dsymutil/bin/dsymutil',
561 ],
562 },
K. Moon0d7c59f2020-04-24 19:26:17 +0000563 # Pull clang-format binaries using checked-in hashes.
Lei Zhang4b1dea82019-02-08 00:39:06 +0000564 {
Tom Sepeze9446f82015-08-13 15:51:43 -0700565 'name': 'clang_format_win',
566 'pattern': '.',
K. Moon0d7c59f2020-04-24 19:26:17 +0000567 'condition': 'host_os == "win"',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000568 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000569 'third_party/depot_tools/download_from_google_storage.py',
Tom Sepeze9446f82015-08-13 15:51:43 -0700570 '--no_resume',
Tom Sepeze9446f82015-08-13 15:51:43 -0700571 '--no_auth',
572 '--bucket', 'chromium-clang-format',
Ankit Kumar01846f72020-07-01 07:37:23 +0000573 '-s', 'buildtools/win/clang-format.exe.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700574 ],
575 },
576 {
Alan Screen4678e4a2022-04-14 01:59:14 +0000577 'name': 'clang_format_mac_x64',
Tom Sepeze9446f82015-08-13 15:51:43 -0700578 'pattern': '.',
Alan Screen4678e4a2022-04-14 01:59:14 +0000579 'condition': 'host_os == "mac" and host_cpu == "x64"',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000580 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000581 'third_party/depot_tools/download_from_google_storage.py',
Tom Sepeze9446f82015-08-13 15:51:43 -0700582 '--no_resume',
Tom Sepeze9446f82015-08-13 15:51:43 -0700583 '--no_auth',
584 '--bucket', 'chromium-clang-format',
Alan Screen4678e4a2022-04-14 01:59:14 +0000585 '-s', 'buildtools/mac/clang-format.x64.sha1',
K. Moonb96b71b2022-04-20 17:15:28 +0000586 '-o', 'buildtools/mac/clang-format',
Alan Screen4678e4a2022-04-14 01:59:14 +0000587 ],
588 },
589 {
590 'name': 'clang_format_mac_arm64',
591 'pattern': '.',
592 'condition': 'host_os == "mac" and host_cpu == "arm64"',
593 'action': [ 'python3',
K. Moonb96b71b2022-04-20 17:15:28 +0000594 'third_party/depot_tools/download_from_google_storage.py',
Alan Screen4678e4a2022-04-14 01:59:14 +0000595 '--no_resume',
596 '--no_auth',
597 '--bucket', 'chromium-clang-format',
K. Moonb96b71b2022-04-20 17:15:28 +0000598 '-s', 'buildtools/mac/clang-format.arm64.sha1',
599 '-o', 'buildtools/mac/clang-format',
Tom Sepeze9446f82015-08-13 15:51:43 -0700600 ],
601 },
602 {
603 'name': 'clang_format_linux',
604 'pattern': '.',
K. Moon0d7c59f2020-04-24 19:26:17 +0000605 'condition': 'host_os == "linux"',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000606 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000607 'third_party/depot_tools/download_from_google_storage.py',
Tom Sepeze9446f82015-08-13 15:51:43 -0700608 '--no_resume',
Tom Sepeze9446f82015-08-13 15:51:43 -0700609 '--no_auth',
610 '--bucket', 'chromium-clang-format',
Ankit Kumar01846f72020-07-01 07:37:23 +0000611 '-s', 'buildtools/linux64/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700612 ],
613 },
Oliver Changafaa98e2015-10-21 15:29:47 -0700614 {
Lei Zhang4b1dea82019-02-08 00:39:06 +0000615 # Note: On Win, this should run after win_toolchain, as it may use it.
Oliver Changafaa98e2015-10-21 15:29:47 -0700616 'name': 'clang',
617 'pattern': '.',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000618 'action': ['python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000619 'tools/clang/scripts/update.py'
dsinclair685bb882016-04-20 07:32:39 -0700620 ],
Oliver Changafaa98e2015-10-21 15:29:47 -0700621 },
weili9a1b6652016-04-28 15:26:45 -0700622 {
Lei Zhang728127c2018-02-16 19:26:20 +0000623 'name': 'sysroot_arm',
Tom Anderson19817af2017-07-18 18:00:18 -0700624 'pattern': '.',
Lei Zhang728127c2018-02-16 19:26:20 +0000625 'condition': 'checkout_linux and checkout_arm',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000626 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000627 '--arch=arm'],
628 },
629 {
630 'name': 'sysroot_arm64',
631 'pattern': '.',
632 'condition': 'checkout_linux and checkout_arm64',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000633 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000634 '--arch=arm64'],
635 },
636 {
637 'name': 'sysroot_x86',
638 'pattern': '.',
639 'condition': 'checkout_linux and (checkout_x86 or checkout_x64)',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000640 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000641 '--arch=x86'],
642 },
643 {
644 'name': 'sysroot_mips',
645 'pattern': '.',
646 'condition': 'checkout_linux and checkout_mips',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000647 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000648 '--arch=mips'],
649 },
650 {
651 'name': 'sysroot_x64',
652 'pattern': '.',
653 'condition': 'checkout_linux and checkout_x64',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000654 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000655 '--arch=x64'],
Tom Anderson19817af2017-07-18 18:00:18 -0700656 },
657 {
Tom Anderson331f3eb2021-10-22 00:49:44 +0000658 'name': 'test_fonts',
659 'pattern': '.',
660 'action': [ 'python3',
661 'third_party/depot_tools/download_from_google_storage.py',
662 '--no_resume',
663 '--extract',
664 '--no_auth',
665 '--bucket', 'chromium-fonts',
666 '-s', 'third_party/test_fonts/test_fonts.tar.gz.sha1',
667 ],
668 },
669 {
Lei Zhangf5057c72023-03-17 15:58:46 +0000670 'name': 'msan_chained_origins_focal',
Lei Zhangab384ed2017-12-21 08:00:44 +0000671 'pattern': '.',
672 'condition': 'checkout_instrumented_libraries',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000673 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000674 'third_party/depot_tools/download_from_google_storage.py',
Lei Zhang73b4e772020-04-13 23:35:48 +0000675 '--no_resume',
676 '--no_auth',
677 '--bucket', 'chromium-instrumented-libraries',
Lei Zhangf5057c72023-03-17 15:58:46 +0000678 '-s', 'third_party/instrumented_libraries/binaries/msan-chained-origins-focal.tgz.sha1',
Lei Zhangab384ed2017-12-21 08:00:44 +0000679 ],
680 },
681 {
Lei Zhangf5057c72023-03-17 15:58:46 +0000682 'name': 'msan_no_origins_focal',
Lei Zhangab384ed2017-12-21 08:00:44 +0000683 'pattern': '.',
684 'condition': 'checkout_instrumented_libraries',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000685 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000686 'third_party/depot_tools/download_from_google_storage.py',
Lei Zhang73b4e772020-04-13 23:35:48 +0000687 '--no_resume',
688 '--no_auth',
689 '--bucket', 'chromium-instrumented-libraries',
Lei Zhangf5057c72023-03-17 15:58:46 +0000690 '-s', 'third_party/instrumented_libraries/binaries/msan-no-origins-focal.tgz.sha1',
Lei Zhangab384ed2017-12-21 08:00:44 +0000691 ],
Tom Anderson4e8edf52017-03-30 18:27:21 -0700692 },
Lei Zhangd3220622018-08-27 17:43:10 +0000693 {
694 # Update LASTCHANGE.
695 'name': 'lastchange',
696 'pattern': '.',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000697 'action': ['python3', 'build/util/lastchange.py',
Ankit Kumar01846f72020-07-01 07:37:23 +0000698 '-o', 'build/util/LASTCHANGE'],
Lei Zhangd3220622018-08-27 17:43:10 +0000699 },
Chong Gu411f2072023-06-28 22:01:35 +0000700 {
701 'name': 'Download Fuchsia SDK from GCS',
702 'pattern': '.',
703 'condition': 'checkout_fuchsia',
704 'action': [
705 'python3',
706 'build/fuchsia/update_sdk.py',
707 '--cipd-prefix={fuchsia_sdk_cipd_prefix}',
708 '--version={fuchsia_version}',
709 ],
710 },
Lei Zhange293c092023-07-06 21:55:51 +0000711 # Download remote exec cfg files
712 {
713 'name': 'fetch_reclient_cfgs',
714 'pattern': '.',
715 'condition': 'download_remoteexec_cfg',
716 'action': ['python3',
717 'buildtools/reclient_cfgs/fetch_reclient_cfgs.py',
718 '--rbe_instance',
719 Var('rbe_instance'),
720 '--reproxy_cfg_template',
721 'reproxy.cfg.template',
722 '--rewrapper_cfg_project',
723 Var('rewrapper_cfg_project'),
724 '--quiet',
725 '--hook',
726 ],
727 },
Tom Sepeze9446f82015-08-13 15:51:43 -0700728]