blob: 33ff27dcde374ff240e1e05ec4a6f1dff39929e6 [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'
Lei Zhang5dc5c5b2020-07-06 22:50:02 +00004gclient_gn_args = [
Lei Zhang4d2c91b2020-07-07 00:31:34 +00005 'checkout_google_benchmark',
Lei Zhang5dc5c5b2020-07-06 22:50:02 +00006]
7
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 Zhang73b4e772020-04-13 23:35:48 +000010 # chromium waterfalls. This var can be also be set to 'small', in order
Lei Zhangab384ed2017-12-21 08:00:44 +000011 # to skip things are not strictly needed to build chromium for development
12 # purposes.
13 'checkout_configuration': 'default',
14
Lei Zhang4d2c91b2020-07-07 00:31:34 +000015 # By default, do not check out Google Benchmark. This only exists to satisfy
16 # V8-enabled builds that require this variable. Running Google Benchmark is
17 # not supported with PDFium.
18 'checkout_google_benchmark': False,
19
Lei Zhang10e117e2019-01-19 05:54:34 +000020 'checkout_instrumented_libraries': 'checkout_linux and checkout_configuration != "small"',
Lei Zhangab384ed2017-12-21 08:00:44 +000021
Dan Sinclaira03c3432016-03-16 15:35:20 -040022 'chromium_git': 'https://chromium.googlesource.com',
23 'pdfium_git': 'https://pdfium.googlesource.com',
24
Lei Zhang5b02a0a2020-02-21 18:57:27 +000025 # Three lines of non-changing comments so that
26 # the commit queue can handle CLs rolling android_ndk
27 # and whatever else without interference from each other.
Hui Yingst3c2f3502021-03-09 00:16:48 +000028 'android_ndk_revision': '401019bf85744311b26c88ced255cd53401af8b7',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000029 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000030 # the commit queue can handle CLs rolling build
31 # and whatever else without interference from each other.
Alan Screenda9d3672021-06-15 03:58:16 +000032 'build_revision': 'e6942ef1c557b2ae17d993ebf83d8b3c10cf3061',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000033 # Three lines of non-changing comments so that
34 # the commit queue can handle CLs rolling buildtools
35 # and whatever else without interference from each other.
Alan Screen9c6802a2021-06-15 18:59:49 +000036 'buildtools_revision': 'be7dcbc36110b9381f228b8e4ca73ca1db9bf21a',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000037 # Three lines of non-changing comments so that
38 # the commit queue can handle CLs rolling catapult
39 # and whatever else without interference from each other.
pdfium-autorolld06b0fb2021-06-28 04:57:50 +000040 'catapult_revision': 'e8292371ff453eadd9803a2e9cb218a86e635b69',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000041 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +000042 # the commit queue can handle CLs rolling clang format
43 # and whatever else without interference from each other.
44 'clang_format_revision': '99803d74e35962f63a775f29477882afd4d57d94',
45 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000046 # the commit queue can handle CLs rolling clang
47 # and whatever else without interference from each other.
Daniel Hosseinianbc18e902021-07-08 01:19:24 +000048 'clang_revision': 'ccc7ba229ab7e050d8276a442cf1f9ad25c846cc',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000049 # Three lines of non-changing comments so that
Lei Zhang38871db2020-02-28 22:53:38 +000050 # the commit queue can handle CLs rolling clang_dsymutil
51 # and whatever else without interference from each other.
52 'clang_dsymutil_revision': 'M56jPzDv1620Rnm__jTMYS62Zi8rxHVq7yw0qeBFEgkC',
53 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000054 # the commit queue can handle CLs rolling code_coverage
55 # and whatever else without interference from each other.
pdfium-autoroll38994102021-07-19 05:02:58 +000056 'code_coverage_revision': '69c691b70f542e679bf51182e75d5dedfc59187b',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000057 # Three lines of non-changing comments so that
58 # the commit queue can handle CLs rolling depot_tools
59 # and whatever else without interference from each other.
Daniel Hosseinian2bf172c2021-07-07 23:04:46 +000060 'depot_tools_revision': 'ac6f623a29dac2d7b67b9439339dff859c2110c0',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000061 # Three lines of non-changing comments so that
62 # the commit queue can handle CLs rolling freetype
63 # and whatever else without interference from each other.
Daniel Hosseinian082fdba2021-07-07 23:26:56 +000064 'freetype_revision': 'd3dc2da9b27af5b90575d62989389cc65fe7977c',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000065 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +000066 # the commit queue can handle CLs rolling GN CIPD package version
67 # and whatever else without interference from each other.
Daniel Hosseinian43be4432021-07-08 02:53:44 +000068 'gn_version': 'git_revision:31f2bba8aafa8015ca5761100a21f17c2d741062',
Hui Yingste0f5c5b2021-04-02 21:39:14 +000069 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000070 # the commit queue can handle CLs rolling gtest
71 # and whatever else without interference from each other.
Daniel Hosseinian22c468e2021-07-07 23:10:06 +000072 'gtest_revision': '4ec4cd23f486bf70efcc5d2caa40f24368f752e3',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000073 # Three lines of non-changing comments so that
74 # the commit queue can handle CLs rolling icu
75 # and whatever else without interference from each other.
Alan Screen51438f42021-06-11 16:59:59 +000076 'icu_revision': 'a0718d4f121727e30b8d52c7a189ebf5ab52421f',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000077 # Three lines of non-changing comments so that
78 # the commit queue can handle CLs rolling instrumented_lib
79 # and whatever else without interference from each other.
Alan Screend6aa5e52021-06-11 23:06:39 +000080 'instrumented_lib_revision': '4ae2535e8e894c3cd81d46aacdaf151b5df30709',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000081 # Three lines of non-changing comments so that
82 # the commit queue can handle CLs rolling jinja2
83 # and whatever else without interference from each other.
pdfium-autorollee64a852021-07-12 04:56:24 +000084 'jinja2_revision': '7c54c1f227727e0c4c1d3dc19dd71cd601a2db95',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000085 # Three lines of non-changing comments so that
86 # the commit queue can handle CLs rolling jpeg_turbo
87 # and whatever else without interference from each other.
Alan Screen6e46de32021-06-11 17:27:20 +000088 'jpeg_turbo_revision': 'b7bef8c05b7cdb1a038ae271a2c2b6647af4c879',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000089 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +000090 # the commit queue can handle CLs rolling libc++
91 # and whatever else without interference from each other.
92 # If you change this, also update the libc++ revision in
93 # //buildtools/deps_revisions.gni.
94 'libcxx_revision': '8fa87946779682841e21e2da977eccfb6cb3bded',
95 # Three lines of non-changing comments so that
96 # the commit queue can handle CLs rolling libc++abi
97 # and whatever else without interference from each other.
Alan Screenebc2bb32021-06-11 21:39:29 +000098 'libcxxabi_revision': 'e5f25a39b9decc487902de82f39ae56b4d634d7c',
Hui Yingste0f5c5b2021-04-02 21:39:14 +000099 # Three lines of non-changing comments so that
100 # the commit queue can handle CLs rolling libunwind
101 # and whatever else without interference from each other.
Alan Screenc1359612021-06-12 01:16:38 +0000102 'libunwind_revision': '950faeeabc1ee25569e62ec4ce749f013169482d',
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000103 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000104 # the commit queue can handle CLs rolling markupsafe
105 # and whatever else without interference from each other.
pdfium-autoroll51fc7452021-07-12 05:08:40 +0000106 'markupsafe_revision': '1b882ef6372b58bfd55a3285f37ed801be9137cd',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000107 # Three lines of non-changing comments so that
Lei Zhangd749ccd2020-04-13 23:48:51 +0000108 # the commit queue can handle CLs rolling nasm_source
109 # and whatever else without interference from each other.
Alan Screen9f79a302021-06-11 17:00:59 +0000110 'nasm_source_revision': 'e9be5fd6d723a435ca2da162f9e0ffcb688747c1',
Lei Zhangd749ccd2020-04-13 23:48:51 +0000111 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000112 # the commit queue can handle CLs rolling pdfium_tests
113 # and whatever else without interference from each other.
Tom Sepezd661dc72021-06-24 20:22:19 +0000114 'pdfium_tests_revision': 'b67d79fef155c0c44be240a4fde07f15adac5a4f',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000115 # Three lines of non-changing comments so that
116 # the commit queue can handle CLs rolling skia
117 # and whatever else without interference from each other.
Alan Screenc1ee4142021-06-11 21:59:29 +0000118 'skia_revision': '10e7e77909c5be806180b789421d1d2c6d03a96a',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000119 # Three lines of non-changing comments so that
120 # the commit queue can handle CLs rolling tools_memory
121 # and whatever else without interference from each other.
Daniel Hosseinianbefae542021-07-07 23:31:46 +0000122 'tools_memory_revision': '7235d59a2b9a370731802970c0ea3fa1a4933289',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000123 # Three lines of non-changing comments so that
124 # the commit queue can handle CLs rolling trace_event
125 # and whatever else without interference from each other.
Lei Zhang87b50552021-05-06 16:28:22 +0000126 'trace_event_revision': 'd5bb24e5d9802c8c917fcaa4375d5239a586c168',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000127 # Three lines of non-changing comments so that
128 # the commit queue can handle CLs rolling v8
129 # and whatever else without interference from each other.
Daniel Hosseiniane1565792021-07-07 23:57:56 +0000130 'v8_revision': '52ce5a351cf8d8919e728248dbf739e9cbec05ff',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000131 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000132 # the commit queue can handle CLs rolling zlib
133 # and whatever else without interference from each other.
Alan Screen65b176e2021-06-11 21:04:27 +0000134 'zlib_revision': '00ade15d946d72f75c786dc2e66c419a9d99e2ad',
Dan Sinclaira03c3432016-03-16 15:35:20 -0400135}
136
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700137deps = {
Lei Zhang73b4e772020-04-13 23:35:48 +0000138 'base/trace_event/common':
139 Var('chromium_git') + '/chromium/src/base/trace_event/common.git@' +
thestig5fec5972016-08-30 06:39:40 -0700140 Var('trace_event_revision'),
141
Lei Zhang73b4e772020-04-13 23:35:48 +0000142 'build':
143 Var('chromium_git') + '/chromium/src/build.git@' + Var('build_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700144
Lei Zhang73b4e772020-04-13 23:35:48 +0000145 'buildtools':
146 Var('chromium_git') + '/chromium/src/buildtools.git@' +
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700147 Var('buildtools_revision'),
Tom Sepez4c0e2752015-06-05 13:46:08 -0700148
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000149 'buildtools/clang_format/script':
150 Var('chromium_git') + '/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@' +
151 Var('clang_format_revision'),
152
153 'buildtools/linux64': {
154 'packages': [
155 {
156 'package': 'gn/gn/linux-amd64',
157 'version': Var('gn_version'),
158 }
159 ],
160 'dep_type': 'cipd',
161 'condition': 'host_os == "linux"',
162 },
163
164 'buildtools/mac': {
165 'packages': [
166 {
167 'package': 'gn/gn/mac-${{arch}}',
168 'version': Var('gn_version'),
169 }
170 ],
171 'dep_type': 'cipd',
172 'condition': 'host_os == "mac"',
173 },
174
175 'buildtools/third_party/libc++/trunk':
176 Var('chromium_git') + '/external/github.com/llvm/llvm-project/libcxx.git' + '@' +
177 Var('libcxx_revision'),
178
179 'buildtools/third_party/libc++abi/trunk':
180 Var('chromium_git') + '/external/github.com/llvm/llvm-project/libcxxabi.git' + '@' +
181 Var('libcxxabi_revision'),
182
183 'buildtools/third_party/libunwind/trunk':
184 Var('chromium_git') + '/external/github.com/llvm/llvm-project/libunwind.git' + '@' +
185 Var('libunwind_revision'),
186
187 'buildtools/win': {
188 'packages': [
189 {
190 'package': 'gn/gn/windows-amd64',
191 'version': Var('gn_version'),
192 }
193 ],
194 'dep_type': 'cipd',
195 'condition': 'host_os == "win"',
196 },
197
Lei Zhang73b4e772020-04-13 23:35:48 +0000198 'testing/corpus':
199 Var('pdfium_git') + '/pdfium_tests@' + Var('pdfium_tests_revision'),
Tom Sepez9519ab22015-03-16 15:27:19 -0700200
Lei Zhang73b4e772020-04-13 23:35:48 +0000201 'third_party/android_ndk': {
202 'url': Var('chromium_git') + '/android_ndk.git@' +
203 Var('android_ndk_revision'),
Lei Zhangcb7c1182019-03-21 17:48:18 +0000204 'condition': 'checkout_android',
205 },
206
Lei Zhang73b4e772020-04-13 23:35:48 +0000207 'third_party/catapult': {
208 'url': Var('chromium_git') + '/catapult.git@' + Var('catapult_revision'),
Lei Zhangcb7c1182019-03-21 17:48:18 +0000209 'condition': 'checkout_android',
210 },
211
Lei Zhangab384ed2017-12-21 08:00:44 +0000212 'third_party/depot_tools':
Lei Zhang73b4e772020-04-13 23:35:48 +0000213 Var('chromium_git') + '/chromium/tools/depot_tools.git@' +
Lei Zhangab384ed2017-12-21 08:00:44 +0000214 Var('depot_tools_revision'),
215
Lei Zhang73b4e772020-04-13 23:35:48 +0000216 'third_party/freetype/src':
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700217 Var('chromium_git') + '/chromium/src/third_party/freetype2.git@' +
218 Var('freetype_revision'),
219
Lei Zhang73b4e772020-04-13 23:35:48 +0000220 'third_party/googletest/src':
221 Var('chromium_git') + '/external/github.com/google/googletest.git@' +
Lei Zhangc5514272018-03-22 05:19:14 +0000222 Var('gtest_revision'),
223
Lei Zhang73b4e772020-04-13 23:35:48 +0000224 'third_party/icu':
225 Var('chromium_git') + '/chromium/deps/icu.git@' + Var('icu_revision'),
dsinclair685bb882016-04-20 07:32:39 -0700226
Lei Zhang73b4e772020-04-13 23:35:48 +0000227 'third_party/instrumented_libraries':
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700228 Var('chromium_git') +
Lei Zhang73b4e772020-04-13 23:35:48 +0000229 '/chromium/src/third_party/instrumented_libraries.git@' +
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700230 Var('instrumented_lib_revision'),
weili62f36732016-10-14 16:59:40 -0700231
Lei Zhang73b4e772020-04-13 23:35:48 +0000232 'third_party/jinja2':
233 Var('chromium_git') + '/chromium/src/third_party/jinja2.git@' +
Dale Curtisc758d9d2017-04-06 14:10:09 -0700234 Var('jinja2_revision'),
235
Lei Zhang73b4e772020-04-13 23:35:48 +0000236 'third_party/libjpeg_turbo':
237 Var('chromium_git') + '/chromium/deps/libjpeg_turbo.git@' +
Lei Zhang0e5d8922017-04-06 21:43:50 -0700238 Var('jpeg_turbo_revision'),
239
Lei Zhang73b4e772020-04-13 23:35:48 +0000240 'third_party/markupsafe':
241 Var('chromium_git') + '/chromium/src/third_party/markupsafe.git@' +
242 Var('markupsafe_revision'),
243
Lei Zhangd749ccd2020-04-13 23:48:51 +0000244 'third_party/nasm':
245 Var('chromium_git') + '/chromium/deps/nasm.git@' +
246 Var('nasm_source_revision'),
247
Lei Zhang73b4e772020-04-13 23:35:48 +0000248 'third_party/skia':
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700249 Var('chromium_git') + '/skia.git@' + Var('skia_revision'),
Tom Sepez22ee2482015-01-07 10:04:16 -0800250
Lei Zhang73b4e772020-04-13 23:35:48 +0000251 'third_party/zlib':
252 Var('chromium_git') + '/chromium/src/third_party/zlib.git@' +
Lei Zhanga2af7de2017-03-31 13:33:12 -0700253 Var('zlib_revision'),
254
Lei Zhang73b4e772020-04-13 23:35:48 +0000255 'tools/clang':
256 Var('chromium_git') + '/chromium/src/tools/clang@' + Var('clang_revision'),
Oliver Changafaa98e2015-10-21 15:29:47 -0700257
Lei Zhang38871db2020-02-28 22:53:38 +0000258 'tools/clang/dsymutil': {
259 'packages': [
260 {
261 'package': 'chromium/llvm-build-tools/dsymutil',
262 'version': Var('clang_dsymutil_revision'),
263 }
264 ],
265 'condition': 'checkout_mac or checkout_ios',
266 'dep_type': 'cipd',
267 },
268
Lei Zhang73b4e772020-04-13 23:35:48 +0000269 'tools/code_coverage':
270 Var('chromium_git') + '/chromium/src/tools/code_coverage.git@' +
Ryan Harrisona7b65b82018-05-30 19:56:11 +0000271 Var('code_coverage_revision'),
272
Lei Zhang73b4e772020-04-13 23:35:48 +0000273 'tools/memory':
274 Var('chromium_git') + '/chromium/src/tools/memory@' +
dsinclairfb969002016-05-31 12:55:32 -0700275 Var('tools_memory_revision'),
276
Stephanie Kim606d0852021-03-04 16:02:41 +0000277 # TODO(crbug.com/pdfium/1650): Set up autorollers for goldctl.
278 'tools/skia_goldctl/linux': {
279 'packages': [
280 {
281 'package': 'skia/tools/goldctl/linux-amd64',
Stephanie Kim0314ade2021-03-11 00:27:35 +0000282 'version': 'git_revision:11b8d9e1b976c7ef4dd60521c87d00a8970f889b',
Stephanie Kim606d0852021-03-04 16:02:41 +0000283 }
284 ],
285 'dep_type': 'cipd',
286 'condition': 'checkout_linux',
287 },
288
289 'tools/skia_goldctl/mac': {
290 'packages': [
291 {
292 'package': 'skia/tools/goldctl/mac-amd64',
Stephanie Kim0314ade2021-03-11 00:27:35 +0000293 'version': 'git_revision:11b8d9e1b976c7ef4dd60521c87d00a8970f889b',
Stephanie Kim606d0852021-03-04 16:02:41 +0000294 }
295 ],
296 'dep_type': 'cipd',
297 'condition': 'checkout_mac',
298 },
299
300 'tools/skia_goldctl/win': {
301 'packages': [
302 {
303 'package': 'skia/tools/goldctl/windows-amd64',
Stephanie Kim0314ade2021-03-11 00:27:35 +0000304 'version': 'git_revision:11b8d9e1b976c7ef4dd60521c87d00a8970f889b',
Stephanie Kim606d0852021-03-04 16:02:41 +0000305 }
306 ],
307 'dep_type': 'cipd',
308 'condition': 'checkout_win',
309 },
310
Lei Zhang73b4e772020-04-13 23:35:48 +0000311 'v8':
312 Var('chromium_git') + '/v8/v8.git@' + Var('v8_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700313}
314
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000315recursedeps = []
thestig3873f302016-09-28 17:39:26 -0700316
Tom Sepez4c0e2752015-06-05 13:46:08 -0700317include_rules = [
Lei Zhang8fec3e42015-11-04 15:32:02 -0800318 # Basic stuff that everyone can use.
319 # Note: public is not here because core cannot depend on public.
Lei Zhangf79e15b2019-03-19 23:15:50 +0000320 '+build/build_config.h',
Lei Zhang26170562018-04-17 17:01:52 +0000321 '+constants',
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700322 '+testing',
323 '+third_party/base',
Tom Sepez4c0e2752015-06-05 13:46:08 -0700324]
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700325
weili90c964f2016-04-22 15:25:14 -0700326specific_include_rules = {
327 # Allow embedder tests to use public APIs.
Lei Zhang73b4e772020-04-13 23:35:48 +0000328 '(.*embeddertest\.cpp)': [
329 '+public',
weili90c964f2016-04-22 15:25:14 -0700330 ]
331}
332
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700333hooks = [
dsinclair685bb882016-04-20 07:32:39 -0700334 {
Ankit Kumar5ef1d5c2020-07-01 06:57:13 +0000335 # Ensure that the DEPS'd "depot_tools" has its self-update capability
336 # disabled.
337 'name': 'disable_depot_tools_selfupdate',
338 'pattern': '.',
339 'action': [ 'python',
Ankit Kumar01846f72020-07-01 07:37:23 +0000340 'third_party/depot_tools/update_depot_tools_toggle.py',
Ankit Kumar5ef1d5c2020-07-01 06:57:13 +0000341 '--disable',
342 ],
343 },
344 {
Lei Zhang4b1dea82019-02-08 00:39:06 +0000345 # Case-insensitivity for the Win SDK. Must run before win_toolchain below.
346 'name': 'ciopfs_linux',
347 'pattern': '.',
348 'condition': 'checkout_win and host_os == "linux"',
349 'action': [ 'python',
Ankit Kumar01846f72020-07-01 07:37:23 +0000350 'third_party/depot_tools/download_from_google_storage.py',
Lei Zhang4b1dea82019-02-08 00:39:06 +0000351 '--no_resume',
352 '--no_auth',
353 '--bucket', 'chromium-browser-clang/ciopfs',
Ankit Kumar01846f72020-07-01 07:37:23 +0000354 '-s', 'build/ciopfs.sha1',
Lei Zhang4b1dea82019-02-08 00:39:06 +0000355 ]
356 },
357 {
358 # Update the Windows toolchain if necessary. Must run before 'clang' below.
359 'name': 'win_toolchain',
360 'pattern': '.',
361 'condition': 'checkout_win',
Ankit Kumar01846f72020-07-01 07:37:23 +0000362 'action': ['python', 'build/vs_toolchain.py', 'update', '--force'],
Lei Zhang4b1dea82019-02-08 00:39:06 +0000363 },
364 {
365 # Update the Mac toolchain if necessary.
366 'name': 'mac_toolchain',
367 'pattern': '.',
Lei Zhang791eaff2020-07-28 19:44:41 +0000368 'condition': 'checkout_mac',
Nico Weber43b36292020-11-17 16:50:44 +0000369 'action': ['python', 'build/mac_toolchain.py'],
Lei Zhang4b1dea82019-02-08 00:39:06 +0000370 },
K. Moon0d7c59f2020-04-24 19:26:17 +0000371 # Pull clang-format binaries using checked-in hashes.
Lei Zhang4b1dea82019-02-08 00:39:06 +0000372 {
Tom Sepeze9446f82015-08-13 15:51:43 -0700373 'name': 'clang_format_win',
374 'pattern': '.',
K. Moon0d7c59f2020-04-24 19:26:17 +0000375 'condition': 'host_os == "win"',
376 'action': [ 'python',
Ankit Kumar01846f72020-07-01 07:37:23 +0000377 'third_party/depot_tools/download_from_google_storage.py',
Tom Sepeze9446f82015-08-13 15:51:43 -0700378 '--no_resume',
Tom Sepeze9446f82015-08-13 15:51:43 -0700379 '--no_auth',
380 '--bucket', 'chromium-clang-format',
Ankit Kumar01846f72020-07-01 07:37:23 +0000381 '-s', 'buildtools/win/clang-format.exe.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700382 ],
383 },
384 {
385 'name': 'clang_format_mac',
386 'pattern': '.',
K. Moon0d7c59f2020-04-24 19:26:17 +0000387 'condition': 'host_os == "mac"',
388 'action': [ 'python',
Ankit Kumar01846f72020-07-01 07:37:23 +0000389 'third_party/depot_tools/download_from_google_storage.py',
Tom Sepeze9446f82015-08-13 15:51:43 -0700390 '--no_resume',
Tom Sepeze9446f82015-08-13 15:51:43 -0700391 '--no_auth',
392 '--bucket', 'chromium-clang-format',
Ankit Kumar01846f72020-07-01 07:37:23 +0000393 '-s', 'buildtools/mac/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700394 ],
395 },
396 {
397 'name': 'clang_format_linux',
398 'pattern': '.',
K. Moon0d7c59f2020-04-24 19:26:17 +0000399 'condition': 'host_os == "linux"',
400 'action': [ 'python',
Ankit Kumar01846f72020-07-01 07:37:23 +0000401 'third_party/depot_tools/download_from_google_storage.py',
Tom Sepeze9446f82015-08-13 15:51:43 -0700402 '--no_resume',
Tom Sepeze9446f82015-08-13 15:51:43 -0700403 '--no_auth',
404 '--bucket', 'chromium-clang-format',
Ankit Kumar01846f72020-07-01 07:37:23 +0000405 '-s', 'buildtools/linux64/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700406 ],
407 },
Oliver Changafaa98e2015-10-21 15:29:47 -0700408 {
Lei Zhang4b1dea82019-02-08 00:39:06 +0000409 # Note: On Win, this should run after win_toolchain, as it may use it.
Oliver Changafaa98e2015-10-21 15:29:47 -0700410 'name': 'clang',
411 'pattern': '.',
dsinclair685bb882016-04-20 07:32:39 -0700412 'action': ['python',
Ankit Kumar01846f72020-07-01 07:37:23 +0000413 'tools/clang/scripts/update.py'
dsinclair685bb882016-04-20 07:32:39 -0700414 ],
Oliver Changafaa98e2015-10-21 15:29:47 -0700415 },
weili9a1b6652016-04-28 15:26:45 -0700416 {
Lei Zhang728127c2018-02-16 19:26:20 +0000417 'name': 'sysroot_arm',
Tom Anderson19817af2017-07-18 18:00:18 -0700418 'pattern': '.',
Lei Zhang728127c2018-02-16 19:26:20 +0000419 'condition': 'checkout_linux and checkout_arm',
Ankit Kumar01846f72020-07-01 07:37:23 +0000420 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000421 '--arch=arm'],
422 },
423 {
424 'name': 'sysroot_arm64',
425 'pattern': '.',
426 'condition': 'checkout_linux and checkout_arm64',
Ankit Kumar01846f72020-07-01 07:37:23 +0000427 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000428 '--arch=arm64'],
429 },
430 {
431 'name': 'sysroot_x86',
432 'pattern': '.',
433 'condition': 'checkout_linux and (checkout_x86 or checkout_x64)',
Ankit Kumar01846f72020-07-01 07:37:23 +0000434 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000435 '--arch=x86'],
436 },
437 {
438 'name': 'sysroot_mips',
439 'pattern': '.',
440 'condition': 'checkout_linux and checkout_mips',
Ankit Kumar01846f72020-07-01 07:37:23 +0000441 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000442 '--arch=mips'],
443 },
444 {
445 'name': 'sysroot_x64',
446 'pattern': '.',
447 'condition': 'checkout_linux and checkout_x64',
Ankit Kumar01846f72020-07-01 07:37:23 +0000448 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000449 '--arch=x64'],
Tom Anderson19817af2017-07-18 18:00:18 -0700450 },
451 {
Lei Zhangab384ed2017-12-21 08:00:44 +0000452 'name': 'msan_chained_origins',
453 'pattern': '.',
454 'condition': 'checkout_instrumented_libraries',
455 'action': [ 'python',
Ankit Kumar01846f72020-07-01 07:37:23 +0000456 'third_party/depot_tools/download_from_google_storage.py',
Lei Zhang73b4e772020-04-13 23:35:48 +0000457 '--no_resume',
458 '--no_auth',
459 '--bucket', 'chromium-instrumented-libraries',
Ankit Kumar01846f72020-07-01 07:37:23 +0000460 '-s', 'third_party/instrumented_libraries/binaries/msan-chained-origins-trusty.tgz.sha1',
Lei Zhangab384ed2017-12-21 08:00:44 +0000461 ],
462 },
463 {
464 'name': 'msan_no_origins',
465 'pattern': '.',
466 'condition': 'checkout_instrumented_libraries',
467 'action': [ 'python',
Ankit Kumar01846f72020-07-01 07:37:23 +0000468 'third_party/depot_tools/download_from_google_storage.py',
Lei Zhang73b4e772020-04-13 23:35:48 +0000469 '--no_resume',
470 '--no_auth',
471 '--bucket', 'chromium-instrumented-libraries',
Ankit Kumar01846f72020-07-01 07:37:23 +0000472 '-s', 'third_party/instrumented_libraries/binaries/msan-no-origins-trusty.tgz.sha1',
Lei Zhangab384ed2017-12-21 08:00:44 +0000473 ],
Tom Anderson4e8edf52017-03-30 18:27:21 -0700474 },
Lei Zhangd3220622018-08-27 17:43:10 +0000475 {
476 # Update LASTCHANGE.
477 'name': 'lastchange',
478 'pattern': '.',
Ankit Kumar01846f72020-07-01 07:37:23 +0000479 'action': ['python', 'build/util/lastchange.py',
480 '-o', 'build/util/LASTCHANGE'],
Lei Zhangd3220622018-08-27 17:43:10 +0000481 },
Tom Sepeze9446f82015-08-13 15:51:43 -0700482]