blob: eb8ac5f22bb909b72460a3aeaefd05d5128238fd [file] [log] [blame]
Jamie Madill2fdd3da2015-07-20 10:14:54 -04001vars = {
Jamie Madill37ee8a62016-12-13 15:18:58 -05002 'android_git': 'https://android.googlesource.com',
Jamie Madill2fdd3da2015-07-20 10:14:54 -04003 'chromium_git': 'https://chromium.googlesource.com',
Jamie Madill027717f2018-04-13 15:51:24 -04004
Yuly Novikov85d8ee82018-09-12 17:36:57 +00005 # This variable is set on the Chrome infra for compatiblity with gclient.
6 'angle_root': '.',
7
Edward Lemur8ae09b02018-06-01 14:18:28 -04008 # This variable is overrided in Chromium's DEPS file.
9 'build_with_chromium': False,
10
11 # Current revision of dEQP.
Jamie Madill915d4062019-01-28 18:15:43 -050012 'deqp_revision': '66a49e0a43f7af654ee1de8a3b1bcaf6c0d14aa4',
Edward Lemur8ae09b02018-06-01 14:18:28 -040013
14 # Current revision of glslang, the Khronos SPIRV compiler.
Jamie Madillb7b0fea2019-02-01 08:43:55 -050015 'glslang_revision': 'de3b8e3bf3893a40a1d9c3b0ed4de750e436e30f',
Edward Lemur8ae09b02018-06-01 14:18:28 -040016
17 # Current revision fo the SPIRV-Headers Vulkan support library.
Jamie Madill0cb3b0f2019-01-28 09:55:20 -050018 'spirv_headers_revision': '79b6681aadcb53c27d1052e5f8a0e82a981dbf2f',
Edward Lemur8ae09b02018-06-01 14:18:28 -040019
20 # Current revision of SPIRV-Tools for Vulkan.
Jamie Madill0cb3b0f2019-01-28 09:55:20 -050021 'spirv_tools_revision': 'd14db341b834cfb3c574a258c331b3a6b1c2cbc5',
Edward Lemur8ae09b02018-06-01 14:18:28 -040022
Tobin Ehlisb971f492018-05-24 10:56:17 -060023 # Current revision of Khronos Vulkan-Headers.
Tobin Ehlis317a9eb2018-11-29 12:51:46 -070024 'vulkan_headers_revision': 'b65941cc4b2b43b74de00534d110b581c52c394b',
Tobin Ehlisb971f492018-05-24 10:56:17 -060025
26 # Current revision of Khronos Vulkan-Loader.
Tobin Ehlis317a9eb2018-11-29 12:51:46 -070027 'vulkan_loader_revision': '2aa6dcc10189f7700824bc5e21120beeff013c3a',
Tobin Ehlisb971f492018-05-24 10:56:17 -060028
29 # Current revision of Khronos Vulkan-Tools.
Yuly Novikov7cba6be2018-10-30 15:37:52 +000030 'vulkan_tools_revision': '2e8d601de618eddf2bab8597fd140b2824a060b2',
Tobin Ehlisb971f492018-05-24 10:56:17 -060031
32 # Current revision of Khronos Vulkan-ValidationLayers.
Tobin Ehlis317a9eb2018-11-29 12:51:46 -070033 'vulkan_validation_revision': '0fa2823fa693cc22afaa6e6c6d34aadb97104a2d',
Jamie Madill2fdd3da2015-07-20 10:14:54 -040034}
35
alokp@chromium.org29d56fb2010-04-06 15:42:22 +000036deps = {
alokp@chromium.org416fcd32012-04-11 16:23:44 +000037
Yuly Novikov85d8ee82018-09-12 17:36:57 +000038 '{angle_root}/build': {
Michael Spang229fc832019-01-21 18:09:15 -050039 'url': '{chromium_git}/chromium/src/build.git@9a53be87ebb636c35f2ed9772e5deaeb350d790b',
Edward Lemur8ae09b02018-06-01 14:18:28 -040040 'condition': 'not build_with_chromium',
41 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -040042
Yuly Novikov85d8ee82018-09-12 17:36:57 +000043 '{angle_root}/buildtools': {
Michael Spang229fc832019-01-21 18:09:15 -050044 'url': '{chromium_git}/chromium/buildtools.git@6fbda1b24c1893a893b17aa219b765b9e7c801d8',
Edward Lemur8ae09b02018-06-01 14:18:28 -040045 'condition': 'not build_with_chromium',
46 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -040047
Yuly Novikov85d8ee82018-09-12 17:36:57 +000048 '{angle_root}/testing': {
Jamie Madill1c6b26a2018-11-18 17:03:19 -050049 'url': '{chromium_git}/chromium/src/testing@7bdda3c6577f21fd0ec986a0383ecfce28f5d761',
Edward Lemur8ae09b02018-06-01 14:18:28 -040050 'condition': 'not build_with_chromium',
51 },
alokp@chromium.org5cd9c602012-05-16 23:37:50 +000052
Jamie Madill9e76f562015-10-02 08:57:14 -040053 # Cherry is a dEQP management GUI written in Go. We use it for viewing test results.
Yuly Novikov85d8ee82018-09-12 17:36:57 +000054 '{angle_root}/third_party/cherry': {
Edward Lemur8ae09b02018-06-01 14:18:28 -040055 'url': '{android_git}/platform/external/cherry@4f8fb08d33ca5ff05a1c638f04c85bbb8d8b52cc',
56 'condition': 'not build_with_chromium',
57 },
Jamie Madill9e76f562015-10-02 08:57:14 -040058
Yuly Novikov85d8ee82018-09-12 17:36:57 +000059 '{angle_root}/third_party/deqp/src': {
Jamie Madill915d4062019-01-28 18:15:43 -050060 'url': '{chromium_git}/external/deqp@{deqp_revision}',
Edward Lemur8ae09b02018-06-01 14:18:28 -040061 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050062
Yuly Novikov85d8ee82018-09-12 17:36:57 +000063 '{angle_root}/third_party/glslang/src': {
Tobin Ehlis317a9eb2018-11-29 12:51:46 -070064 'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@{glslang_revision}',
Jamie Madill0cb3b0f2019-01-28 09:55:20 -050065 'condition': 'not build_with_chromium',
66 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050067
Yuly Novikov85d8ee82018-09-12 17:36:57 +000068 '{angle_root}/third_party/googletest/src': {
Jamie Madill1c6b26a2018-11-18 17:03:19 -050069 'url': '{chromium_git}/external/github.com/google/googletest.git@d5932506d6eed73ac80b9bcc47ed723c8c74eb1e',
Edward Lemur8ae09b02018-06-01 14:18:28 -040070 'condition': 'not build_with_chromium',
71 },
Frank Henigman6b076a02017-10-11 13:28:22 -040072
Yuly Novikov85d8ee82018-09-12 17:36:57 +000073 '{angle_root}/third_party/libpng/src': {
Edward Lemur8ae09b02018-06-01 14:18:28 -040074 'url': '{android_git}/platform/external/libpng@094e181e79a3d6c23fd005679025058b7df1ad6c',
75 'condition': 'not build_with_chromium',
76 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050077
Yuly Novikov85d8ee82018-09-12 17:36:57 +000078 '{angle_root}/third_party/jsoncpp': {
Jamie Madill7ada46c2018-09-06 10:58:26 -040079 'url': '{chromium_git}/chromium/src/third_party/jsoncpp@fd0ac8ce63a47e99b71a58f1489136fbb19c9137',
Jamie Madill0cb3b0f2019-01-28 09:55:20 -050080 'condition': 'not build_with_chromium',
81 },
Jamie Madill7ada46c2018-09-06 10:58:26 -040082
Yuly Novikov85d8ee82018-09-12 17:36:57 +000083 '{angle_root}/third_party/jsoncpp/source': {
Jamie Madill0cb3b0f2019-01-28 09:55:20 -050084 'url' : '{chromium_git}/external/github.com/open-source-parsers/jsoncpp@f572e8e42e22cfcf5ab0aea26574f408943edfa4',
85 'condition': 'not build_with_chromium',
86 },
Tobin Ehlis5fdc38c2018-08-28 09:20:57 -060087
Michael Spang229fc832019-01-21 18:09:15 -050088 '{angle_root}/third_party/qemu-linux-x64': {
89 'packages': [
90 {
91 'package': 'fuchsia/qemu/linux-amd64',
92 'version': '9cc486c5b18a0be515c39a280ca9a309c54cf994'
93 },
94 ],
95 'condition': 'not build_with_chromium and (host_os == "linux" and checkout_fuchsia)',
96 'dep_type': 'cipd',
97 },
98
99 '{angle_root}/third_party/qemu-mac-x64': {
100 'packages': [
101 {
102 'package': 'fuchsia/qemu/mac-amd64',
103 'version': '2d3358ae9a569b2d4a474f498b32b202a152134f'
104 },
105 ],
106 'condition': 'not build_with_chromium and (host_os == "mac" and checkout_fuchsia)',
107 'dep_type': 'cipd',
108 },
109
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000110 '{angle_root}/third_party/spirv-headers/src': {
Jamie Madill0cb3b0f2019-01-28 09:55:20 -0500111 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@{spirv_headers_revision}',
Corentin Walleza883dd02018-08-03 18:11:46 +0200112 'condition': 'not build_with_chromium',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400113 },
Jamie Madill37ee8a62016-12-13 15:18:58 -0500114
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000115 '{angle_root}/third_party/spirv-tools/src': {
Jamie Madill0cb3b0f2019-01-28 09:55:20 -0500116 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@{spirv_tools_revision}',
Corentin Walleza883dd02018-08-03 18:11:46 +0200117 'condition': 'not build_with_chromium',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400118 },
Jamie Madill37ee8a62016-12-13 15:18:58 -0500119
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000120 '{angle_root}/third_party/vulkan-headers/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600121 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@{vulkan_headers_revision}',
122 },
123
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000124 '{angle_root}/third_party/vulkan-loader/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600125 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Loader@{vulkan_loader_revision}',
126 },
127
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000128 '{angle_root}/third_party/vulkan-tools/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600129 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Tools@{vulkan_tools_revision}',
130 },
131
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000132 '{angle_root}/third_party/vulkan-validation-layers/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600133 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@{vulkan_validation_revision}',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400134 },
Jamie Madill3cd438d2015-03-17 11:25:27 -0400135
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000136 '{angle_root}/third_party/zlib': {
Jamie Madill720ca442018-12-17 14:04:10 -0500137 'url': '{chromium_git}/chromium/src/third_party/zlib@f95aeb0fa7f136ef4a457a6d9ba6f3c2701a444b',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400138 'condition': 'not build_with_chromium',
139 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400140
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000141 '{angle_root}/tools/clang': {
Jamie Madillc09ae152019-02-01 14:16:32 -0500142 'url': '{chromium_git}/chromium/src/tools/clang.git@3114fbc11f9644c54dd0a4cdbfa867bac50ff983',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400143 'condition': 'not build_with_chromium',
144 },
Michael Spang229fc832019-01-21 18:09:15 -0500145
146 '{angle_root}/third_party/fuchsia-sdk': {
147 'url': '{chromium_git}/chromium/src/third_party/fuchsia-sdk.git@8e8db13b538ecb251e5ce9d5c781fc142f9752fd',
148 'condition': 'checkout_fuchsia and not build_with_chromium',
149 },
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000150}
151
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000152hooks = [
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400153 # Pull clang-format binaries using checked-in hashes.
154 {
155 'name': 'clang_format_win',
156 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400157 'condition': 'host_os == "win" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400158 'action': [ 'download_from_google_storage',
159 '--no_resume',
160 '--platform=win32',
161 '--no_auth',
162 '--bucket', 'chromium-clang-format',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000163 '-s', '{angle_root}/buildtools/win/clang-format.exe.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400164 ],
165 },
166 {
167 'name': 'clang_format_mac',
168 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400169 'condition': 'host_os == "mac" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400170 'action': [ 'download_from_google_storage',
171 '--no_resume',
172 '--platform=darwin',
173 '--no_auth',
174 '--bucket', 'chromium-clang-format',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000175 '-s', '{angle_root}/buildtools/mac/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400176 ],
177 },
178 {
179 'name': 'clang_format_linux',
180 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400181 'condition': 'host_os == "linux" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400182 'action': [ 'download_from_google_storage',
183 '--no_resume',
184 '--platform=linux*',
185 '--no_auth',
186 '--bucket', 'chromium-clang-format',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000187 '-s', '{angle_root}/buildtools/linux64/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400188 ],
189 },
Corentin Wallez570f67d2016-02-05 15:28:24 -0500190 # Pull GN binaries using checked-in hashes.
191 {
192 'name': 'gn_win',
193 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400194 'condition': 'host_os == "win" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500195 'action': [ 'download_from_google_storage',
196 '--no_resume',
197 '--platform=win32',
198 '--no_auth',
199 '--bucket', 'chromium-gn',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000200 '-s', '{angle_root}/buildtools/win/gn.exe.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500201 ],
202 },
203 {
204 'name': 'gn_mac',
205 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400206 'condition': 'host_os == "mac" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500207 'action': [ 'download_from_google_storage',
208 '--no_resume',
209 '--platform=darwin',
210 '--no_auth',
211 '--bucket', 'chromium-gn',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000212 '-s', '{angle_root}/buildtools/mac/gn.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500213 ],
214 },
215 {
216 'name': 'gn_linux64',
217 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400218 'condition': 'host_os == "linux" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500219 'action': [ 'download_from_google_storage',
220 '--no_resume',
221 '--platform=linux*',
222 '--no_auth',
223 '--bucket', 'chromium-gn',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000224 '-s', '{angle_root}/buildtools/linux64/gn.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500225 ],
226 },
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600227 {
228 'name': 'sysroot_x86',
229 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400230 'condition': 'checkout_linux and ((checkout_x86 or checkout_x64) and not build_with_chromium)',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000231 'action': ['python', '{angle_root}/build/linux/sysroot_scripts/install-sysroot.py',
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600232 '--arch=x86'],
233 },
234 {
235 'name': 'sysroot_x64',
236 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400237 'condition': 'checkout_linux and (checkout_x64 and not build_with_chromium)',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000238 'action': ['python', '{angle_root}/build/linux/sysroot_scripts/install-sysroot.py',
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600239 '--arch=x64'],
240 },
Jamie Madill027717f2018-04-13 15:51:24 -0400241 {
242 # Update the Windows toolchain if necessary. Must run before 'clang' below.
243 'name': 'win_toolchain',
244 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400245 'condition': 'checkout_win and not build_with_chromium',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000246 'action': ['python', '{angle_root}/build/vs_toolchain.py', 'update', '--force'],
Jamie Madill027717f2018-04-13 15:51:24 -0400247 },
248
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000249 {
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400250 # Note: On Win, this should run after win_toolchain, as it may use it.
251 'name': 'clang',
252 'pattern': '.',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000253 'action': ['python', '{angle_root}/tools/clang/scripts/update.py'],
Edward Lemur8ae09b02018-06-01 14:18:28 -0400254 'condition': 'not build_with_chromium',
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400255 },
Jamie Madill940c48b2017-10-23 23:25:17 -0400256
Shahbaz Youssefi957e9b82018-10-05 11:00:50 -0400257 {
258 # Update LASTCHANGE.
259 'name': 'lastchange',
260 'pattern': '.',
261 'condition': 'not build_with_chromium',
262 'action': ['python', '{angle_root}/build/util/lastchange.py',
263 '-o', '{angle_root}/build/util/LASTCHANGE'],
264 },
265
Jamie Madill940c48b2017-10-23 23:25:17 -0400266 # Pull rc binaries using checked-in hashes.
267 {
268 'name': 'rc_win',
269 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400270 'condition': 'checkout_win and (host_os == "win" and not build_with_chromium)',
Jamie Madill940c48b2017-10-23 23:25:17 -0400271 'action': [ 'download_from_google_storage',
272 '--no_resume',
273 '--no_auth',
274 '--bucket', 'chromium-browser-clang/rc',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000275 '-s', '{angle_root}/build/toolchain/win/rc/win/rc.exe.sha1',
Jamie Madill940c48b2017-10-23 23:25:17 -0400276 ],
277 },
Michael Spang229fc832019-01-21 18:09:15 -0500278
279 {
280 'name': 'fuchsia_sdk',
281 'pattern': '.',
282 'condition': 'checkout_fuchsia and not build_with_chromium',
283 'action': [
284 'python',
285 '{angle_root}/build/fuchsia/update_sdk.py',
286 ],
287 },
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000288]
Jamie Madill20789312016-10-28 14:05:26 -0400289
290recursedeps = [
291 # buildtools provides clang_format.
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000292 '{angle_root}/buildtools',
Jamie Madill20789312016-10-28 14:05:26 -0400293]