blob: 51a4f47c4baa885467f55b334494df0ac9a5548e [file] [log] [blame]
Jamie Madill4237e532019-06-28 11:14:31 -04001# This file is used to manage the dependencies of the ANGLE git repo. It is
2# used by gclient to determine what version of each dependency to check out, and
3# where.
4
Jamie Madill8ba50492019-10-10 17:46:54 -04005# Avoids the need for a custom root variable.
6use_relative_paths = True
Jamie Madill8ba50492019-10-10 17:46:54 -04007
Jamie Madill23211582020-07-21 10:08:03 -04008gclient_gn_args_file = 'build/config/gclient_args.gni'
Jonah Ryan-Davis84eb7d82020-07-27 16:27:36 -04009gclient_gn_args = [
10 'mac_xcode_version',
11]
Jamie Madill23211582020-07-21 10:08:03 -040012
Jamie Madill2fdd3da2015-07-20 10:14:54 -040013vars = {
Jonah Ryan-Davis84eb7d82020-07-27 16:27:36 -040014 # This can be overridden, e.g. with custom_vars, to download a nonstandard
15 # Xcode version in build/mac_toolchain.py instead of downloading the
16 # prebuilt pinned revision.
17 'mac_xcode_version': 'default',
18
Jamie Madill37ee8a62016-12-13 15:18:58 -050019 'android_git': 'https://android.googlesource.com',
Jamie Madill2fdd3da2015-07-20 10:14:54 -040020 'chromium_git': 'https://chromium.googlesource.com',
Jamie Madill67a017f2019-10-10 15:27:27 -040021 'chrome_internal_git': 'https://chrome-internal.googlesource.com',
Jamie Madill8be7a4c2019-09-19 12:48:31 -040022 'swiftshader_git': 'https://swiftshader.googlesource.com',
Jamie Madill027717f2018-04-13 15:51:24 -040023
Edward Lemur8ae09b02018-06-01 14:18:28 -040024 # This variable is overrided in Chromium's DEPS file.
25 'build_with_chromium': False,
26
Jamie Madill67a017f2019-10-10 15:27:27 -040027 # Only check out public sources by default. This can be overridden with custom_vars.
Cody Northrop84f45f12019-12-18 14:34:29 -070028 'checkout_angle_internal': False,
Jamie Madill4237e532019-06-28 11:14:31 -040029
Jamie Madill1948af32019-10-11 17:49:24 -040030 # Version of Chromium our Chromium-based DEPS are mirrored from.
angle-autoroll9a7e7b02020-09-11 07:00:28 +000031 'chromium_revision': 'fe51fcb522ccfd37e2b2c92b09d72973f9031d5d',
Yuly Novikov6a652f12020-08-12 21:12:47 -040032 # We never want to checkout chromium,
33 # but need a dummy DEPS entry for the autoroller
34 'dummy_checkout_chromium': False,
Jamie Madill1948af32019-10-11 17:49:24 -040035
Courtney Goeltzenleuchterfebdcf52019-10-28 10:54:03 -060036 # Current revision of VK-GL-CTS (a.k.a dEQP).
angle-autoroll72f6b992020-09-06 11:44:48 +000037 'vk_gl_cts_revision': 'a48ed7c2914418c93890fc19c26338e8c16521a5',
Edward Lemur8ae09b02018-06-01 14:18:28 -040038
39 # Current revision of glslang, the Khronos SPIRV compiler.
angle-autoroll2d002622020-09-08 11:56:01 +000040 'glslang_revision': '6a6e311d81ddfa6debf5659f05c311e3b57b5f77',
Edward Lemur8ae09b02018-06-01 14:18:28 -040041
Jamie Madill07035682019-10-25 09:00:41 -040042 # Current revision of googletest.
43 # Note: this dep cannot be auto-rolled b/c of nesting.
Yuly Novikov7d38b0b2020-08-19 17:33:31 -040044 'googletest_revision': '4fe018038f87675c083d0cfb6a6b57c274fb1753',
45
46 # Current revision of Chrome's third_party googletest directory. This
47 # repository is mirrored as a separate repository, with separate git hashes
48 # that don't match the external googletest repository or Chrome. Mirrored
49 # patches will have a different git hash associated with them.
50 # To roll, first get the new hash for chromium_googletest_revision from the
51 # mirror of third_party/googletest located here:
52 # https://chromium.googlesource.com/chromium/src/third_party/googletest/
53 # Then get the new hash for googletest_revision from the root Chrome DEPS
54 # file: https://source.chromium.org/chromium/chromium/src/+/master:DEPS
55 'chromium_googletest_revision': 'c20c5a3085ab4d90fdb403e3ac98e7991317dd27',
Jamie Madill07035682019-10-25 09:00:41 -040056
Jamie Madille7c8e802019-10-26 08:16:12 -040057 # Current revision of jsoncpp.
58 # Note: this dep cannot be auto-rolled b/c of nesting.
59 'jsoncpp_revision': '645250b6690785be60ab6780ce4b58698d884d11',
60
Jordan Bayles1265dbe2020-06-24 15:12:17 -070061 # Current revision of Chrome's third_party jsoncpp directory. This repository
62 # is mirrored as a separate repository, with separate git hashes that
63 # don't match the external JsonCpp repository or Chrome. Mirrored patches
64 # will have a different git hash associated with them.
65 # To roll, first get the new hash for chromium_jsoncpp_revision from the
66 # mirror of third_party/jsoncpp located here:
67 # https://chromium.googlesource.com/chromium/src/third_party/jsoncpp/
68 # Then get the new hash for jsoncpp_revision from the root Chrome DEPS file:
69 # https://source.chromium.org/chromium/chromium/src/+/master:DEPS
Yuly Novikov7d38b0b2020-08-19 17:33:31 -040070 'chromium_jsoncpp_revision': '30a6ac108e24dabac7c2e0df4d33d55032af4ee7',
Jordan Bayles1265dbe2020-06-24 15:12:17 -070071
Jamie Madille7c8e802019-10-26 08:16:12 -040072 # Current revision of patched-yasm.
73 # Note: this dep cannot be auto-rolled b/c of nesting.
74 'patched_yasm_revision': '720b70524a4424b15fc57e82263568c8ba0496ad',
75
Le Quyena5a04ac2019-10-29 22:57:55 +080076 # Current revision of spirv-cross, the Khronos SPIRV cross compiler.
Le Hoang Quyenbcf99572020-05-11 00:50:00 +080077 'spirv_cross_revision': 'f38cbeb814c73510b85697adbe5e894f9eac978f',
Le Quyena5a04ac2019-10-29 22:57:55 +080078
Edward Lemur8ae09b02018-06-01 14:18:28 -040079 # Current revision fo the SPIRV-Headers Vulkan support library.
angle-autorolld57f0432020-08-11 07:01:30 +000080 'spirv_headers_revision': '3fdabd0da2932c276b25b9b4a988ba134eba1aa6',
Edward Lemur8ae09b02018-06-01 14:18:28 -040081
82 # Current revision of SPIRV-Tools for Vulkan.
angle-autoroll8fd41df2020-09-10 10:01:03 +000083 'spirv_tools_revision': '2de7d3af0c0ed8b0fcff7b83b36c5a7424e51e19',
Edward Lemur8ae09b02018-06-01 14:18:28 -040084
Tobin Ehlisb971f492018-05-24 10:56:17 -060085 # Current revision of Khronos Vulkan-Headers.
angle-autorollddf0fba2020-09-07 10:01:10 +000086 'vulkan_headers_revision': 'f0e102e481975007b4a3187c5ccf49cad3f0e158',
Tobin Ehlisb971f492018-05-24 10:56:17 -060087
88 # Current revision of Khronos Vulkan-Loader.
angle-autorollcfa2a2c2020-09-08 10:01:57 +000089 'vulkan_loader_revision': '45f2f18a69eb68b03a3825340a0b5c1e889bff83',
Tobin Ehlisb971f492018-05-24 10:56:17 -060090
91 # Current revision of Khronos Vulkan-Tools.
angle-autoroll4331ba72020-09-11 10:01:28 +000092 'vulkan_tools_revision': 'd19622688af4b854c367a6f373b02d0c748f7e26',
Tobin Ehlisb971f492018-05-24 10:56:17 -060093
94 # Current revision of Khronos Vulkan-ValidationLayers.
angle-autoroll65dcbe12020-09-10 10:01:03 +000095 'vulkan_validation_revision': 'fcb7ecbe49c5d99addcb6261f5fa80c41f355bc7',
Geoff Lang6e687af2019-10-17 14:36:41 -040096
97 # Three lines of non-changing comments so that
98 # the commit queue can handle CLs rolling catapult
99 # and whatever else without interference from each other.
100 'catapult_revision': '1b3fb455bf1849f1e6187e1eaeaef32b9f30d3c5',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400101}
102
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000103deps = {
alokp@chromium.org416fcd32012-04-11 16:23:44 +0000104
Jamie Madill8ba50492019-10-10 17:46:54 -0400105 'build': {
angle-autoroll9a7e7b02020-09-11 07:00:28 +0000106 'url': '{chromium_git}/chromium/src/build.git@41b95e3b549ea17726b067ef1b2d151d51ca0ee9',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400107 'condition': 'not build_with_chromium',
108 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400109
Jamie Madill8ba50492019-10-10 17:46:54 -0400110 'buildtools': {
angle-autoroll84508b92020-09-10 07:01:40 +0000111 'url': '{chromium_git}/chromium/src/buildtools.git@a90362b4fcee287764f46f57c7880f4643dae5d3',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400112 'condition': 'not build_with_chromium',
113 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400114
Jamie Madill8ba50492019-10-10 17:46:54 -0400115 'testing': {
angle-autoroll9a7e7b02020-09-11 07:00:28 +0000116 'url': '{chromium_git}/chromium/src/testing@64f2e1cf551845e19e7c204d4f957519920b26f3',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400117 'condition': 'not build_with_chromium',
118 },
alokp@chromium.org5cd9c602012-05-16 23:37:50 +0000119
Tim Van Pattened337952020-07-23 12:58:10 -0600120 'third_party/abseil-cpp': {
angle-autoroll9a7e7b02020-09-11 07:00:28 +0000121 'url': '{chromium_git}/chromium/src/third_party/abseil-cpp@9967a97317a6eb9280e92f589dc701cd2bf55e12',
Tim Van Pattened337952020-07-23 12:58:10 -0600122 'condition': 'not build_with_chromium',
123 },
124
Jamie Madill23211582020-07-21 10:08:03 -0400125 'third_party/android_ndk': {
126 'url': '{chromium_git}/android_ndk.git@27c0a8d090c666a50e40fceb4ee5b40b1a2d3f87',
127 'condition': 'checkout_android and not build_with_chromium',
128 },
129
130 'third_party/catapult': {
131 'url': '{chromium_git}/catapult.git@{catapult_revision}',
132 'condition': 'checkout_android and not build_with_chromium',
133 },
134
Courtney Goeltzenleuchterfebdcf52019-10-28 10:54:03 -0600135 # Cherry is a dEQP/VK-GL-CTS management GUI written in Go. We use it for viewing test results.
Jamie Madill8ba50492019-10-10 17:46:54 -0400136 'third_party/cherry': {
Edward Lemur8ae09b02018-06-01 14:18:28 -0400137 'url': '{android_git}/platform/external/cherry@4f8fb08d33ca5ff05a1c638f04c85bbb8d8b52cc',
138 'condition': 'not build_with_chromium',
139 },
Jamie Madill9e76f562015-10-02 08:57:14 -0400140
Yuly Novikov6a652f12020-08-12 21:12:47 -0400141 # We never want to checkout chromium,
142 # but need a dummy DEPS entry for the autoroller
143 'third_party/dummy_chromium': {
144 'url': '{chromium_git}/chromium/src.git@{chromium_revision}',
145 'condition': 'dummy_checkout_chromium',
146 },
147
Jamie Madill8ba50492019-10-10 17:46:54 -0400148 'third_party/fuchsia-sdk': {
Jamie Madill130fdbc2019-10-10 19:13:07 -0400149 'url': '{chromium_git}/chromium/src/third_party/fuchsia-sdk.git@1785f0ac8e1fe81cb25e260acbe7de8f62fa3e44',
Jamie Madill9f958342019-04-08 09:40:40 -0400150 'condition': 'checkout_fuchsia and not build_with_chromium',
151 },
152
Jamie Madill67a017f2019-10-10 15:27:27 -0400153 # Closed-source OpenGL ES 1.1 Conformance tests.
Jamie Madill8ba50492019-10-10 17:46:54 -0400154 'third_party/gles1_conform': {
Jamie Madill67a017f2019-10-10 15:27:27 -0400155 'url': '{chrome_internal_git}/angle/es-cts.git@dc9f502f709c9cd88d7f8d3974f1c77aa246958e',
Cody Northrop84f45f12019-12-18 14:34:29 -0700156 'condition': 'checkout_angle_internal',
Jamie Madill67a017f2019-10-10 15:27:27 -0400157 },
158
Jamie Madill55959b02019-03-05 10:07:41 -0500159 # glmark2 is a GPL3-licensed OpenGL ES 2.0 benchmark. We use it for testing.
Jamie Madill8ba50492019-10-10 17:46:54 -0400160 'third_party/glmark2/src': {
Jamie Madill2971fd32019-08-12 16:53:21 -0400161 'url': '{chromium_git}/external/github.com/glmark2/glmark2@9e01aef1a786b28aca73135a5b00f85c357e8f5e',
Jamie Madill55959b02019-03-05 10:07:41 -0500162 },
163
Jamie Madill8ba50492019-10-10 17:46:54 -0400164 'third_party/glslang/src': {
Tobin Ehlis317a9eb2018-11-29 12:51:46 -0700165 'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@{glslang_revision}',
Jamie Madill0cb3b0f2019-01-28 09:55:20 -0500166 'condition': 'not build_with_chromium',
Jamie Madill55959b02019-03-05 10:07:41 -0500167 },
Jamie Madill37ee8a62016-12-13 15:18:58 -0500168
Jamie Madill8ba50492019-10-10 17:46:54 -0400169 'third_party/googletest': {
Yuly Novikov7d38b0b2020-08-19 17:33:31 -0400170 'url': '{chromium_git}/chromium/src/third_party/googletest@{chromium_googletest_revision}',
Jamie Madillcf9b2852019-02-13 09:15:26 -0500171 'condition': 'not build_with_chromium',
172 },
173
Jamie Madill55959b02019-03-05 10:07:41 -0500174 # libjpeg_turbo is used by glmark2.
Jamie Madill8ba50492019-10-10 17:46:54 -0400175 'third_party/libjpeg_turbo': {
Yuly Novikov5dff6072020-08-19 20:57:36 -0400176 'url': '{chromium_git}/chromium/deps/libjpeg_turbo.git@9d4f8005bc6c888e66b00fd00188531ee9bd3344',
Jamie Madill55959b02019-03-05 10:07:41 -0500177 'condition': 'not build_with_chromium',
178 },
179
Jamie Madill8ba50492019-10-10 17:46:54 -0400180 'third_party/libpng/src': {
Edward Lemur8ae09b02018-06-01 14:18:28 -0400181 'url': '{android_git}/platform/external/libpng@094e181e79a3d6c23fd005679025058b7df1ad6c',
182 'condition': 'not build_with_chromium',
183 },
Jamie Madill37ee8a62016-12-13 15:18:58 -0500184
Jamie Madill8ba50492019-10-10 17:46:54 -0400185 'third_party/jsoncpp': {
Jordan Bayles1265dbe2020-06-24 15:12:17 -0700186 'url': '{chromium_git}/chromium/src/third_party/jsoncpp@{chromium_jsoncpp_revision}',
Jamie Madill0cb3b0f2019-01-28 09:55:20 -0500187 'condition': 'not build_with_chromium',
188 },
Tobin Ehlis5fdc38c2018-08-28 09:20:57 -0600189
Jamie Madill43951702020-04-27 16:57:46 -0400190 'third_party/nasm': {
Jamie Madill23211582020-07-21 10:08:03 -0400191 'url': '{chromium_git}/chromium/deps/nasm.git@19f3fad68da99277b2882939d3b2fa4c4b8d51d9',
Jamie Madill43951702020-04-27 16:57:46 -0400192 'condition': 'not build_with_chromium',
193 },
194
Jamie Madill8ba50492019-10-10 17:46:54 -0400195 'third_party/Python-Markdown': {
Yuly Novikov5dff6072020-08-19 20:57:36 -0400196 'url': '{chromium_git}/chromium/src/third_party/Python-Markdown@ad4fc19d612de0a3f6ea19441af703ff5a5223f3',
Jamie Madill9f958342019-04-08 09:40:40 -0400197 'condition': 'not build_with_chromium',
198 },
199
Jamie Madill8ba50492019-10-10 17:46:54 -0400200 'third_party/qemu-linux-x64': {
Michael Spang229fc832019-01-21 18:09:15 -0500201 'packages': [
202 {
203 'package': 'fuchsia/qemu/linux-amd64',
204 'version': '9cc486c5b18a0be515c39a280ca9a309c54cf994'
205 },
206 ],
207 'condition': 'not build_with_chromium and (host_os == "linux" and checkout_fuchsia)',
208 'dep_type': 'cipd',
209 },
210
Jamie Madill8ba50492019-10-10 17:46:54 -0400211 'third_party/qemu-mac-x64': {
Michael Spang229fc832019-01-21 18:09:15 -0500212 'packages': [
213 {
214 'package': 'fuchsia/qemu/mac-amd64',
215 'version': '2d3358ae9a569b2d4a474f498b32b202a152134f'
216 },
217 ],
218 'condition': 'not build_with_chromium and (host_os == "mac" and checkout_fuchsia)',
219 'dep_type': 'cipd',
220 },
221
Jamie Madill8ba50492019-10-10 17:46:54 -0400222 'third_party/rapidjson/src': {
Jamie Madill46d32e02019-02-25 17:13:16 -0500223 'url': '{chromium_git}/external/github.com/Tencent/rapidjson@7484e06c589873e1ed80382d262087e4fa80fb63',
224 },
225
Le Quyena5a04ac2019-10-29 22:57:55 +0800226 'third_party/spirv-cross/src': {
227 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@{spirv_cross_revision}',
228 'condition': 'not build_with_chromium',
229 },
230
Jamie Madill8ba50492019-10-10 17:46:54 -0400231 'third_party/spirv-headers/src': {
Jamie Madill0cb3b0f2019-01-28 09:55:20 -0500232 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@{spirv_headers_revision}',
Corentin Walleza883dd02018-08-03 18:11:46 +0200233 'condition': 'not build_with_chromium',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400234 },
Jamie Madill37ee8a62016-12-13 15:18:58 -0500235
Jamie Madill8ba50492019-10-10 17:46:54 -0400236 'third_party/spirv-tools/src': {
Jamie Madill0cb3b0f2019-01-28 09:55:20 -0500237 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@{spirv_tools_revision}',
Corentin Walleza883dd02018-08-03 18:11:46 +0200238 'condition': 'not build_with_chromium',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400239 },
Jamie Madill37ee8a62016-12-13 15:18:58 -0500240
Jamie Madill8ba50492019-10-10 17:46:54 -0400241 'third_party/SwiftShader': {
angle-autoroll8b1f0462020-09-10 10:01:58 +0000242 'url': '{swiftshader_git}/SwiftShader@b24900a1aa39721dc53824c01d4169c1d1a4a6e1',
Jamie Madill8be7a4c2019-09-19 12:48:31 -0400243 'condition': 'not build_with_chromium',
244 },
245
Tim Van Pattened337952020-07-23 12:58:10 -0600246 'third_party/VK-GL-CTS/src': {
247 'url': '{chromium_git}/external/github.com/KhronosGroup/VK-GL-CTS@{vk_gl_cts_revision}',
248 },
249
Jamie Madill8ba50492019-10-10 17:46:54 -0400250 'third_party/vulkan-headers/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600251 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@{vulkan_headers_revision}',
252 },
253
Jamie Madill8ba50492019-10-10 17:46:54 -0400254 'third_party/vulkan-loader/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600255 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Loader@{vulkan_loader_revision}',
256 },
257
Tim Van Pattened337952020-07-23 12:58:10 -0600258 'third_party/vulkan_memory_allocator': {
259 'url': '{chromium_git}/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator@065e739079d9d58bef28ccd793cbf512261f09ed',
260 'condition': 'not build_with_chromium',
261 },
262
Jamie Madill8ba50492019-10-10 17:46:54 -0400263 'third_party/vulkan-tools/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600264 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Tools@{vulkan_tools_revision}',
265 },
266
Jamie Madill8ba50492019-10-10 17:46:54 -0400267 'third_party/vulkan-validation-layers/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600268 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@{vulkan_validation_revision}',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400269 },
Jamie Madill3cd438d2015-03-17 11:25:27 -0400270
Jamie Madill8ba50492019-10-10 17:46:54 -0400271 'third_party/zlib': {
angle-autoroll9a7e7b02020-09-11 07:00:28 +0000272 'url': '{chromium_git}/chromium/src/third_party/zlib@f8517bd62931d7adb9bcefb0cbe3c2ca5cd8862c',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400273 'condition': 'not build_with_chromium',
274 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400275
Jamie Madill8ba50492019-10-10 17:46:54 -0400276 'tools/clang': {
angle-autoroll7598f4b2020-09-09 07:00:17 +0000277 'url': '{chromium_git}/chromium/src/tools/clang.git@97d6ab3da35a8b5abfa2b78cc6aac9dff3122b07',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400278 'condition': 'not build_with_chromium',
279 },
Michael Spang229fc832019-01-21 18:09:15 -0500280
Le Hoang Quyencaeb2172019-11-20 22:30:17 +0800281 'tools/clang/dsymutil': {
282 'packages': [
283 {
284 'package': 'chromium/llvm-build-tools/dsymutil',
285 'version': 'M56jPzDv1620Rnm__jTMYS62Zi8rxHVq7yw0qeBFEgkC',
286 }
287 ],
288 'condition': 'checkout_mac and not build_with_chromium',
289 'dep_type': 'cipd',
290 },
291
Jamie Madill8ba50492019-10-10 17:46:54 -0400292 'tools/md_browser': {
Yuly Novikov5dff6072020-08-19 20:57:36 -0400293 'url': '{chromium_git}/chromium/src/tools/md_browser@60141af3603925d99bf3fb22fdfca138416339b1',
Jamie Madill9f958342019-04-08 09:40:40 -0400294 'condition': 'not build_with_chromium',
Michael Spang229fc832019-01-21 18:09:15 -0500295 },
Jamie Madilldf0ce012019-09-05 11:04:39 -0400296
Jamie Madill8ba50492019-10-10 17:46:54 -0400297 'tools/memory': {
Yuly Novikov5dff6072020-08-19 20:57:36 -0400298 'url': '{chromium_git}/chromium/src/tools/memory@ee1e2448132431e7519c2a72ff612e079f13a9d6',
Jamie Madilldf0ce012019-09-05 11:04:39 -0400299 'condition': 'not build_with_chromium',
300 },
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000301}
302
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000303hooks = [
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400304 # Pull clang-format binaries using checked-in hashes.
305 {
306 'name': 'clang_format_win',
307 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400308 'condition': 'host_os == "win" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400309 'action': [ 'download_from_google_storage',
310 '--no_resume',
311 '--platform=win32',
312 '--no_auth',
313 '--bucket', 'chromium-clang-format',
Jamie Madill8ba50492019-10-10 17:46:54 -0400314 '-s', 'buildtools/win/clang-format.exe.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400315 ],
316 },
317 {
318 'name': 'clang_format_mac',
319 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400320 'condition': 'host_os == "mac" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400321 'action': [ 'download_from_google_storage',
322 '--no_resume',
323 '--platform=darwin',
324 '--no_auth',
325 '--bucket', 'chromium-clang-format',
Jamie Madill8ba50492019-10-10 17:46:54 -0400326 '-s', 'buildtools/mac/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400327 ],
328 },
329 {
330 'name': 'clang_format_linux',
331 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400332 'condition': 'host_os == "linux" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400333 'action': [ 'download_from_google_storage',
334 '--no_resume',
335 '--platform=linux*',
336 '--no_auth',
337 '--bucket', 'chromium-clang-format',
Jamie Madill8ba50492019-10-10 17:46:54 -0400338 '-s', 'buildtools/linux64/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400339 ],
340 },
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600341 {
342 'name': 'sysroot_x86',
343 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400344 'condition': 'checkout_linux and ((checkout_x86 or checkout_x64) and not build_with_chromium)',
Jamie Madill8ba50492019-10-10 17:46:54 -0400345 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600346 '--arch=x86'],
347 },
348 {
349 'name': 'sysroot_x64',
350 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400351 'condition': 'checkout_linux and (checkout_x64 and not build_with_chromium)',
Jamie Madill8ba50492019-10-10 17:46:54 -0400352 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600353 '--arch=x64'],
354 },
Jamie Madill027717f2018-04-13 15:51:24 -0400355 {
356 # Update the Windows toolchain if necessary. Must run before 'clang' below.
357 'name': 'win_toolchain',
358 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400359 'condition': 'checkout_win and not build_with_chromium',
Jamie Madill8ba50492019-10-10 17:46:54 -0400360 'action': ['python', 'build/vs_toolchain.py', 'update', '--force'],
Jamie Madill027717f2018-04-13 15:51:24 -0400361 },
Geoff Lang66ae5312019-04-01 16:35:53 -0400362 {
363 # Update the Mac toolchain if necessary.
364 'name': 'mac_toolchain',
365 'pattern': '.',
366 'condition': 'checkout_mac and not build_with_chromium',
Jamie Madill8ba50492019-10-10 17:46:54 -0400367 'action': ['python', 'build/mac_toolchain.py'],
Geoff Lang66ae5312019-04-01 16:35:53 -0400368 },
Jamie Madill027717f2018-04-13 15:51:24 -0400369
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000370 {
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400371 # Note: On Win, this should run after win_toolchain, as it may use it.
372 'name': 'clang',
373 'pattern': '.',
Jamie Madill8ba50492019-10-10 17:46:54 -0400374 'action': ['python', 'tools/clang/scripts/update.py'],
Edward Lemur8ae09b02018-06-01 14:18:28 -0400375 'condition': 'not build_with_chromium',
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400376 },
Jamie Madill940c48b2017-10-23 23:25:17 -0400377
Shahbaz Youssefi957e9b82018-10-05 11:00:50 -0400378 {
379 # Update LASTCHANGE.
380 'name': 'lastchange',
381 'pattern': '.',
382 'condition': 'not build_with_chromium',
Jamie Madill8ba50492019-10-10 17:46:54 -0400383 'action': ['python', 'build/util/lastchange.py',
384 '-o', 'build/util/LASTCHANGE'],
Shahbaz Youssefi957e9b82018-10-05 11:00:50 -0400385 },
386
Jamie Madill940c48b2017-10-23 23:25:17 -0400387 # Pull rc binaries using checked-in hashes.
388 {
389 'name': 'rc_win',
390 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400391 'condition': 'checkout_win and (host_os == "win" and not build_with_chromium)',
Jamie Madill940c48b2017-10-23 23:25:17 -0400392 'action': [ 'download_from_google_storage',
393 '--no_resume',
394 '--no_auth',
395 '--bucket', 'chromium-browser-clang/rc',
Jamie Madill8ba50492019-10-10 17:46:54 -0400396 '-s', 'build/toolchain/win/rc/win/rc.exe.sha1',
Jamie Madill940c48b2017-10-23 23:25:17 -0400397 ],
398 },
Michael Spang229fc832019-01-21 18:09:15 -0500399
400 {
401 'name': 'fuchsia_sdk',
402 'pattern': '.',
403 'condition': 'checkout_fuchsia and not build_with_chromium',
404 'action': [
405 'python',
Jamie Madill8ba50492019-10-10 17:46:54 -0400406 'build/fuchsia/update_sdk.py',
Michael Spang229fc832019-01-21 18:09:15 -0500407 ],
408 },
Jamie Madilld5ff4fa2019-04-08 09:25:23 -0400409
Shahbaz Youssefi82418c82019-04-05 15:56:03 -0400410 # Download glslang validator binary for Linux.
411 {
412 'name': 'linux_glslang_validator',
413 'pattern': '.',
414 'condition': 'checkout_linux and not build_with_chromium',
415 'action': [ 'download_from_google_storage',
416 '--no_resume',
417 '--platform=linux*',
418 '--no_auth',
419 '--bucket', 'angle-glslang-validator',
Jamie Madill8ba50492019-10-10 17:46:54 -0400420 '-s', 'tools/glslang/glslang_validator.sha1',
Shahbaz Youssefi82418c82019-04-05 15:56:03 -0400421 ],
422 },
423
Jamie Madilld5ff4fa2019-04-08 09:25:23 -0400424 # Download glslang validator binary for Windows.
425 {
426 'name': 'win_glslang_validator',
427 'pattern': '.',
428 'condition': 'checkout_win and not build_with_chromium',
429 'action': [ 'download_from_google_storage',
430 '--no_resume',
431 '--platform=win32*',
432 '--no_auth',
433 '--bucket', 'angle-glslang-validator',
Jamie Madill8ba50492019-10-10 17:46:54 -0400434 '-s', 'tools/glslang/glslang_validator.exe.sha1',
Jamie Madilld5ff4fa2019-04-08 09:25:23 -0400435 ],
436 },
Shahbaz Youssefi5efb36b2019-11-25 16:14:55 -0500437
438 # Download flex/bison binaries for Linux.
439 {
440 'name': 'linux_flex_bison',
441 'pattern': '.',
442 'condition': 'checkout_linux and not build_with_chromium',
443 'action': [ 'download_from_google_storage',
444 '--no_resume',
445 '--platform=linux*',
446 '--no_auth',
447 '--bucket', 'angle-flex-bison',
448 '-d', 'tools/flex-bison/linux/',
449 ],
450 },
451
452 # Download flex/bison binaries for Windows.
453 {
454 'name': 'win_flex_bison',
455 'pattern': '.',
456 'condition': 'checkout_win and not build_with_chromium',
457 'action': [ 'download_from_google_storage',
458 '--no_resume',
459 '--platform=win32*',
460 '--no_auth',
461 '--bucket', 'angle-flex-bison',
462 '-d', 'tools/flex-bison/windows/',
463 ],
464 },
Cody Northrop080d7112020-01-08 13:04:44 -0700465
466 # Download internal captures for perf tests
467 {
468 'name': 'restricted_traces',
469 'pattern': '\\.sha1',
470 'condition': 'checkout_angle_internal',
Courtney Goeltzenleuchtere474cc92020-06-18 16:03:30 -0600471 'action': [ 'python',
472 'src/tests/perf_tests/restricted_traces/download_restricted_traces.py',
Jamie Madillee0498b2020-02-15 09:24:03 -0500473 'src/tests/perf_tests/restricted_traces',
Cody Northrop080d7112020-01-08 13:04:44 -0700474 ]
475 }
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000476]
Jamie Madill20789312016-10-28 14:05:26 -0400477
478recursedeps = [
479 # buildtools provides clang_format.
Jamie Madill8ba50492019-10-10 17:46:54 -0400480 'buildtools',
Jamie Madill07035682019-10-25 09:00:41 -0400481 'third_party/googletest',
Jamie Madille7c8e802019-10-26 08:16:12 -0400482 'third_party/jsoncpp',
Jamie Madill20789312016-10-28 14:05:26 -0400483]