blob: 403e021db986be9910df4008b361032b6c39ef18 [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
Lei Zhange52951a2022-05-04 20:49:01 +000022 # By default, download the fuchsia sdk from the public sdk directory.
Lei Zhangb9880542022-05-05 01:14:12 +000023 'fuchsia_sdk_cipd_prefix': 'fuchsia/sdk/gn/',
Lei Zhangb714e7c2022-02-28 22:48:44 +000024
Dan Sinclaira03c3432016-03-16 15:35:20 -040025 'chromium_git': 'https://chromium.googlesource.com',
26 'pdfium_git': 'https://pdfium.googlesource.com',
Lei Zhang7b9fe872021-11-30 21:45:18 +000027 'skia_git': 'https://skia.googlesource.com',
Dan Sinclaira03c3432016-03-16 15:35:20 -040028
Lei Zhang5b02a0a2020-02-21 18:57:27 +000029 # Three lines of non-changing comments so that
Lei Zhang32219d72021-09-29 21:13:27 +000030 # the commit queue can handle CLs rolling abseil
31 # and whatever else without interference from each other.
K. Moondcf0eb62022-06-01 22:39:29 +000032 'abseil_revision': 'e9b1c7879f35407d7524ba33a73a12c7c61d102f',
Lei Zhang32219d72021-09-29 21:13:27 +000033 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000034 # the commit queue can handle CLs rolling android_ndk
35 # and whatever else without interference from each other.
Hui Yingste4155bd2022-05-03 17:36:10 +000036 'android_ndk_revision': '8388a2be5421311dc75c5f937aae13d821a27f3d',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000037 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000038 # the commit queue can handle CLs rolling build
39 # and whatever else without interference from each other.
K. Moondcf0eb62022-06-01 22:39:29 +000040 'build_revision': 'dfd00fd0624a3eecac9d2218b5b6650cc98a7186',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000041 # Three lines of non-changing comments so that
42 # the commit queue can handle CLs rolling buildtools
43 # and whatever else without interference from each other.
K. Moondcf0eb62022-06-01 22:39:29 +000044 'buildtools_revision': '8b16338d17cd71b04a6ba28da7322ab6739892c2',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000045 # Three lines of non-changing comments so that
46 # the commit queue can handle CLs rolling catapult
47 # and whatever else without interference from each other.
pdfium-autorollf8ffb2b2022-06-13 05:15:43 +000048 'catapult_revision': 'ba0a827bb8b930307595ff9e15bc41875fece7d2',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000049 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +000050 # the commit queue can handle CLs rolling clang format
51 # and whatever else without interference from each other.
Alan Screen3f5db082021-12-08 21:28:26 +000052 'clang_format_revision': 'e435ad79c17b1888b34df88d6a30a094936e3836',
Hui Yingste0f5c5b2021-04-02 21:39:14 +000053 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000054 # the commit queue can handle CLs rolling clang
55 # and whatever else without interference from each other.
K. Moon110d1342022-06-01 20:23:19 +000056 'clang_revision': '393c871899747603524eb2af04d2a6136802e868',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000057 # Three lines of non-changing comments so that
58 # the commit queue can handle CLs rolling code_coverage
59 # and whatever else without interference from each other.
pdfium-autorollf0bc1942022-06-13 04:59:34 +000060 'code_coverage_revision': 'a947a8ea964d3be7e807cb744b3f927b57ffe232',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000061 # Three lines of non-changing comments so that
62 # the commit queue can handle CLs rolling depot_tools
63 # and whatever else without interference from each other.
K. Moon2e654ce2022-06-01 21:14:29 +000064 'depot_tools_revision': '700aee769d3c155ffb430edfbfd3be26f15188b4',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000065 # Three lines of non-changing comments so that
66 # the commit queue can handle CLs rolling freetype
67 # and whatever else without interference from each other.
K. Moone9a79aa2022-06-02 16:01:31 +000068 'freetype_revision': 'd6857981239ea5f6e95cb4eb4402307f3527760a',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000069 # Three lines of non-changing comments so that
Lei Zhange52951a2022-05-04 20:49:01 +000070 # the commit queue can handle CLs rolling Fuchsia sdk
71 # and whatever else without interference from each other.
K. Moon192dc852022-06-01 23:15:59 +000072 'fuchsia_version': 'version:8.20220531.3.1',
Lei Zhange52951a2022-05-04 20:49:01 +000073 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +000074 # the commit queue can handle CLs rolling GN CIPD package version
75 # and whatever else without interference from each other.
K. Mooneaae07c2022-06-01 23:27:19 +000076 'gn_version': 'git_revision:37baefb026b199605affa7bcb24810d1724ce373',
Hui Yingste0f5c5b2021-04-02 21:39:14 +000077 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000078 # the commit queue can handle CLs rolling gtest
79 # and whatever else without interference from each other.
Alan Screenf8f29a82022-04-14 01:36:21 +000080 'gtest_revision': 'af29db7ec28d6df1c7f0f745186884091e602e07',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000081 # Three lines of non-changing comments so that
82 # the commit queue can handle CLs rolling icu
83 # and whatever else without interference from each other.
K. Moon91c8d082022-06-01 23:40:59 +000084 'icu_revision': '165825933050109d8331d0faa56cc9f52460fbbf',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000085 # Three lines of non-changing comments so that
86 # the commit queue can handle CLs rolling instrumented_lib
87 # and whatever else without interference from each other.
pdfium-autoroll64a36912021-11-23 01:18:19 +000088 'instrumented_lib_revision': 'e09c4b66b6e87116eb190651421f1a6e2f3b9c52',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000089 # Three lines of non-changing comments so that
90 # the commit queue can handle CLs rolling jinja2
91 # and whatever else without interference from each other.
pdfium-autoroll5ea38dd2021-10-11 04:59:06 +000092 'jinja2_revision': 'ee69aa00ee8536f61db6a451f3858745cf587de6',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000093 # Three lines of non-changing comments so that
94 # the commit queue can handle CLs rolling jpeg_turbo
95 # and whatever else without interference from each other.
Alan Screen2cbfaf12022-04-14 01:39:52 +000096 'jpeg_turbo_revision': '22f1a22c99e9dde8cd3c72ead333f425c5a7aa77',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000097 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +000098 # the commit queue can handle CLs rolling libc++
99 # and whatever else without interference from each other.
100 # If you change this, also update the libc++ revision in
101 # //buildtools/deps_revisions.gni.
K. Moondcf0eb62022-06-01 22:39:29 +0000102 'libcxx_revision': 'b1269813eaf5b8ac78e35e45a0f7cc320bd3e7d6',
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000103 # Three lines of non-changing comments so that
104 # the commit queue can handle CLs rolling libc++abi
105 # and whatever else without interference from each other.
K. Moon75e0bcb2022-06-01 23:09:50 +0000106 'libcxxabi_revision': 'c30c515c84377a2a76e27fe8b457e24dbd6abf10',
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000107 # Three lines of non-changing comments so that
108 # the commit queue can handle CLs rolling libunwind
109 # and whatever else without interference from each other.
K. Moonbaa14dd2022-06-01 23:49:49 +0000110 'libunwind_revision': '5e737be79cd244af1c36b4cccc0cba4c6a4306a3',
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000111 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000112 # the commit queue can handle CLs rolling markupsafe
113 # and whatever else without interference from each other.
pdfium-autoroll51fc7452021-07-12 05:08:40 +0000114 'markupsafe_revision': '1b882ef6372b58bfd55a3285f37ed801be9137cd',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000115 # Three lines of non-changing comments so that
Lei Zhangd749ccd2020-04-13 23:48:51 +0000116 # the commit queue can handle CLs rolling nasm_source
117 # and whatever else without interference from each other.
Alan Screen6ce1cf52021-11-30 06:55:41 +0000118 'nasm_source_revision': '9215e8e1d0fe474ffd3e16c1a07a0f97089e6224',
Lei Zhangd749ccd2020-04-13 23:48:51 +0000119 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000120 # the commit queue can handle CLs rolling pdfium_tests
121 # and whatever else without interference from each other.
Lei Zhang17b67222022-04-01 18:02:29 +0000122 'pdfium_tests_revision': '4a2ea198bc43e2dd34f155e7b361e4ca5c9cddb7',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000123 # Three lines of non-changing comments so that
124 # the commit queue can handle CLs rolling skia
125 # and whatever else without interference from each other.
K. Moon2bb5f462022-06-02 00:12:52 +0000126 'skia_revision': '3daf310ed8323ac3f75aac1444ed976fbd29784c',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000127 # Three lines of non-changing comments so that
Tom Anderson331f3eb2021-10-22 00:49:44 +0000128 # the commit queue can handle CLs rolling test_fonts
129 # and whatever else without interference from each other.
130 'test_fonts_revision': '7f51783942943e965cd56facf786544ccfc07713',
131 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000132 # the commit queue can handle CLs rolling tools_memory
133 # and whatever else without interference from each other.
K. Moon5652e3f2022-06-02 00:25:39 +0000134 'tools_memory_revision': 'f8a4cfe4f95a2d5b9ec0b67b5434adab88057a52',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000135 # Three lines of non-changing comments so that
136 # the commit queue can handle CLs rolling trace_event
137 # and whatever else without interference from each other.
K. Moone9d78612022-02-05 00:53:48 +0000138 'trace_event_revision': 'd115b033c4e53666b535cbd1985ffe60badad082',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000139 # Three lines of non-changing comments so that
140 # the commit queue can handle CLs rolling v8
141 # and whatever else without interference from each other.
K. Moonacd2ffb2022-06-02 00:36:09 +0000142 'v8_revision': '693814c3949fb5a92e8bcd23c9946704190b9c12',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000143 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000144 # the commit queue can handle CLs rolling zlib
145 # and whatever else without interference from each other.
K. Moon9f6f18c2022-06-02 00:55:19 +0000146 'zlib_revision': '64bbf988543996eb8df9a86877b32917187eba8f',
Dan Sinclaira03c3432016-03-16 15:35:20 -0400147}
148
Lei Zhang5e0f14e2021-11-30 22:51:28 +0000149# Only these hosts are allowed for dependencies in this DEPS file.
150# If you need to add a new host, and the new host is not in Chromium's DEPS
151# file's allowed_hosts list, contact Chrome infrastructure team.
152allowed_hosts = [
153 'chromium.googlesource.com',
154 'pdfium.googlesource.com',
155 'skia.googlesource.com',
156]
157
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700158deps = {
Lei Zhang73b4e772020-04-13 23:35:48 +0000159 'base/trace_event/common':
160 Var('chromium_git') + '/chromium/src/base/trace_event/common.git@' +
thestig5fec5972016-08-30 06:39:40 -0700161 Var('trace_event_revision'),
162
Lei Zhang73b4e772020-04-13 23:35:48 +0000163 'build':
164 Var('chromium_git') + '/chromium/src/build.git@' + Var('build_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700165
Lei Zhang73b4e772020-04-13 23:35:48 +0000166 'buildtools':
167 Var('chromium_git') + '/chromium/src/buildtools.git@' +
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700168 Var('buildtools_revision'),
Tom Sepez4c0e2752015-06-05 13:46:08 -0700169
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000170 'buildtools/clang_format/script':
Lei Zhang8d314172021-11-30 22:48:19 +0000171 Var('chromium_git') +
172 '/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@' +
173 Var('clang_format_revision'),
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000174
175 'buildtools/linux64': {
176 'packages': [
177 {
178 'package': 'gn/gn/linux-amd64',
179 'version': Var('gn_version'),
180 }
181 ],
182 'dep_type': 'cipd',
183 'condition': 'host_os == "linux"',
184 },
185
186 'buildtools/mac': {
187 'packages': [
188 {
189 'package': 'gn/gn/mac-${{arch}}',
190 'version': Var('gn_version'),
191 }
192 ],
193 'dep_type': 'cipd',
194 'condition': 'host_os == "mac"',
195 },
196
197 'buildtools/third_party/libc++/trunk':
Lei Zhang8d314172021-11-30 22:48:19 +0000198 Var('chromium_git') +
199 '/external/github.com/llvm/llvm-project/libcxx.git@' +
200 Var('libcxx_revision'),
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000201
202 'buildtools/third_party/libc++abi/trunk':
Lei Zhang8d314172021-11-30 22:48:19 +0000203 Var('chromium_git') +
204 '/external/github.com/llvm/llvm-project/libcxxabi.git@' +
205 Var('libcxxabi_revision'),
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000206
207 'buildtools/third_party/libunwind/trunk':
Lei Zhang8d314172021-11-30 22:48:19 +0000208 Var('chromium_git') +
209 '/external/github.com/llvm/llvm-project/libunwind.git@' +
210 Var('libunwind_revision'),
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000211
212 'buildtools/win': {
213 'packages': [
214 {
215 'package': 'gn/gn/windows-amd64',
216 'version': Var('gn_version'),
217 }
218 ],
219 'dep_type': 'cipd',
220 'condition': 'host_os == "win"',
221 },
222
Lei Zhang73b4e772020-04-13 23:35:48 +0000223 'testing/corpus':
224 Var('pdfium_git') + '/pdfium_tests@' + Var('pdfium_tests_revision'),
Tom Sepez9519ab22015-03-16 15:27:19 -0700225
Lei Zhang32219d72021-09-29 21:13:27 +0000226 'third_party/abseil-cpp':
227 Var('chromium_git') + '/chromium/src/third_party/abseil-cpp.git@' +
228 Var('abseil_revision'),
229
Lei Zhang73b4e772020-04-13 23:35:48 +0000230 'third_party/android_ndk': {
231 'url': Var('chromium_git') + '/android_ndk.git@' +
232 Var('android_ndk_revision'),
Lei Zhangcb7c1182019-03-21 17:48:18 +0000233 'condition': 'checkout_android',
234 },
235
Lei Zhang73b4e772020-04-13 23:35:48 +0000236 'third_party/catapult': {
237 'url': Var('chromium_git') + '/catapult.git@' + Var('catapult_revision'),
Lei Zhangcb7c1182019-03-21 17:48:18 +0000238 'condition': 'checkout_android',
239 },
240
Lei Zhangab384ed2017-12-21 08:00:44 +0000241 'third_party/depot_tools':
Lei Zhang73b4e772020-04-13 23:35:48 +0000242 Var('chromium_git') + '/chromium/tools/depot_tools.git@' +
Lei Zhangab384ed2017-12-21 08:00:44 +0000243 Var('depot_tools_revision'),
244
Lei Zhang73b4e772020-04-13 23:35:48 +0000245 'third_party/freetype/src':
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700246 Var('chromium_git') + '/chromium/src/third_party/freetype2.git@' +
247 Var('freetype_revision'),
248
Lei Zhange52951a2022-05-04 20:49:01 +0000249 'third_party/fuchsia-sdk/sdk': {
250 'packages': [
251 {
252 'package': Var('fuchsia_sdk_cipd_prefix') + '${{platform}}',
253 'version': Var('fuchsia_version'),
254 },
255 ],
256 'condition': 'checkout_fuchsia',
257 'dep_type': 'cipd',
258 },
259
Lei Zhang73b4e772020-04-13 23:35:48 +0000260 'third_party/googletest/src':
261 Var('chromium_git') + '/external/github.com/google/googletest.git@' +
Lei Zhangc5514272018-03-22 05:19:14 +0000262 Var('gtest_revision'),
263
Lei Zhang73b4e772020-04-13 23:35:48 +0000264 'third_party/icu':
265 Var('chromium_git') + '/chromium/deps/icu.git@' + Var('icu_revision'),
dsinclair685bb882016-04-20 07:32:39 -0700266
Lei Zhang73b4e772020-04-13 23:35:48 +0000267 'third_party/instrumented_libraries':
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700268 Var('chromium_git') +
Lei Zhang73b4e772020-04-13 23:35:48 +0000269 '/chromium/src/third_party/instrumented_libraries.git@' +
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700270 Var('instrumented_lib_revision'),
weili62f36732016-10-14 16:59:40 -0700271
Lei Zhang73b4e772020-04-13 23:35:48 +0000272 'third_party/jinja2':
273 Var('chromium_git') + '/chromium/src/third_party/jinja2.git@' +
Dale Curtisc758d9d2017-04-06 14:10:09 -0700274 Var('jinja2_revision'),
275
Lei Zhang73b4e772020-04-13 23:35:48 +0000276 'third_party/libjpeg_turbo':
277 Var('chromium_git') + '/chromium/deps/libjpeg_turbo.git@' +
Lei Zhang0e5d8922017-04-06 21:43:50 -0700278 Var('jpeg_turbo_revision'),
279
Lei Zhang73b4e772020-04-13 23:35:48 +0000280 'third_party/markupsafe':
281 Var('chromium_git') + '/chromium/src/third_party/markupsafe.git@' +
282 Var('markupsafe_revision'),
283
Lei Zhangd749ccd2020-04-13 23:48:51 +0000284 'third_party/nasm':
285 Var('chromium_git') + '/chromium/deps/nasm.git@' +
286 Var('nasm_source_revision'),
287
Lei Zhang73b4e772020-04-13 23:35:48 +0000288 'third_party/skia':
Lei Zhang7b9fe872021-11-30 21:45:18 +0000289 Var('skia_git') + '/skia.git@' + Var('skia_revision'),
Tom Sepez22ee2482015-01-07 10:04:16 -0800290
Tom Anderson331f3eb2021-10-22 00:49:44 +0000291 'third_party/test_fonts':
292 Var('chromium_git') + '/chromium/src/third_party/test_fonts.git@' +
293 Var('test_fonts_revision'),
294
Lei Zhang73b4e772020-04-13 23:35:48 +0000295 'third_party/zlib':
296 Var('chromium_git') + '/chromium/src/third_party/zlib.git@' +
Lei Zhanga2af7de2017-03-31 13:33:12 -0700297 Var('zlib_revision'),
298
Lei Zhang73b4e772020-04-13 23:35:48 +0000299 'tools/clang':
Lei Zhang8d314172021-11-30 22:48:19 +0000300 Var('chromium_git') + '/chromium/src/tools/clang@' + Var('clang_revision'),
Oliver Changafaa98e2015-10-21 15:29:47 -0700301
Lei Zhang73b4e772020-04-13 23:35:48 +0000302 'tools/code_coverage':
303 Var('chromium_git') + '/chromium/src/tools/code_coverage.git@' +
Ryan Harrisona7b65b82018-05-30 19:56:11 +0000304 Var('code_coverage_revision'),
305
Lei Zhang73b4e772020-04-13 23:35:48 +0000306 'tools/memory':
307 Var('chromium_git') + '/chromium/src/tools/memory@' +
dsinclairfb969002016-05-31 12:55:32 -0700308 Var('tools_memory_revision'),
309
Stephanie Kim606d0852021-03-04 16:02:41 +0000310 # TODO(crbug.com/pdfium/1650): Set up autorollers for goldctl.
311 'tools/skia_goldctl/linux': {
312 'packages': [
313 {
314 'package': 'skia/tools/goldctl/linux-amd64',
Lei Zhang74f88202022-03-01 17:58:58 +0000315 'version': 'eZ3k373CYgRxlu4JKph6e-_7xkP02swy_jePFFMiyIQC',
Stephanie Kim606d0852021-03-04 16:02:41 +0000316 }
317 ],
318 'dep_type': 'cipd',
319 'condition': 'checkout_linux',
320 },
321
Daniel Hosseinian68bba802021-12-31 01:23:54 +0000322 'tools/skia_goldctl/mac_amd64': {
323 'packages': [
324 {
325 'package': 'skia/tools/goldctl/mac-amd64',
Lei Zhang74f88202022-03-01 17:58:58 +0000326 'version': 'nHUjLIViYsLxRjv-zDdmzqT8p1R3VoyHq5gdGkKeMYwC',
Daniel Hosseinian68bba802021-12-31 01:23:54 +0000327 }
328 ],
329 'dep_type': 'cipd',
330 'condition': 'checkout_mac',
331 },
332
333 'tools/skia_goldctl/mac_arm64': {
334 'packages': [
335 {
336 'package': 'skia/tools/goldctl/mac-arm64',
Lei Zhang74f88202022-03-01 17:58:58 +0000337 'version': '-mc865SGfJAqreLZM6fkn8tgCJ7u5QLk5zm7r-ZRJ9gC',
Daniel Hosseinian68bba802021-12-31 01:23:54 +0000338 }
339 ],
340 'dep_type': 'cipd',
341 'condition': 'checkout_mac',
342 },
343
Stephanie Kim606d0852021-03-04 16:02:41 +0000344 'tools/skia_goldctl/win': {
345 'packages': [
346 {
347 'package': 'skia/tools/goldctl/windows-amd64',
Lei Zhang74f88202022-03-01 17:58:58 +0000348 'version': 'iEqqRADI7znrc6pG-MVnc5pBZwD25koILREPC6x2AFAC',
Stephanie Kim606d0852021-03-04 16:02:41 +0000349 }
350 ],
351 'dep_type': 'cipd',
352 'condition': 'checkout_win',
353 },
354
Lei Zhang73b4e772020-04-13 23:35:48 +0000355 'v8':
356 Var('chromium_git') + '/v8/v8.git@' + Var('v8_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700357}
358
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000359recursedeps = []
thestig3873f302016-09-28 17:39:26 -0700360
Tom Sepez4c0e2752015-06-05 13:46:08 -0700361include_rules = [
Lei Zhang8fec3e42015-11-04 15:32:02 -0800362 # Basic stuff that everyone can use.
363 # Note: public is not here because core cannot depend on public.
Lei Zhangf79e15b2019-03-19 23:15:50 +0000364 '+build/build_config.h',
Lei Zhang26170562018-04-17 17:01:52 +0000365 '+constants',
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700366 '+testing',
367 '+third_party/base',
Lei Zhang32219d72021-09-29 21:13:27 +0000368
369 # Abseil features must be allowlisted explicitly for now. See Chromium's
370 # //styleguide/c++/c++11.html. Allowed features' headers will be listed
371 # explicitly here.
372 '-absl',
373 '-third_party/abseil-cpp',
374 '+third_party/abseil-cpp/absl/types/optional.h',
375 '+third_party/abseil-cpp/absl/types/variant.h',
Tom Sepez4c0e2752015-06-05 13:46:08 -0700376]
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700377
weili90c964f2016-04-22 15:25:14 -0700378specific_include_rules = {
379 # Allow embedder tests to use public APIs.
Lei Zhang73b4e772020-04-13 23:35:48 +0000380 '(.*embeddertest\.cpp)': [
381 '+public',
weili90c964f2016-04-22 15:25:14 -0700382 ]
383}
384
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700385hooks = [
dsinclair685bb882016-04-20 07:32:39 -0700386 {
Ankit Kumar5ef1d5c2020-07-01 06:57:13 +0000387 # Ensure that the DEPS'd "depot_tools" has its self-update capability
388 # disabled.
389 'name': 'disable_depot_tools_selfupdate',
390 'pattern': '.',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000391 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000392 'third_party/depot_tools/update_depot_tools_toggle.py',
Ankit Kumar5ef1d5c2020-07-01 06:57:13 +0000393 '--disable',
394 ],
395 },
396 {
Lei Zhang4b1dea82019-02-08 00:39:06 +0000397 # Case-insensitivity for the Win SDK. Must run before win_toolchain below.
398 'name': 'ciopfs_linux',
399 'pattern': '.',
400 'condition': 'checkout_win and host_os == "linux"',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000401 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000402 'third_party/depot_tools/download_from_google_storage.py',
Lei Zhang4b1dea82019-02-08 00:39:06 +0000403 '--no_resume',
404 '--no_auth',
405 '--bucket', 'chromium-browser-clang/ciopfs',
Ankit Kumar01846f72020-07-01 07:37:23 +0000406 '-s', 'build/ciopfs.sha1',
Lei Zhang4b1dea82019-02-08 00:39:06 +0000407 ]
408 },
409 {
410 # Update the Windows toolchain if necessary. Must run before 'clang' below.
411 'name': 'win_toolchain',
412 'pattern': '.',
413 'condition': 'checkout_win',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000414 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'],
Lei Zhang4b1dea82019-02-08 00:39:06 +0000415 },
416 {
417 # Update the Mac toolchain if necessary.
418 'name': 'mac_toolchain',
419 'pattern': '.',
Lei Zhang791eaff2020-07-28 19:44:41 +0000420 'condition': 'checkout_mac',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000421 'action': ['python3', 'build/mac_toolchain.py'],
Lei Zhang4b1dea82019-02-08 00:39:06 +0000422 },
Lei Zhang96122852022-05-04 00:43:55 +0000423 # Pull dsymutil binaries using checked-in hashes.
424 {
425 'name': 'dsymutil_mac_arm64',
426 'pattern': '.',
427 'condition': 'host_os == "mac" and host_cpu == "arm64"',
428 'action': [ 'python3',
429 'third_party/depot_tools/download_from_google_storage.py',
430 '--no_resume',
431 '--no_auth',
432 '--bucket', 'chromium-browser-clang',
433 '-s', 'tools/clang/dsymutil/bin/dsymutil.arm64.sha1',
434 '-o', 'tools/clang/dsymutil/bin/dsymutil',
435 ],
436 },
437 {
438 'name': 'dsymutil_mac_x64',
439 'pattern': '.',
440 'condition': 'host_os == "mac" and host_cpu == "x64"',
441 'action': [ 'python3',
442 'third_party/depot_tools/download_from_google_storage.py',
443 '--no_resume',
444 '--no_auth',
445 '--bucket', 'chromium-browser-clang',
446 '-s', 'tools/clang/dsymutil/bin/dsymutil.x64.sha1',
447 '-o', 'tools/clang/dsymutil/bin/dsymutil',
448 ],
449 },
K. Moon0d7c59f2020-04-24 19:26:17 +0000450 # Pull clang-format binaries using checked-in hashes.
Lei Zhang4b1dea82019-02-08 00:39:06 +0000451 {
Tom Sepeze9446f82015-08-13 15:51:43 -0700452 'name': 'clang_format_win',
453 'pattern': '.',
K. Moon0d7c59f2020-04-24 19:26:17 +0000454 'condition': 'host_os == "win"',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000455 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000456 'third_party/depot_tools/download_from_google_storage.py',
Tom Sepeze9446f82015-08-13 15:51:43 -0700457 '--no_resume',
Tom Sepeze9446f82015-08-13 15:51:43 -0700458 '--no_auth',
459 '--bucket', 'chromium-clang-format',
Ankit Kumar01846f72020-07-01 07:37:23 +0000460 '-s', 'buildtools/win/clang-format.exe.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700461 ],
462 },
463 {
Alan Screen4678e4a2022-04-14 01:59:14 +0000464 'name': 'clang_format_mac_x64',
Tom Sepeze9446f82015-08-13 15:51:43 -0700465 'pattern': '.',
Alan Screen4678e4a2022-04-14 01:59:14 +0000466 'condition': 'host_os == "mac" and host_cpu == "x64"',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000467 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000468 'third_party/depot_tools/download_from_google_storage.py',
Tom Sepeze9446f82015-08-13 15:51:43 -0700469 '--no_resume',
Tom Sepeze9446f82015-08-13 15:51:43 -0700470 '--no_auth',
471 '--bucket', 'chromium-clang-format',
Alan Screen4678e4a2022-04-14 01:59:14 +0000472 '-s', 'buildtools/mac/clang-format.x64.sha1',
K. Moonb96b71b2022-04-20 17:15:28 +0000473 '-o', 'buildtools/mac/clang-format',
Alan Screen4678e4a2022-04-14 01:59:14 +0000474 ],
475 },
476 {
477 'name': 'clang_format_mac_arm64',
478 'pattern': '.',
479 'condition': 'host_os == "mac" and host_cpu == "arm64"',
480 'action': [ 'python3',
K. Moonb96b71b2022-04-20 17:15:28 +0000481 'third_party/depot_tools/download_from_google_storage.py',
Alan Screen4678e4a2022-04-14 01:59:14 +0000482 '--no_resume',
483 '--no_auth',
484 '--bucket', 'chromium-clang-format',
K. Moonb96b71b2022-04-20 17:15:28 +0000485 '-s', 'buildtools/mac/clang-format.arm64.sha1',
486 '-o', 'buildtools/mac/clang-format',
Tom Sepeze9446f82015-08-13 15:51:43 -0700487 ],
488 },
489 {
490 'name': 'clang_format_linux',
491 'pattern': '.',
K. Moon0d7c59f2020-04-24 19:26:17 +0000492 'condition': 'host_os == "linux"',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000493 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000494 'third_party/depot_tools/download_from_google_storage.py',
Tom Sepeze9446f82015-08-13 15:51:43 -0700495 '--no_resume',
Tom Sepeze9446f82015-08-13 15:51:43 -0700496 '--no_auth',
497 '--bucket', 'chromium-clang-format',
Ankit Kumar01846f72020-07-01 07:37:23 +0000498 '-s', 'buildtools/linux64/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700499 ],
500 },
Oliver Changafaa98e2015-10-21 15:29:47 -0700501 {
Lei Zhang4b1dea82019-02-08 00:39:06 +0000502 # Note: On Win, this should run after win_toolchain, as it may use it.
Oliver Changafaa98e2015-10-21 15:29:47 -0700503 'name': 'clang',
504 'pattern': '.',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000505 'action': ['python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000506 'tools/clang/scripts/update.py'
dsinclair685bb882016-04-20 07:32:39 -0700507 ],
Oliver Changafaa98e2015-10-21 15:29:47 -0700508 },
weili9a1b6652016-04-28 15:26:45 -0700509 {
Lei Zhang728127c2018-02-16 19:26:20 +0000510 'name': 'sysroot_arm',
Tom Anderson19817af2017-07-18 18:00:18 -0700511 'pattern': '.',
Lei Zhang728127c2018-02-16 19:26:20 +0000512 'condition': 'checkout_linux and checkout_arm',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000513 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000514 '--arch=arm'],
515 },
516 {
517 'name': 'sysroot_arm64',
518 'pattern': '.',
519 'condition': 'checkout_linux and checkout_arm64',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000520 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000521 '--arch=arm64'],
522 },
523 {
524 'name': 'sysroot_x86',
525 'pattern': '.',
526 'condition': 'checkout_linux and (checkout_x86 or checkout_x64)',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000527 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000528 '--arch=x86'],
529 },
530 {
531 'name': 'sysroot_mips',
532 'pattern': '.',
533 'condition': 'checkout_linux and checkout_mips',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000534 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000535 '--arch=mips'],
536 },
537 {
538 'name': 'sysroot_x64',
539 'pattern': '.',
540 'condition': 'checkout_linux and checkout_x64',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000541 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000542 '--arch=x64'],
Tom Anderson19817af2017-07-18 18:00:18 -0700543 },
544 {
Tom Anderson331f3eb2021-10-22 00:49:44 +0000545 'name': 'test_fonts',
546 'pattern': '.',
547 'action': [ 'python3',
548 'third_party/depot_tools/download_from_google_storage.py',
549 '--no_resume',
550 '--extract',
551 '--no_auth',
552 '--bucket', 'chromium-fonts',
553 '-s', 'third_party/test_fonts/test_fonts.tar.gz.sha1',
554 ],
555 },
556 {
Lei Zhangab384ed2017-12-21 08:00:44 +0000557 'name': 'msan_chained_origins',
558 'pattern': '.',
559 'condition': 'checkout_instrumented_libraries',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000560 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000561 'third_party/depot_tools/download_from_google_storage.py',
Lei Zhang73b4e772020-04-13 23:35:48 +0000562 '--no_resume',
563 '--no_auth',
564 '--bucket', 'chromium-instrumented-libraries',
Lei Zhang2055fc42021-10-19 00:18:59 +0000565 '-s', 'third_party/instrumented_libraries/binaries/msan-chained-origins.tgz.sha1',
Lei Zhangab384ed2017-12-21 08:00:44 +0000566 ],
567 },
568 {
569 'name': 'msan_no_origins',
570 'pattern': '.',
571 'condition': 'checkout_instrumented_libraries',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000572 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000573 'third_party/depot_tools/download_from_google_storage.py',
Lei Zhang73b4e772020-04-13 23:35:48 +0000574 '--no_resume',
575 '--no_auth',
576 '--bucket', 'chromium-instrumented-libraries',
Lei Zhang2055fc42021-10-19 00:18:59 +0000577 '-s', 'third_party/instrumented_libraries/binaries/msan-no-origins.tgz.sha1',
Lei Zhangab384ed2017-12-21 08:00:44 +0000578 ],
Tom Anderson4e8edf52017-03-30 18:27:21 -0700579 },
Lei Zhangd3220622018-08-27 17:43:10 +0000580 {
581 # Update LASTCHANGE.
582 'name': 'lastchange',
583 'pattern': '.',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000584 'action': ['python3', 'build/util/lastchange.py',
Ankit Kumar01846f72020-07-01 07:37:23 +0000585 '-o', 'build/util/LASTCHANGE'],
Lei Zhangd3220622018-08-27 17:43:10 +0000586 },
Tom Sepeze9446f82015-08-13 15:51:43 -0700587]