blob: 4adf6e73aa8383f7b0469b2598ebb2d19e3ab776 [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.
Shahbaz Youssefi6f1a8522019-02-26 15:00:54 +000015 'glslang_revision': 'f6e7c4d2de0d59724ea07739df70c466d169a2cd',
Edward Lemur8ae09b02018-06-01 14:18:28 -040016
17 # Current revision fo the SPIRV-Headers Vulkan support library.
Shahbaz Youssefi6f1a8522019-02-26 15:00:54 +000018 'spirv_headers_revision': '8bea0a266ac9b718aa0818d9e3a47c0b77c2cb23',
Edward Lemur8ae09b02018-06-01 14:18:28 -040019
20 # Current revision of SPIRV-Tools for Vulkan.
Jamie Madillcf9b2852019-02-13 09:15:26 -050021 'spirv_tools_revision': 'fde69dcd80cc1ca548300702adf01eeb25441f3e',
Edward Lemur8ae09b02018-06-01 14:18:28 -040022
Tobin Ehlisb971f492018-05-24 10:56:17 -060023 # Current revision of Khronos Vulkan-Headers.
Shahbaz Youssefi6f1a8522019-02-26 15:00:54 +000024 'vulkan_headers_revision': 'c200cb25db0f47364d3318d92c1d8e9dfff2fef1',
Tobin Ehlisb971f492018-05-24 10:56:17 -060025
26 # Current revision of Khronos Vulkan-Loader.
Shahbaz Youssefi6f1a8522019-02-26 15:00:54 +000027 'vulkan_loader_revision': 'e1eafa18e17d00374253bcd37d015befa89fcc43',
Tobin Ehlisb971f492018-05-24 10:56:17 -060028
29 # Current revision of Khronos Vulkan-Tools.
Shahbaz Youssefi6f1a8522019-02-26 15:00:54 +000030 'vulkan_tools_revision': '91b17fd866b2e9cfb875bf516b05536d059416b1',
Tobin Ehlisb971f492018-05-24 10:56:17 -060031
32 # Current revision of Khronos Vulkan-ValidationLayers.
Shahbaz Youssefi6f1a8522019-02-26 15:00:54 +000033 'vulkan_validation_revision': '4eee269ae976567ef78db9c9feaafc3364578c87',
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
Jamie Madill55959b02019-03-05 10:07:41 -050063 # glmark2 is a GPL3-licensed OpenGL ES 2.0 benchmark. We use it for testing.
64 '{angle_root}/third_party/glmark2/src': {
65 'url': '{chromium_git}/external/github.com/glmark2/glmark2@c4b3ff5a481348e8bdc2b71ee275864db91e40b1',
66 },
67
Yuly Novikov85d8ee82018-09-12 17:36:57 +000068 '{angle_root}/third_party/glslang/src': {
Tobin Ehlis317a9eb2018-11-29 12:51:46 -070069 'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@{glslang_revision}',
Jamie Madill0cb3b0f2019-01-28 09:55:20 -050070 'condition': 'not build_with_chromium',
Jamie Madill55959b02019-03-05 10:07:41 -050071 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050072
Jamie Madillcf9b2852019-02-13 09:15:26 -050073 '{angle_root}/third_party/googletest': {
74 'url': '{chromium_git}/chromium/src/third_party/googletest@660425b1c5ca04559ab7e50c7572b5b771acca1c',
75 'condition': 'not build_with_chromium',
76 },
77
Yuly Novikov85d8ee82018-09-12 17:36:57 +000078 '{angle_root}/third_party/googletest/src': {
Jamie Madillcf9b2852019-02-13 09:15:26 -050079 'url': '{chromium_git}/external/github.com/google/googletest.git@7203f37f57e4fef0d77670098aabc186309eb874',
Edward Lemur8ae09b02018-06-01 14:18:28 -040080 'condition': 'not build_with_chromium',
81 },
Frank Henigman6b076a02017-10-11 13:28:22 -040082
Jamie Madill55959b02019-03-05 10:07:41 -050083 # libjpeg_turbo is used by glmark2.
84 '{angle_root}/third_party/libjpeg_turbo': {
85 'url': '{chromium_git}/chromium/deps/libjpeg_turbo@6dcdade8828297e306cabfdae80f3510f3f3eea2',
86 'condition': 'not build_with_chromium',
87 },
88
Yuly Novikov85d8ee82018-09-12 17:36:57 +000089 '{angle_root}/third_party/libpng/src': {
Edward Lemur8ae09b02018-06-01 14:18:28 -040090 'url': '{android_git}/platform/external/libpng@094e181e79a3d6c23fd005679025058b7df1ad6c',
91 'condition': 'not build_with_chromium',
92 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050093
Yuly Novikov85d8ee82018-09-12 17:36:57 +000094 '{angle_root}/third_party/jsoncpp': {
Jamie Madill7ada46c2018-09-06 10:58:26 -040095 'url': '{chromium_git}/chromium/src/third_party/jsoncpp@fd0ac8ce63a47e99b71a58f1489136fbb19c9137',
Jamie Madill0cb3b0f2019-01-28 09:55:20 -050096 'condition': 'not build_with_chromium',
97 },
Jamie Madill7ada46c2018-09-06 10:58:26 -040098
Yuly Novikov85d8ee82018-09-12 17:36:57 +000099 '{angle_root}/third_party/jsoncpp/source': {
Jamie Madill0cb3b0f2019-01-28 09:55:20 -0500100 'url' : '{chromium_git}/external/github.com/open-source-parsers/jsoncpp@f572e8e42e22cfcf5ab0aea26574f408943edfa4',
101 'condition': 'not build_with_chromium',
102 },
Tobin Ehlis5fdc38c2018-08-28 09:20:57 -0600103
Michael Spang229fc832019-01-21 18:09:15 -0500104 '{angle_root}/third_party/qemu-linux-x64': {
105 'packages': [
106 {
107 'package': 'fuchsia/qemu/linux-amd64',
108 'version': '9cc486c5b18a0be515c39a280ca9a309c54cf994'
109 },
110 ],
111 'condition': 'not build_with_chromium and (host_os == "linux" and checkout_fuchsia)',
112 'dep_type': 'cipd',
113 },
114
115 '{angle_root}/third_party/qemu-mac-x64': {
116 'packages': [
117 {
118 'package': 'fuchsia/qemu/mac-amd64',
119 'version': '2d3358ae9a569b2d4a474f498b32b202a152134f'
120 },
121 ],
122 'condition': 'not build_with_chromium and (host_os == "mac" and checkout_fuchsia)',
123 'dep_type': 'cipd',
124 },
125
Jamie Madill46d32e02019-02-25 17:13:16 -0500126 '{angle_root}/third_party/rapidjson/src': {
127 'url': '{chromium_git}/external/github.com/Tencent/rapidjson@7484e06c589873e1ed80382d262087e4fa80fb63',
128 },
129
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000130 '{angle_root}/third_party/spirv-headers/src': {
Jamie Madill0cb3b0f2019-01-28 09:55:20 -0500131 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@{spirv_headers_revision}',
Corentin Walleza883dd02018-08-03 18:11:46 +0200132 'condition': 'not build_with_chromium',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400133 },
Jamie Madill37ee8a62016-12-13 15:18:58 -0500134
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000135 '{angle_root}/third_party/spirv-tools/src': {
Jamie Madill0cb3b0f2019-01-28 09:55:20 -0500136 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@{spirv_tools_revision}',
Corentin Walleza883dd02018-08-03 18:11:46 +0200137 'condition': 'not build_with_chromium',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400138 },
Jamie Madill37ee8a62016-12-13 15:18:58 -0500139
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000140 '{angle_root}/third_party/vulkan-headers/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600141 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@{vulkan_headers_revision}',
142 },
143
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000144 '{angle_root}/third_party/vulkan-loader/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600145 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Loader@{vulkan_loader_revision}',
146 },
147
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000148 '{angle_root}/third_party/vulkan-tools/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600149 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Tools@{vulkan_tools_revision}',
150 },
151
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000152 '{angle_root}/third_party/vulkan-validation-layers/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600153 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@{vulkan_validation_revision}',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400154 },
Jamie Madill3cd438d2015-03-17 11:25:27 -0400155
Jamie Madill55959b02019-03-05 10:07:41 -0500156 '{angle_root}/third_party/yasm': {
157 'url': '{chromium_git}/chromium/src/third_party/yasm@86b6058141a42aed51bbd8bb9f9d54d199d9dbd0',
158 'condition': 'not build_with_chromium',
159 },
160
161 '{angle_root}/third_party/yasm/source/patched-yasm': {
162 'url': '{chromium_git}/chromium/deps/yasm/patched-yasm.git@720b70524a4424b15fc57e82263568c8ba0496ad',
163 'condition': 'not build_with_chromium',
164 },
165
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000166 '{angle_root}/third_party/zlib': {
Jamie Madill720ca442018-12-17 14:04:10 -0500167 'url': '{chromium_git}/chromium/src/third_party/zlib@f95aeb0fa7f136ef4a457a6d9ba6f3c2701a444b',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400168 'condition': 'not build_with_chromium',
169 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400170
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000171 '{angle_root}/tools/clang': {
Jamie Madillc09ae152019-02-01 14:16:32 -0500172 'url': '{chromium_git}/chromium/src/tools/clang.git@3114fbc11f9644c54dd0a4cdbfa867bac50ff983',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400173 'condition': 'not build_with_chromium',
174 },
Michael Spang229fc832019-01-21 18:09:15 -0500175
176 '{angle_root}/third_party/fuchsia-sdk': {
177 'url': '{chromium_git}/chromium/src/third_party/fuchsia-sdk.git@8e8db13b538ecb251e5ce9d5c781fc142f9752fd',
178 'condition': 'checkout_fuchsia and not build_with_chromium',
179 },
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000180}
181
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000182hooks = [
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400183 # Pull clang-format binaries using checked-in hashes.
184 {
185 'name': 'clang_format_win',
186 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400187 'condition': 'host_os == "win" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400188 'action': [ 'download_from_google_storage',
189 '--no_resume',
190 '--platform=win32',
191 '--no_auth',
192 '--bucket', 'chromium-clang-format',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000193 '-s', '{angle_root}/buildtools/win/clang-format.exe.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400194 ],
195 },
196 {
197 'name': 'clang_format_mac',
198 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400199 'condition': 'host_os == "mac" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400200 'action': [ 'download_from_google_storage',
201 '--no_resume',
202 '--platform=darwin',
203 '--no_auth',
204 '--bucket', 'chromium-clang-format',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000205 '-s', '{angle_root}/buildtools/mac/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400206 ],
207 },
208 {
209 'name': 'clang_format_linux',
210 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400211 'condition': 'host_os == "linux" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400212 'action': [ 'download_from_google_storage',
213 '--no_resume',
214 '--platform=linux*',
215 '--no_auth',
216 '--bucket', 'chromium-clang-format',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000217 '-s', '{angle_root}/buildtools/linux64/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400218 ],
219 },
Corentin Wallez570f67d2016-02-05 15:28:24 -0500220 # Pull GN binaries using checked-in hashes.
221 {
222 'name': 'gn_win',
223 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400224 'condition': 'host_os == "win" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500225 'action': [ 'download_from_google_storage',
226 '--no_resume',
227 '--platform=win32',
228 '--no_auth',
229 '--bucket', 'chromium-gn',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000230 '-s', '{angle_root}/buildtools/win/gn.exe.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500231 ],
232 },
233 {
234 'name': 'gn_mac',
235 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400236 'condition': 'host_os == "mac" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500237 'action': [ 'download_from_google_storage',
238 '--no_resume',
239 '--platform=darwin',
240 '--no_auth',
241 '--bucket', 'chromium-gn',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000242 '-s', '{angle_root}/buildtools/mac/gn.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500243 ],
244 },
245 {
246 'name': 'gn_linux64',
247 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400248 'condition': 'host_os == "linux" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500249 'action': [ 'download_from_google_storage',
250 '--no_resume',
251 '--platform=linux*',
252 '--no_auth',
253 '--bucket', 'chromium-gn',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000254 '-s', '{angle_root}/buildtools/linux64/gn.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500255 ],
256 },
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600257 {
258 'name': 'sysroot_x86',
259 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400260 'condition': 'checkout_linux and ((checkout_x86 or checkout_x64) and not build_with_chromium)',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000261 'action': ['python', '{angle_root}/build/linux/sysroot_scripts/install-sysroot.py',
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600262 '--arch=x86'],
263 },
264 {
265 'name': 'sysroot_x64',
266 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400267 'condition': 'checkout_linux and (checkout_x64 and not build_with_chromium)',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000268 'action': ['python', '{angle_root}/build/linux/sysroot_scripts/install-sysroot.py',
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600269 '--arch=x64'],
270 },
Jamie Madill027717f2018-04-13 15:51:24 -0400271 {
272 # Update the Windows toolchain if necessary. Must run before 'clang' below.
273 'name': 'win_toolchain',
274 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400275 'condition': 'checkout_win and not build_with_chromium',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000276 'action': ['python', '{angle_root}/build/vs_toolchain.py', 'update', '--force'],
Jamie Madill027717f2018-04-13 15:51:24 -0400277 },
278
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000279 {
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400280 # Note: On Win, this should run after win_toolchain, as it may use it.
281 'name': 'clang',
282 'pattern': '.',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000283 'action': ['python', '{angle_root}/tools/clang/scripts/update.py'],
Edward Lemur8ae09b02018-06-01 14:18:28 -0400284 'condition': 'not build_with_chromium',
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400285 },
Jamie Madill940c48b2017-10-23 23:25:17 -0400286
Shahbaz Youssefi957e9b82018-10-05 11:00:50 -0400287 {
288 # Update LASTCHANGE.
289 'name': 'lastchange',
290 'pattern': '.',
291 'condition': 'not build_with_chromium',
292 'action': ['python', '{angle_root}/build/util/lastchange.py',
293 '-o', '{angle_root}/build/util/LASTCHANGE'],
294 },
295
Jamie Madill940c48b2017-10-23 23:25:17 -0400296 # Pull rc binaries using checked-in hashes.
297 {
298 'name': 'rc_win',
299 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400300 'condition': 'checkout_win and (host_os == "win" and not build_with_chromium)',
Jamie Madill940c48b2017-10-23 23:25:17 -0400301 'action': [ 'download_from_google_storage',
302 '--no_resume',
303 '--no_auth',
304 '--bucket', 'chromium-browser-clang/rc',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000305 '-s', '{angle_root}/build/toolchain/win/rc/win/rc.exe.sha1',
Jamie Madill940c48b2017-10-23 23:25:17 -0400306 ],
307 },
Michael Spang229fc832019-01-21 18:09:15 -0500308
309 {
310 'name': 'fuchsia_sdk',
311 'pattern': '.',
312 'condition': 'checkout_fuchsia and not build_with_chromium',
313 'action': [
314 'python',
315 '{angle_root}/build/fuchsia/update_sdk.py',
316 ],
317 },
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000318]
Jamie Madill20789312016-10-28 14:05:26 -0400319
320recursedeps = [
321 # buildtools provides clang_format.
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000322 '{angle_root}/buildtools',
Jamie Madill20789312016-10-28 14:05:26 -0400323]