blob: a5a851ce77a5332767dc732091dcc9dcde688905 [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.
Lei Zhangb9880542022-05-05 01:14:12 +000028 'fuchsia_sdk_cipd_prefix': 'fuchsia/sdk/gn/',
Lei Zhangb714e7c2022-02-28 22:48:44 +000029
Dan Sinclaira03c3432016-03-16 15:35:20 -040030 'chromium_git': 'https://chromium.googlesource.com',
31 'pdfium_git': 'https://pdfium.googlesource.com',
Lei Zhang7b9fe872021-11-30 21:45:18 +000032 'skia_git': 'https://skia.googlesource.com',
Dan Sinclaira03c3432016-03-16 15:35:20 -040033
Lei Zhang5b02a0a2020-02-21 18:57:27 +000034 # Three lines of non-changing comments so that
Lei Zhang32219d72021-09-29 21:13:27 +000035 # the commit queue can handle CLs rolling abseil
36 # and whatever else without interference from each other.
Lei Zhang8df158b2022-11-04 23:17:27 +000037 'abseil_revision': '384efd2e85fae94657ff13c05fab21f6b44c3098',
Lei Zhang32219d72021-09-29 21:13:27 +000038 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000039 # the commit queue can handle CLs rolling android_ndk
40 # and whatever else without interference from each other.
Hui Yingste4155bd2022-05-03 17:36:10 +000041 'android_ndk_revision': '8388a2be5421311dc75c5f937aae13d821a27f3d',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000042 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000043 # the commit queue can handle CLs rolling build
44 # and whatever else without interference from each other.
Lei Zhanga85fe542022-11-04 23:09:30 +000045 'build_revision': '53351eb1617f0292f73c90a7aa7fd052a50f5f2b',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000046 # Three lines of non-changing comments so that
47 # the commit queue can handle CLs rolling buildtools
48 # and whatever else without interference from each other.
K. Moon79a701c2022-09-30 23:35:43 +000049 'buildtools_revision': 'cccaf48c82bcf4ddafa6f8aa9f06014a1ef434bf',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000050 # Three lines of non-changing comments so that
51 # the commit queue can handle CLs rolling catapult
52 # and whatever else without interference from each other.
pdfium-autoroll8e297312022-11-28 05:06:50 +000053 'catapult_revision': '07489847d9adb4d5fb5ab9348f1044acd96e523a',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000054 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +000055 # the commit queue can handle CLs rolling clang format
56 # and whatever else without interference from each other.
Lei Zhangc5807c52022-07-07 18:29:25 +000057 'clang_format_revision': '8b525d2747f2584fc35d8c7e612e66f377858df7',
Hui Yingste0f5c5b2021-04-02 21:39:14 +000058 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000059 # the commit queue can handle CLs rolling clang
60 # and whatever else without interference from each other.
Lei Zhang59445b02022-10-27 18:59:12 +000061 'clang_revision': '38497dbb27b2589593a60a7370024d68e17c0a43',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000062 # Three lines of non-changing comments so that
63 # the commit queue can handle CLs rolling code_coverage
64 # and whatever else without interference from each other.
pdfium-autoroll9cab1a62022-10-31 05:09:48 +000065 'code_coverage_revision': '5afe9c957e7911df1dfe8a457d7ef9e3723af699',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000066 # Three lines of non-changing comments so that
67 # the commit queue can handle CLs rolling depot_tools
68 # and whatever else without interference from each other.
Lei Zhangf84a8a52022-10-28 19:08:56 +000069 'depot_tools_revision': '6f2321d1de694d4ca56784ba8b5634f9ca74b3a6',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000070 # Three lines of non-changing comments so that
71 # the commit queue can handle CLs rolling freetype
72 # and whatever else without interference from each other.
Lei Zhang247aff62022-11-15 06:41:40 +000073 'freetype_revision': '63ccaef07a048db66e7ac66ee241fb3d7751736f',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000074 # Three lines of non-changing comments so that
Lei Zhange52951a2022-05-04 20:49:01 +000075 # the commit queue can handle CLs rolling Fuchsia sdk
76 # and whatever else without interference from each other.
Lei Zhang8dda52c2022-10-28 19:07:18 +000077 'fuchsia_version': 'version:10.20221027.2.1',
Lei Zhange52951a2022-05-04 20:49:01 +000078 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +000079 # the commit queue can handle CLs rolling GN CIPD package version
80 # and whatever else without interference from each other.
Lei Zhangab6c9042022-10-31 17:43:07 +000081 'gn_version': 'git_revision:11dc0b1f438bd26380774e9d50fd4c63f346d41a',
Hui Yingste0f5c5b2021-04-02 21:39:14 +000082 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +000083 # the commit queue can handle CLs rolling gtest
84 # and whatever else without interference from each other.
Alan Screenf8f29a82022-04-14 01:36:21 +000085 'gtest_revision': 'af29db7ec28d6df1c7f0f745186884091e602e07',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000086 # Three lines of non-changing comments so that
87 # the commit queue can handle CLs rolling icu
88 # and whatever else without interference from each other.
Lei Zhang1bc33bb2022-11-19 03:24:50 +000089 'icu_revision': '1b7d391f0528fb3a4976b7541b387ee04f915f83',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000090 # Three lines of non-changing comments so that
91 # the commit queue can handle CLs rolling instrumented_lib
92 # and whatever else without interference from each other.
pdfium-autoroll3d4231c2022-11-07 06:04:39 +000093 'instrumented_lib_revision': 'a8992bf8abb391dde73031d60a80147ebf6b4ee8',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000094 # Three lines of non-changing comments so that
95 # the commit queue can handle CLs rolling jinja2
96 # and whatever else without interference from each other.
pdfium-autorollbe6fac62022-10-31 05:09:42 +000097 'jinja2_revision': '4633bf431193690c3491244f5a0acbe9ac776233',
Lei Zhang5b02a0a2020-02-21 18:57:27 +000098 # Three lines of non-changing comments so that
99 # the commit queue can handle CLs rolling jpeg_turbo
100 # and whatever else without interference from each other.
K. Moon73c5b8d2022-09-30 21:09:36 +0000101 'jpeg_turbo_revision': 'ed683925e4897a84b3bffc5c1414c85b97a129a3',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000102 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000103 # the commit queue can handle CLs rolling libc++
104 # and whatever else without interference from each other.
105 # If you change this, also update the libc++ revision in
106 # //buildtools/deps_revisions.gni.
K. Moon79a701c2022-09-30 23:35:43 +0000107 'libcxx_revision': '5ee02b299379896f90faa88f576be98c61156f26',
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000108 # Three lines of non-changing comments so that
109 # the commit queue can handle CLs rolling libc++abi
110 # and whatever else without interference from each other.
Lei Zhang7d89cb02022-11-01 16:44:47 +0000111 'libcxxabi_revision': '8dd405113a4f3694e910b79785dd7fb7535a888a',
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000112 # Three lines of non-changing comments so that
K. Moonefd00c22022-11-15 23:02:57 +0000113 # the commit queue can handle CLs rolling libpng
114 # and whatever else without interference from each other.
115 'libpng_revision': 'e541f033515bee926ea3ddc16f67be2188b12c3f',
116 # Three lines of non-changing comments so that
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000117 # the commit queue can handle CLs rolling libunwind
118 # and whatever else without interference from each other.
Lei Zhangb3cb9892022-11-01 16:45:09 +0000119 'libunwind_revision': 'aabcd8753678f1536e15eb6385a948470debdae4',
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000120 # Three lines of non-changing comments so that
Tom Sepeze10b8b62022-09-16 19:35:02 +0000121 # the commit queue can handle CLs rolling lss
122 # and whatever else without interference from each other.
Lei Zhang5e807712022-09-30 15:38:46 +0000123 'lss_revision': 'ce877209e11aa69dcfffbd53ef90ea1d07136521',
Tom Sepeze10b8b62022-09-16 19:35:02 +0000124 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000125 # the commit queue can handle CLs rolling markupsafe
126 # and whatever else without interference from each other.
pdfium-autoroll59f26702022-10-31 05:12:20 +0000127 'markupsafe_revision': '13f4e8c9e206567eeb13bf585406ddc574005748',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000128 # Three lines of non-changing comments so that
Lei Zhangd749ccd2020-04-13 23:48:51 +0000129 # the commit queue can handle CLs rolling nasm_source
130 # and whatever else without interference from each other.
Lei Zhangbdbf6232022-10-29 16:00:45 +0000131 'nasm_source_revision': 'fc8e0bd892ae133602f5a6f7a9a6840aa1b75989',
Lei Zhangd749ccd2020-04-13 23:48:51 +0000132 # Three lines of non-changing comments so that
Junji Watanabea0672342022-11-14 19:51:59 +0000133 # the commit queue can handle CLs rolling Ninja CIPD package version
134 # and whatever else without interference from each other.
135 'ninja_version': 'version:2@1.8.2.chromium.3',
136 # Three lines of non-changing comments so that
Tom Sepeze10b8b62022-09-16 19:35:02 +0000137 # the commit queue can handle CLs rolling partition_allocator
138 # and whatever else without interference from each other.
Lei Zhangcc536292022-11-15 00:03:49 +0000139 'partition_allocator_revision': '9f2740129bdc41a0c4f7ad08d617ba2c642a73a1',
Tom Sepeze10b8b62022-09-16 19:35:02 +0000140 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000141 # the commit queue can handle CLs rolling pdfium_tests
142 # and whatever else without interference from each other.
Hui Yingst05eaf8b2022-11-16 02:31:17 +0000143 'pdfium_tests_revision': '9b4c6d97414d3d90bcafc40ab5d73a410eb04bd4',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000144 # Three lines of non-changing comments so that
K. Moon643278d2022-10-06 20:41:42 +0000145 # the commit queue can handle CLs rolling resultdb
146 # and whatever else without interference from each other.
147 'resultdb_version': 'git_revision:6cc18e2763e180929d70c786b419c1f8e6bcc66c',
148 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000149 # the commit queue can handle CLs rolling skia
150 # and whatever else without interference from each other.
Lei Zhang7ae9c062022-10-24 19:39:36 +0000151 'skia_revision': '64882739150a15844ba905a5df64f5f8c55682b5',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000152 # Three lines of non-changing comments so that
Tom Anderson331f3eb2021-10-22 00:49:44 +0000153 # the commit queue can handle CLs rolling test_fonts
154 # and whatever else without interference from each other.
155 'test_fonts_revision': '7f51783942943e965cd56facf786544ccfc07713',
156 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000157 # the commit queue can handle CLs rolling tools_memory
158 # and whatever else without interference from each other.
Lei Zhangfb3d15e2022-11-01 16:45:37 +0000159 'tools_memory_revision': '8581381d92045707a699f1fc14525cac75a802e0',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000160 # Three lines of non-changing comments so that
161 # the commit queue can handle CLs rolling trace_event
162 # and whatever else without interference from each other.
K. Moon1c35dd52022-09-30 21:05:16 +0000163 'trace_event_revision': '521ac34ebd795939c7e16b37d9d3ddb40e8ed556',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000164 # Three lines of non-changing comments so that
165 # the commit queue can handle CLs rolling v8
166 # and whatever else without interference from each other.
Lei Zhang4705e8b2022-11-19 03:08:17 +0000167 'v8_revision': '43396790e735ab38df59610033dd3a172127ce4d',
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000168 # Three lines of non-changing comments so that
Lei Zhang5b02a0a2020-02-21 18:57:27 +0000169 # the commit queue can handle CLs rolling zlib
170 # and whatever else without interference from each other.
Lei Zhangdab89172022-10-27 19:50:48 +0000171 'zlib_revision': 'cff720848d7ddad191354f153f7acbb43af09b74',
Dan Sinclaira03c3432016-03-16 15:35:20 -0400172}
173
Lei Zhang5e0f14e2021-11-30 22:51:28 +0000174# Only these hosts are allowed for dependencies in this DEPS file.
175# If you need to add a new host, and the new host is not in Chromium's DEPS
176# file's allowed_hosts list, contact Chrome infrastructure team.
177allowed_hosts = [
178 'chromium.googlesource.com',
179 'pdfium.googlesource.com',
180 'skia.googlesource.com',
181]
182
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700183deps = {
Tom Sepeze10b8b62022-09-16 19:35:02 +0000184 'base/allocator/partition_allocator':
185 Var('chromium_git') +
186 '/chromium/src/base/allocator/partition_allocator.git@' +
187 Var('partition_allocator_revision'),
188
Lei Zhang73b4e772020-04-13 23:35:48 +0000189 'base/trace_event/common':
190 Var('chromium_git') + '/chromium/src/base/trace_event/common.git@' +
thestig5fec5972016-08-30 06:39:40 -0700191 Var('trace_event_revision'),
192
Lei Zhang73b4e772020-04-13 23:35:48 +0000193 'build':
194 Var('chromium_git') + '/chromium/src/build.git@' + Var('build_revision'),
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700195
Lei Zhang73b4e772020-04-13 23:35:48 +0000196 'buildtools':
197 Var('chromium_git') + '/chromium/src/buildtools.git@' +
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700198 Var('buildtools_revision'),
Tom Sepez4c0e2752015-06-05 13:46:08 -0700199
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000200 'buildtools/clang_format/script':
Lei Zhang8d314172021-11-30 22:48:19 +0000201 Var('chromium_git') +
202 '/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@' +
203 Var('clang_format_revision'),
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000204
205 'buildtools/linux64': {
206 'packages': [
207 {
208 'package': 'gn/gn/linux-amd64',
209 'version': Var('gn_version'),
210 }
211 ],
212 'dep_type': 'cipd',
213 'condition': 'host_os == "linux"',
214 },
215
216 'buildtools/mac': {
217 'packages': [
218 {
219 'package': 'gn/gn/mac-${{arch}}',
220 'version': Var('gn_version'),
221 }
222 ],
223 'dep_type': 'cipd',
224 'condition': 'host_os == "mac"',
225 },
226
227 'buildtools/third_party/libc++/trunk':
Lei Zhang8d314172021-11-30 22:48:19 +0000228 Var('chromium_git') +
229 '/external/github.com/llvm/llvm-project/libcxx.git@' +
230 Var('libcxx_revision'),
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000231
232 'buildtools/third_party/libc++abi/trunk':
Lei Zhang8d314172021-11-30 22:48:19 +0000233 Var('chromium_git') +
234 '/external/github.com/llvm/llvm-project/libcxxabi.git@' +
235 Var('libcxxabi_revision'),
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000236
237 'buildtools/third_party/libunwind/trunk':
Lei Zhang8d314172021-11-30 22:48:19 +0000238 Var('chromium_git') +
239 '/external/github.com/llvm/llvm-project/libunwind.git@' +
240 Var('libunwind_revision'),
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000241
242 'buildtools/win': {
243 'packages': [
244 {
245 'package': 'gn/gn/windows-amd64',
246 'version': Var('gn_version'),
247 }
248 ],
249 'dep_type': 'cipd',
250 'condition': 'host_os == "win"',
251 },
252
Lei Zhangb1536552022-07-12 20:59:06 +0000253 'testing/corpus': {
254 'url': Var('pdfium_git') + '/pdfium_tests@' + Var('pdfium_tests_revision'),
255 'condition': 'checkout_testing_corpus',
256 },
Tom Sepez9519ab22015-03-16 15:27:19 -0700257
Lei Zhang32219d72021-09-29 21:13:27 +0000258 'third_party/abseil-cpp':
259 Var('chromium_git') + '/chromium/src/third_party/abseil-cpp.git@' +
260 Var('abseil_revision'),
261
Lei Zhang73b4e772020-04-13 23:35:48 +0000262 'third_party/android_ndk': {
263 'url': Var('chromium_git') + '/android_ndk.git@' +
264 Var('android_ndk_revision'),
Lei Zhangcb7c1182019-03-21 17:48:18 +0000265 'condition': 'checkout_android',
266 },
267
Lei Zhang73b4e772020-04-13 23:35:48 +0000268 'third_party/catapult': {
269 'url': Var('chromium_git') + '/catapult.git@' + Var('catapult_revision'),
Lei Zhangcb7c1182019-03-21 17:48:18 +0000270 'condition': 'checkout_android',
271 },
272
Lei Zhangab384ed2017-12-21 08:00:44 +0000273 'third_party/depot_tools':
Lei Zhang73b4e772020-04-13 23:35:48 +0000274 Var('chromium_git') + '/chromium/tools/depot_tools.git@' +
Lei Zhangab384ed2017-12-21 08:00:44 +0000275 Var('depot_tools_revision'),
276
Lei Zhang73b4e772020-04-13 23:35:48 +0000277 'third_party/freetype/src':
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700278 Var('chromium_git') + '/chromium/src/third_party/freetype2.git@' +
279 Var('freetype_revision'),
280
Lei Zhange52951a2022-05-04 20:49:01 +0000281 'third_party/fuchsia-sdk/sdk': {
282 'packages': [
283 {
284 'package': Var('fuchsia_sdk_cipd_prefix') + '${{platform}}',
285 'version': Var('fuchsia_version'),
286 },
287 ],
288 'condition': 'checkout_fuchsia',
289 'dep_type': 'cipd',
290 },
291
Lei Zhang73b4e772020-04-13 23:35:48 +0000292 'third_party/googletest/src':
293 Var('chromium_git') + '/external/github.com/google/googletest.git@' +
Lei Zhangc5514272018-03-22 05:19:14 +0000294 Var('gtest_revision'),
295
Lei Zhang73b4e772020-04-13 23:35:48 +0000296 'third_party/icu':
297 Var('chromium_git') + '/chromium/deps/icu.git@' + Var('icu_revision'),
dsinclair685bb882016-04-20 07:32:39 -0700298
Lei Zhang73b4e772020-04-13 23:35:48 +0000299 'third_party/instrumented_libraries':
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700300 Var('chromium_git') +
Lei Zhang73b4e772020-04-13 23:35:48 +0000301 '/chromium/src/third_party/instrumented_libraries.git@' +
Lei Zhangeb39cdb2017-03-31 12:26:15 -0700302 Var('instrumented_lib_revision'),
weili62f36732016-10-14 16:59:40 -0700303
Lei Zhang73b4e772020-04-13 23:35:48 +0000304 'third_party/jinja2':
305 Var('chromium_git') + '/chromium/src/third_party/jinja2.git@' +
Dale Curtisc758d9d2017-04-06 14:10:09 -0700306 Var('jinja2_revision'),
307
Lei Zhang73b4e772020-04-13 23:35:48 +0000308 'third_party/libjpeg_turbo':
309 Var('chromium_git') + '/chromium/deps/libjpeg_turbo.git@' +
Lei Zhang0e5d8922017-04-06 21:43:50 -0700310 Var('jpeg_turbo_revision'),
311
K. Moonefd00c22022-11-15 23:02:57 +0000312 'third_party/libpng':
313 Var('chromium_git') + '/chromium/src/third_party/libpng.git@' +
314 Var('libpng_revision'),
315
Tom Sepeze10b8b62022-09-16 19:35:02 +0000316 'third_party/lss': {
317 'url': Var('chromium_git') + '/linux-syscall-support.git' + '@' + Var('lss_revision'),
318 'condition': 'checkout_android or checkout_linux',
319 },
320
Lei Zhang73b4e772020-04-13 23:35:48 +0000321 'third_party/markupsafe':
322 Var('chromium_git') + '/chromium/src/third_party/markupsafe.git@' +
323 Var('markupsafe_revision'),
324
Lei Zhangd749ccd2020-04-13 23:48:51 +0000325 'third_party/nasm':
326 Var('chromium_git') + '/chromium/deps/nasm.git@' +
327 Var('nasm_source_revision'),
328
Junji Watanabea0672342022-11-14 19:51:59 +0000329 'third_party/ninja': {
330 'packages': [
331 {
332 # https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja
333 'package': 'infra/3pp/tools/ninja/${{platform}}',
334 'version': Var('ninja_version'),
335 }
336 ],
337 'dep_type': 'cipd',
338 },
339
Lei Zhanga2ccb262022-07-26 00:56:23 +0000340 'third_party/skia': {
341 'url': Var('skia_git') + '/skia.git@' + Var('skia_revision'),
342 'condition': 'checkout_skia',
343 },
Tom Sepez22ee2482015-01-07 10:04:16 -0800344
Tom Anderson331f3eb2021-10-22 00:49:44 +0000345 'third_party/test_fonts':
346 Var('chromium_git') + '/chromium/src/third_party/test_fonts.git@' +
347 Var('test_fonts_revision'),
348
Lei Zhang73b4e772020-04-13 23:35:48 +0000349 'third_party/zlib':
350 Var('chromium_git') + '/chromium/src/third_party/zlib.git@' +
Lei Zhanga2af7de2017-03-31 13:33:12 -0700351 Var('zlib_revision'),
352
Lei Zhang73b4e772020-04-13 23:35:48 +0000353 'tools/clang':
Lei Zhang8d314172021-11-30 22:48:19 +0000354 Var('chromium_git') + '/chromium/src/tools/clang@' + Var('clang_revision'),
Oliver Changafaa98e2015-10-21 15:29:47 -0700355
Lei Zhang73b4e772020-04-13 23:35:48 +0000356 'tools/code_coverage':
357 Var('chromium_git') + '/chromium/src/tools/code_coverage.git@' +
Ryan Harrisona7b65b82018-05-30 19:56:11 +0000358 Var('code_coverage_revision'),
359
Lei Zhang73b4e772020-04-13 23:35:48 +0000360 'tools/memory':
361 Var('chromium_git') + '/chromium/src/tools/memory@' +
dsinclairfb969002016-05-31 12:55:32 -0700362 Var('tools_memory_revision'),
363
K. Moon643278d2022-10-06 20:41:42 +0000364 'tools/resultdb': {
365 'packages': [
366 {
367 'package': 'infra/tools/result_adapter/${{platform}}',
368 'version': Var('resultdb_version'),
369 },
370 ],
371 'dep_type': 'cipd',
372 },
373
Stephanie Kim606d0852021-03-04 16:02:41 +0000374 # TODO(crbug.com/pdfium/1650): Set up autorollers for goldctl.
375 'tools/skia_goldctl/linux': {
376 'packages': [
377 {
378 'package': 'skia/tools/goldctl/linux-amd64',
Lei Zhang74f88202022-03-01 17:58:58 +0000379 'version': 'eZ3k373CYgRxlu4JKph6e-_7xkP02swy_jePFFMiyIQC',
Stephanie Kim606d0852021-03-04 16:02:41 +0000380 }
381 ],
382 'dep_type': 'cipd',
383 'condition': 'checkout_linux',
384 },
385
Daniel Hosseinian68bba802021-12-31 01:23:54 +0000386 'tools/skia_goldctl/mac_amd64': {
387 'packages': [
388 {
389 'package': 'skia/tools/goldctl/mac-amd64',
Lei Zhang74f88202022-03-01 17:58:58 +0000390 'version': 'nHUjLIViYsLxRjv-zDdmzqT8p1R3VoyHq5gdGkKeMYwC',
Daniel Hosseinian68bba802021-12-31 01:23:54 +0000391 }
392 ],
393 'dep_type': 'cipd',
394 'condition': 'checkout_mac',
395 },
396
397 'tools/skia_goldctl/mac_arm64': {
398 'packages': [
399 {
400 'package': 'skia/tools/goldctl/mac-arm64',
Lei Zhang74f88202022-03-01 17:58:58 +0000401 'version': '-mc865SGfJAqreLZM6fkn8tgCJ7u5QLk5zm7r-ZRJ9gC',
Daniel Hosseinian68bba802021-12-31 01:23:54 +0000402 }
403 ],
404 'dep_type': 'cipd',
405 'condition': 'checkout_mac',
406 },
407
Stephanie Kim606d0852021-03-04 16:02:41 +0000408 'tools/skia_goldctl/win': {
409 'packages': [
410 {
411 'package': 'skia/tools/goldctl/windows-amd64',
Lei Zhang74f88202022-03-01 17:58:58 +0000412 'version': 'iEqqRADI7znrc6pG-MVnc5pBZwD25koILREPC6x2AFAC',
Stephanie Kim606d0852021-03-04 16:02:41 +0000413 }
414 ],
415 'dep_type': 'cipd',
416 'condition': 'checkout_win',
417 },
418
Lei Zhanga2ccb262022-07-26 00:56:23 +0000419 'v8': {
420 'url': Var('chromium_git') + '/v8/v8.git@' + Var('v8_revision'),
421 'condition': 'checkout_v8',
422 },
423
Aneesh Mulye2ee9c3a2014-08-06 18:11:02 -0700424}
425
Hui Yingste0f5c5b2021-04-02 21:39:14 +0000426recursedeps = []
thestig3873f302016-09-28 17:39:26 -0700427
Tom Sepez4c0e2752015-06-05 13:46:08 -0700428include_rules = [
Lei Zhang8fec3e42015-11-04 15:32:02 -0800429 # Basic stuff that everyone can use.
430 # Note: public is not here because core cannot depend on public.
Lei Zhangf79e15b2019-03-19 23:15:50 +0000431 '+build/build_config.h',
Lei Zhang26170562018-04-17 17:01:52 +0000432 '+constants',
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700433 '+testing',
434 '+third_party/base',
Lei Zhang32219d72021-09-29 21:13:27 +0000435
436 # Abseil features must be allowlisted explicitly for now. See Chromium's
437 # //styleguide/c++/c++11.html. Allowed features' headers will be listed
438 # explicitly here.
439 '-absl',
440 '-third_party/abseil-cpp',
441 '+third_party/abseil-cpp/absl/types/optional.h',
442 '+third_party/abseil-cpp/absl/types/variant.h',
Tom Sepez4c0e2752015-06-05 13:46:08 -0700443]
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700444
weili90c964f2016-04-22 15:25:14 -0700445specific_include_rules = {
446 # Allow embedder tests to use public APIs.
Lei Zhang73b4e772020-04-13 23:35:48 +0000447 '(.*embeddertest\.cpp)': [
448 '+public',
weili90c964f2016-04-22 15:25:14 -0700449 ]
450}
451
Tom Sepez0c1bd7c2015-06-17 15:56:43 -0700452hooks = [
dsinclair685bb882016-04-20 07:32:39 -0700453 {
Ankit Kumar5ef1d5c2020-07-01 06:57:13 +0000454 # Ensure that the DEPS'd "depot_tools" has its self-update capability
455 # disabled.
456 'name': 'disable_depot_tools_selfupdate',
457 'pattern': '.',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000458 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000459 'third_party/depot_tools/update_depot_tools_toggle.py',
Ankit Kumar5ef1d5c2020-07-01 06:57:13 +0000460 '--disable',
461 ],
462 },
463 {
Lei Zhang4b1dea82019-02-08 00:39:06 +0000464 # Case-insensitivity for the Win SDK. Must run before win_toolchain below.
465 'name': 'ciopfs_linux',
466 'pattern': '.',
467 'condition': 'checkout_win and host_os == "linux"',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000468 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000469 'third_party/depot_tools/download_from_google_storage.py',
Lei Zhang4b1dea82019-02-08 00:39:06 +0000470 '--no_resume',
471 '--no_auth',
472 '--bucket', 'chromium-browser-clang/ciopfs',
Ankit Kumar01846f72020-07-01 07:37:23 +0000473 '-s', 'build/ciopfs.sha1',
Lei Zhang4b1dea82019-02-08 00:39:06 +0000474 ]
475 },
476 {
477 # Update the Windows toolchain if necessary. Must run before 'clang' below.
478 'name': 'win_toolchain',
479 'pattern': '.',
480 'condition': 'checkout_win',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000481 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'],
Lei Zhang4b1dea82019-02-08 00:39:06 +0000482 },
483 {
484 # Update the Mac toolchain if necessary.
485 'name': 'mac_toolchain',
486 'pattern': '.',
Lei Zhang791eaff2020-07-28 19:44:41 +0000487 'condition': 'checkout_mac',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000488 'action': ['python3', 'build/mac_toolchain.py'],
Lei Zhang4b1dea82019-02-08 00:39:06 +0000489 },
Lei Zhang96122852022-05-04 00:43:55 +0000490 # Pull dsymutil binaries using checked-in hashes.
491 {
492 'name': 'dsymutil_mac_arm64',
493 'pattern': '.',
494 'condition': 'host_os == "mac" and host_cpu == "arm64"',
495 'action': [ 'python3',
496 'third_party/depot_tools/download_from_google_storage.py',
497 '--no_resume',
498 '--no_auth',
499 '--bucket', 'chromium-browser-clang',
500 '-s', 'tools/clang/dsymutil/bin/dsymutil.arm64.sha1',
501 '-o', 'tools/clang/dsymutil/bin/dsymutil',
502 ],
503 },
504 {
505 'name': 'dsymutil_mac_x64',
506 'pattern': '.',
507 'condition': 'host_os == "mac" and host_cpu == "x64"',
508 'action': [ 'python3',
509 'third_party/depot_tools/download_from_google_storage.py',
510 '--no_resume',
511 '--no_auth',
512 '--bucket', 'chromium-browser-clang',
513 '-s', 'tools/clang/dsymutil/bin/dsymutil.x64.sha1',
514 '-o', 'tools/clang/dsymutil/bin/dsymutil',
515 ],
516 },
K. Moon0d7c59f2020-04-24 19:26:17 +0000517 # Pull clang-format binaries using checked-in hashes.
Lei Zhang4b1dea82019-02-08 00:39:06 +0000518 {
Tom Sepeze9446f82015-08-13 15:51:43 -0700519 'name': 'clang_format_win',
520 'pattern': '.',
K. Moon0d7c59f2020-04-24 19:26:17 +0000521 'condition': 'host_os == "win"',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000522 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000523 'third_party/depot_tools/download_from_google_storage.py',
Tom Sepeze9446f82015-08-13 15:51:43 -0700524 '--no_resume',
Tom Sepeze9446f82015-08-13 15:51:43 -0700525 '--no_auth',
526 '--bucket', 'chromium-clang-format',
Ankit Kumar01846f72020-07-01 07:37:23 +0000527 '-s', 'buildtools/win/clang-format.exe.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700528 ],
529 },
530 {
Alan Screen4678e4a2022-04-14 01:59:14 +0000531 'name': 'clang_format_mac_x64',
Tom Sepeze9446f82015-08-13 15:51:43 -0700532 'pattern': '.',
Alan Screen4678e4a2022-04-14 01:59:14 +0000533 'condition': 'host_os == "mac" and host_cpu == "x64"',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000534 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000535 'third_party/depot_tools/download_from_google_storage.py',
Tom Sepeze9446f82015-08-13 15:51:43 -0700536 '--no_resume',
Tom Sepeze9446f82015-08-13 15:51:43 -0700537 '--no_auth',
538 '--bucket', 'chromium-clang-format',
Alan Screen4678e4a2022-04-14 01:59:14 +0000539 '-s', 'buildtools/mac/clang-format.x64.sha1',
K. Moonb96b71b2022-04-20 17:15:28 +0000540 '-o', 'buildtools/mac/clang-format',
Alan Screen4678e4a2022-04-14 01:59:14 +0000541 ],
542 },
543 {
544 'name': 'clang_format_mac_arm64',
545 'pattern': '.',
546 'condition': 'host_os == "mac" and host_cpu == "arm64"',
547 'action': [ 'python3',
K. Moonb96b71b2022-04-20 17:15:28 +0000548 'third_party/depot_tools/download_from_google_storage.py',
Alan Screen4678e4a2022-04-14 01:59:14 +0000549 '--no_resume',
550 '--no_auth',
551 '--bucket', 'chromium-clang-format',
K. Moonb96b71b2022-04-20 17:15:28 +0000552 '-s', 'buildtools/mac/clang-format.arm64.sha1',
553 '-o', 'buildtools/mac/clang-format',
Tom Sepeze9446f82015-08-13 15:51:43 -0700554 ],
555 },
556 {
557 'name': 'clang_format_linux',
558 'pattern': '.',
K. Moon0d7c59f2020-04-24 19:26:17 +0000559 'condition': 'host_os == "linux"',
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',
Tom Sepeze9446f82015-08-13 15:51:43 -0700562 '--no_resume',
Tom Sepeze9446f82015-08-13 15:51:43 -0700563 '--no_auth',
564 '--bucket', 'chromium-clang-format',
Ankit Kumar01846f72020-07-01 07:37:23 +0000565 '-s', 'buildtools/linux64/clang-format.sha1',
Tom Sepeze9446f82015-08-13 15:51:43 -0700566 ],
567 },
Oliver Changafaa98e2015-10-21 15:29:47 -0700568 {
Lei Zhang4b1dea82019-02-08 00:39:06 +0000569 # Note: On Win, this should run after win_toolchain, as it may use it.
Oliver Changafaa98e2015-10-21 15:29:47 -0700570 'name': 'clang',
571 'pattern': '.',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000572 'action': ['python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000573 'tools/clang/scripts/update.py'
dsinclair685bb882016-04-20 07:32:39 -0700574 ],
Oliver Changafaa98e2015-10-21 15:29:47 -0700575 },
weili9a1b6652016-04-28 15:26:45 -0700576 {
Lei Zhang728127c2018-02-16 19:26:20 +0000577 'name': 'sysroot_arm',
Tom Anderson19817af2017-07-18 18:00:18 -0700578 'pattern': '.',
Lei Zhang728127c2018-02-16 19:26:20 +0000579 'condition': 'checkout_linux and checkout_arm',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000580 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000581 '--arch=arm'],
582 },
583 {
584 'name': 'sysroot_arm64',
585 'pattern': '.',
586 'condition': 'checkout_linux and checkout_arm64',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000587 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000588 '--arch=arm64'],
589 },
590 {
591 'name': 'sysroot_x86',
592 'pattern': '.',
593 'condition': 'checkout_linux and (checkout_x86 or checkout_x64)',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000594 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000595 '--arch=x86'],
596 },
597 {
598 'name': 'sysroot_mips',
599 'pattern': '.',
600 'condition': 'checkout_linux and checkout_mips',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000601 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000602 '--arch=mips'],
603 },
604 {
605 'name': 'sysroot_x64',
606 'pattern': '.',
607 'condition': 'checkout_linux and checkout_x64',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000608 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
Lei Zhang728127c2018-02-16 19:26:20 +0000609 '--arch=x64'],
Tom Anderson19817af2017-07-18 18:00:18 -0700610 },
611 {
Tom Anderson331f3eb2021-10-22 00:49:44 +0000612 'name': 'test_fonts',
613 'pattern': '.',
614 'action': [ 'python3',
615 'third_party/depot_tools/download_from_google_storage.py',
616 '--no_resume',
617 '--extract',
618 '--no_auth',
619 '--bucket', 'chromium-fonts',
620 '-s', 'third_party/test_fonts/test_fonts.tar.gz.sha1',
621 ],
622 },
623 {
Lei Zhangab384ed2017-12-21 08:00:44 +0000624 'name': 'msan_chained_origins',
625 'pattern': '.',
626 'condition': 'checkout_instrumented_libraries',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000627 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000628 'third_party/depot_tools/download_from_google_storage.py',
Lei Zhang73b4e772020-04-13 23:35:48 +0000629 '--no_resume',
630 '--no_auth',
631 '--bucket', 'chromium-instrumented-libraries',
Lei Zhang2055fc42021-10-19 00:18:59 +0000632 '-s', 'third_party/instrumented_libraries/binaries/msan-chained-origins.tgz.sha1',
Lei Zhangab384ed2017-12-21 08:00:44 +0000633 ],
634 },
635 {
636 'name': 'msan_no_origins',
637 'pattern': '.',
638 'condition': 'checkout_instrumented_libraries',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000639 'action': [ 'python3',
Ankit Kumar01846f72020-07-01 07:37:23 +0000640 'third_party/depot_tools/download_from_google_storage.py',
Lei Zhang73b4e772020-04-13 23:35:48 +0000641 '--no_resume',
642 '--no_auth',
643 '--bucket', 'chromium-instrumented-libraries',
Lei Zhang2055fc42021-10-19 00:18:59 +0000644 '-s', 'third_party/instrumented_libraries/binaries/msan-no-origins.tgz.sha1',
Lei Zhangab384ed2017-12-21 08:00:44 +0000645 ],
Tom Anderson4e8edf52017-03-30 18:27:21 -0700646 },
Lei Zhangd3220622018-08-27 17:43:10 +0000647 {
648 # Update LASTCHANGE.
649 'name': 'lastchange',
650 'pattern': '.',
Lei Zhangfc24fe52021-10-20 16:41:38 +0000651 'action': ['python3', 'build/util/lastchange.py',
Ankit Kumar01846f72020-07-01 07:37:23 +0000652 '-o', 'build/util/LASTCHANGE'],
Lei Zhangd3220622018-08-27 17:43:10 +0000653 },
Tom Sepeze9446f82015-08-13 15:51:43 -0700654]