blob: e038f9973a2d8f10fa3df8aae5dd1b14ebea350e [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': {
Jamie Madillc09ae152019-02-01 14:16:32 -050039 'url': '{chromium_git}/chromium/src/build.git@9dbdd5c2ae8c298bef55ca7c42754079aabe60c7',
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': {
Jamie Madill1c6b26a2018-11-18 17:03:19 -050044 'url': '{chromium_git}/chromium/buildtools.git@24ebce4578745db15274e180da1938ebc1358243',
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
Yuly Novikov85d8ee82018-09-12 17:36:57 +000088 '{angle_root}/third_party/spirv-headers/src': {
Jamie Madill0cb3b0f2019-01-28 09:55:20 -050089 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@{spirv_headers_revision}',
Corentin Walleza883dd02018-08-03 18:11:46 +020090 'condition': 'not build_with_chromium',
Edward Lemur8ae09b02018-06-01 14:18:28 -040091 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050092
Yuly Novikov85d8ee82018-09-12 17:36:57 +000093 '{angle_root}/third_party/spirv-tools/src': {
Jamie Madill0cb3b0f2019-01-28 09:55:20 -050094 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@{spirv_tools_revision}',
Corentin Walleza883dd02018-08-03 18:11:46 +020095 'condition': 'not build_with_chromium',
Edward Lemur8ae09b02018-06-01 14:18:28 -040096 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050097
Yuly Novikov85d8ee82018-09-12 17:36:57 +000098 '{angle_root}/third_party/vulkan-headers/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -060099 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@{vulkan_headers_revision}',
100 },
101
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000102 '{angle_root}/third_party/vulkan-loader/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600103 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Loader@{vulkan_loader_revision}',
104 },
105
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000106 '{angle_root}/third_party/vulkan-tools/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600107 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Tools@{vulkan_tools_revision}',
108 },
109
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000110 '{angle_root}/third_party/vulkan-validation-layers/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600111 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@{vulkan_validation_revision}',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400112 },
Jamie Madill3cd438d2015-03-17 11:25:27 -0400113
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000114 '{angle_root}/third_party/zlib': {
Jamie Madill720ca442018-12-17 14:04:10 -0500115 'url': '{chromium_git}/chromium/src/third_party/zlib@f95aeb0fa7f136ef4a457a6d9ba6f3c2701a444b',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400116 'condition': 'not build_with_chromium',
117 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400118
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000119 '{angle_root}/tools/clang': {
Jamie Madillc09ae152019-02-01 14:16:32 -0500120 'url': '{chromium_git}/chromium/src/tools/clang.git@3114fbc11f9644c54dd0a4cdbfa867bac50ff983',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400121 'condition': 'not build_with_chromium',
122 },
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000123}
124
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000125hooks = [
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400126 # Pull clang-format binaries using checked-in hashes.
127 {
128 'name': 'clang_format_win',
129 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400130 'condition': 'host_os == "win" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400131 'action': [ 'download_from_google_storage',
132 '--no_resume',
133 '--platform=win32',
134 '--no_auth',
135 '--bucket', 'chromium-clang-format',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000136 '-s', '{angle_root}/buildtools/win/clang-format.exe.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400137 ],
138 },
139 {
140 'name': 'clang_format_mac',
141 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400142 'condition': 'host_os == "mac" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400143 'action': [ 'download_from_google_storage',
144 '--no_resume',
145 '--platform=darwin',
146 '--no_auth',
147 '--bucket', 'chromium-clang-format',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000148 '-s', '{angle_root}/buildtools/mac/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400149 ],
150 },
151 {
152 'name': 'clang_format_linux',
153 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400154 'condition': 'host_os == "linux" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400155 'action': [ 'download_from_google_storage',
156 '--no_resume',
157 '--platform=linux*',
158 '--no_auth',
159 '--bucket', 'chromium-clang-format',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000160 '-s', '{angle_root}/buildtools/linux64/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400161 ],
162 },
Corentin Wallez570f67d2016-02-05 15:28:24 -0500163 # Pull GN binaries using checked-in hashes.
164 {
165 'name': 'gn_win',
166 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400167 'condition': 'host_os == "win" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500168 'action': [ 'download_from_google_storage',
169 '--no_resume',
170 '--platform=win32',
171 '--no_auth',
172 '--bucket', 'chromium-gn',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000173 '-s', '{angle_root}/buildtools/win/gn.exe.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500174 ],
175 },
176 {
177 'name': 'gn_mac',
178 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400179 'condition': 'host_os == "mac" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500180 'action': [ 'download_from_google_storage',
181 '--no_resume',
182 '--platform=darwin',
183 '--no_auth',
184 '--bucket', 'chromium-gn',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000185 '-s', '{angle_root}/buildtools/mac/gn.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500186 ],
187 },
188 {
189 'name': 'gn_linux64',
190 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400191 'condition': 'host_os == "linux" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500192 'action': [ 'download_from_google_storage',
193 '--no_resume',
194 '--platform=linux*',
195 '--no_auth',
196 '--bucket', 'chromium-gn',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000197 '-s', '{angle_root}/buildtools/linux64/gn.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500198 ],
199 },
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600200 {
201 'name': 'sysroot_x86',
202 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400203 'condition': 'checkout_linux and ((checkout_x86 or checkout_x64) and not build_with_chromium)',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000204 'action': ['python', '{angle_root}/build/linux/sysroot_scripts/install-sysroot.py',
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600205 '--arch=x86'],
206 },
207 {
208 'name': 'sysroot_x64',
209 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400210 'condition': 'checkout_linux and (checkout_x64 and not build_with_chromium)',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000211 'action': ['python', '{angle_root}/build/linux/sysroot_scripts/install-sysroot.py',
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600212 '--arch=x64'],
213 },
Jamie Madill027717f2018-04-13 15:51:24 -0400214 {
215 # Update the Windows toolchain if necessary. Must run before 'clang' below.
216 'name': 'win_toolchain',
217 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400218 'condition': 'checkout_win and not build_with_chromium',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000219 'action': ['python', '{angle_root}/build/vs_toolchain.py', 'update', '--force'],
Jamie Madill027717f2018-04-13 15:51:24 -0400220 },
221
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000222 {
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400223 # Note: On Win, this should run after win_toolchain, as it may use it.
224 'name': 'clang',
225 'pattern': '.',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000226 'action': ['python', '{angle_root}/tools/clang/scripts/update.py'],
Edward Lemur8ae09b02018-06-01 14:18:28 -0400227 'condition': 'not build_with_chromium',
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400228 },
Jamie Madill940c48b2017-10-23 23:25:17 -0400229
Shahbaz Youssefi957e9b82018-10-05 11:00:50 -0400230 {
231 # Update LASTCHANGE.
232 'name': 'lastchange',
233 'pattern': '.',
234 'condition': 'not build_with_chromium',
235 'action': ['python', '{angle_root}/build/util/lastchange.py',
236 '-o', '{angle_root}/build/util/LASTCHANGE'],
237 },
238
Jamie Madill940c48b2017-10-23 23:25:17 -0400239 # Pull rc binaries using checked-in hashes.
240 {
241 'name': 'rc_win',
242 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400243 'condition': 'checkout_win and (host_os == "win" and not build_with_chromium)',
Jamie Madill940c48b2017-10-23 23:25:17 -0400244 'action': [ 'download_from_google_storage',
245 '--no_resume',
246 '--no_auth',
247 '--bucket', 'chromium-browser-clang/rc',
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000248 '-s', '{angle_root}/build/toolchain/win/rc/win/rc.exe.sha1',
Jamie Madill940c48b2017-10-23 23:25:17 -0400249 ],
250 },
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000251]
Jamie Madill20789312016-10-28 14:05:26 -0400252
253recursedeps = [
254 # buildtools provides clang_format.
Yuly Novikov85d8ee82018-09-12 17:36:57 +0000255 '{angle_root}/buildtools',
Jamie Madill20789312016-10-28 14:05:26 -0400256]