blob: 502ecd29de2cc68789a9148292f8d891b6a69548 [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
5 # This variable is set on the Chrome infra for compatiblity with gclient.
Edward Lemur8ae09b02018-06-01 14:18:28 -04006 'angle_root': '.',
7
8 # This variable is overrided in Chromium's DEPS file.
9 'build_with_chromium': False,
10
11 # Current revision of dEQP.
Jamie Madilld1978032018-06-05 14:37:00 -040012 'deqp_revision': '4c0f2a4fba813e1046115c43c887eccb749b7bb3',
Edward Lemur8ae09b02018-06-01 14:18:28 -040013
14 # Current revision of glslang, the Khronos SPIRV compiler.
Jamie Madill1698d7d2018-06-27 14:09:58 -040015 'glslang_revision': '1ea8f595f9a9ebd938fe9e5f15ae469c7d6ebabc',
Edward Lemur8ae09b02018-06-01 14:18:28 -040016
17 # Current revision fo the SPIRV-Headers Vulkan support library.
Jamie Madill534343a2018-07-09 16:43:16 -040018 'spirv_headers_revision': 'ff684ffc6a35d2a58f0f63108877d0064ea33feb',
Edward Lemur8ae09b02018-06-01 14:18:28 -040019
20 # Current revision of SPIRV-Tools for Vulkan.
Jamie Madill534343a2018-07-09 16:43:16 -040021 'spirv_tools_revision': '48326d443e434f55eb50a7cfc9acdc968daad5e3',
Edward Lemur8ae09b02018-06-01 14:18:28 -040022
Tobin Ehlisb971f492018-05-24 10:56:17 -060023 # Current revision of Khronos Vulkan-Headers.
Tobin Ehlis4edf1bc2018-07-17 15:14:14 -060024 'vulkan_headers_revision': 'ec4eff88f79b74c4865f41bef0d6af9a46d53896',
Tobin Ehlisb971f492018-05-24 10:56:17 -060025
26 # Current revision of Khronos Vulkan-Loader.
Tom Anderson21e9baf2018-07-26 15:35:54 -070027 'vulkan_loader_revision': 'a8358804f3c5b4e284d5e9a88b232309bb3c333d',
Tobin Ehlisb971f492018-05-24 10:56:17 -060028
29 # Current revision of Khronos Vulkan-Tools.
Tobin Ehlis6ed6c712018-07-10 12:02:30 -060030 'vulkan_tools_revision': 'b7c389c9d3efe5cea722eb7395fb70529dd27566',
Tobin Ehlisb971f492018-05-24 10:56:17 -060031
32 # Current revision of Khronos Vulkan-ValidationLayers.
Tobin Ehlis4edf1bc2018-07-17 15:14:14 -060033 'vulkan_validation_revision': '9e92c5c0e5b0b2264d72d8bafe15f049cba1c67d',
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
Edward Lemur8ae09b02018-06-01 14:18:28 -040038 '{angle_root}/build': {
Frank Henigmanc0edff62018-08-22 20:08:47 -040039 'url': '{chromium_git}/chromium/src/build.git@ee922ea8f8ed211d485add7906a64ccd2ffc358b',
Edward Lemur8ae09b02018-06-01 14:18:28 -040040 'condition': 'not build_with_chromium',
41 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -040042
Edward Lemur8ae09b02018-06-01 14:18:28 -040043 '{angle_root}/buildtools': {
Frank Henigman21e5e852018-08-14 15:58:12 -040044 'url': '{chromium_git}/chromium/buildtools.git@2dff9c9c74e9d732e6fe57c84ef7fd044cc45d96',
Edward Lemur8ae09b02018-06-01 14:18:28 -040045 'condition': 'not build_with_chromium',
46 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -040047
Edward Lemur8ae09b02018-06-01 14:18:28 -040048 '{angle_root}/testing': {
Frank Henigmanc0edff62018-08-22 20:08:47 -040049 'url': '{chromium_git}/chromium/src/testing@f6b3243e8ba941f4dfa6b579137738803f43aa18',
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.
Edward Lemur8ae09b02018-06-01 14:18:28 -040054 '{angle_root}/third_party/cherry': {
55 'url': '{android_git}/platform/external/cherry@4f8fb08d33ca5ff05a1c638f04c85bbb8d8b52cc',
56 'condition': 'not build_with_chromium',
57 },
Jamie Madill9e76f562015-10-02 08:57:14 -040058
Edward Lemur8ae09b02018-06-01 14:18:28 -040059 '{angle_root}/third_party/deqp/src': {
60 'url': '{android_git}/platform/external/deqp@{deqp_revision}',
61 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050062
Edward Lemur8ae09b02018-06-01 14:18:28 -040063 '{angle_root}/third_party/glslang/src': {
Edward Lemur47463d82018-06-01 17:03:40 -040064 'url': '{android_git}/platform/external/shaderc/glslang@{glslang_revision}',
Edward Lemur8ae09b02018-06-01 14:18:28 -040065 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050066
Edward Lemur8ae09b02018-06-01 14:18:28 -040067 '{angle_root}/third_party/googletest/src': {
68 'url': '{chromium_git}/external/github.com/google/googletest.git@145d05750b15324899473340c8dd5af50d125d33',
69 'condition': 'not build_with_chromium',
70 },
Frank Henigman6b076a02017-10-11 13:28:22 -040071
Edward Lemur8ae09b02018-06-01 14:18:28 -040072 '{angle_root}/third_party/libpng/src': {
73 'url': '{android_git}/platform/external/libpng@094e181e79a3d6c23fd005679025058b7df1ad6c',
74 'condition': 'not build_with_chromium',
75 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050076
Edward Lemur8ae09b02018-06-01 14:18:28 -040077 '{angle_root}/third_party/spirv-headers/src': {
Edward Lemur47463d82018-06-01 17:03:40 -040078 'url': '{android_git}/platform/external/shaderc/spirv-headers@{spirv_headers_revision}',
Edward Lemur8ae09b02018-06-01 14:18:28 -040079 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050080
Edward Lemur8ae09b02018-06-01 14:18:28 -040081 '{angle_root}/third_party/spirv-tools/src': {
Edward Lemur47463d82018-06-01 17:03:40 -040082 'url': '{android_git}/platform/external/shaderc/spirv-tools@{spirv_tools_revision}',
Edward Lemur8ae09b02018-06-01 14:18:28 -040083 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050084
Tobin Ehlisb971f492018-05-24 10:56:17 -060085 '{angle_root}/third_party/vulkan-headers/src': {
86 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@{vulkan_headers_revision}',
87 },
88
89 '{angle_root}/third_party/vulkan-loader/src': {
90 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Loader@{vulkan_loader_revision}',
91 },
92
93 '{angle_root}/third_party/vulkan-tools/src': {
94 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Tools@{vulkan_tools_revision}',
95 },
96
Edward Lemur8ae09b02018-06-01 14:18:28 -040097 '{angle_root}/third_party/vulkan-validation-layers/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -060098 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@{vulkan_validation_revision}',
Edward Lemur8ae09b02018-06-01 14:18:28 -040099 },
Jamie Madill3cd438d2015-03-17 11:25:27 -0400100
Edward Lemur8ae09b02018-06-01 14:18:28 -0400101 '{angle_root}/third_party/zlib': {
Frank Henigmanc0edff62018-08-22 20:08:47 -0400102 'url': '{chromium_git}/chromium/src/third_party/zlib@de0fe056df0577ea69cbf5f46dfe66debe046e5c',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400103 'condition': 'not build_with_chromium',
104 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400105
Edward Lemur8ae09b02018-06-01 14:18:28 -0400106 '{angle_root}/tools/clang': {
Frank Henigmanc0edff62018-08-22 20:08:47 -0400107 'url': '{chromium_git}/chromium/src/tools/clang.git@99ac9bf4ad0d629e1168a0bda9a82f87062ce106',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400108 'condition': 'not build_with_chromium',
109 },
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000110}
111
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000112hooks = [
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400113 # Pull clang-format binaries using checked-in hashes.
114 {
115 'name': 'clang_format_win',
116 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400117 'condition': 'host_os == "win" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400118 'action': [ 'download_from_google_storage',
119 '--no_resume',
120 '--platform=win32',
121 '--no_auth',
122 '--bucket', 'chromium-clang-format',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400123 '-s', '{angle_root}/buildtools/win/clang-format.exe.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400124 ],
125 },
126 {
127 'name': 'clang_format_mac',
128 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400129 'condition': 'host_os == "mac" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400130 'action': [ 'download_from_google_storage',
131 '--no_resume',
132 '--platform=darwin',
133 '--no_auth',
134 '--bucket', 'chromium-clang-format',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400135 '-s', '{angle_root}/buildtools/mac/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400136 ],
137 },
138 {
139 'name': 'clang_format_linux',
140 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400141 'condition': 'host_os == "linux" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400142 'action': [ 'download_from_google_storage',
143 '--no_resume',
144 '--platform=linux*',
145 '--no_auth',
146 '--bucket', 'chromium-clang-format',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400147 '-s', '{angle_root}/buildtools/linux64/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400148 ],
149 },
Corentin Wallez570f67d2016-02-05 15:28:24 -0500150 # Pull GN binaries using checked-in hashes.
151 {
152 'name': 'gn_win',
153 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400154 'condition': 'host_os == "win" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500155 'action': [ 'download_from_google_storage',
156 '--no_resume',
157 '--platform=win32',
158 '--no_auth',
159 '--bucket', 'chromium-gn',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400160 '-s', '{angle_root}/buildtools/win/gn.exe.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500161 ],
162 },
163 {
164 'name': 'gn_mac',
165 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400166 'condition': 'host_os == "mac" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500167 'action': [ 'download_from_google_storage',
168 '--no_resume',
169 '--platform=darwin',
170 '--no_auth',
171 '--bucket', 'chromium-gn',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400172 '-s', '{angle_root}/buildtools/mac/gn.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500173 ],
174 },
175 {
176 'name': 'gn_linux64',
177 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400178 'condition': 'host_os == "linux" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500179 'action': [ 'download_from_google_storage',
180 '--no_resume',
181 '--platform=linux*',
182 '--no_auth',
183 '--bucket', 'chromium-gn',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400184 '-s', '{angle_root}/buildtools/linux64/gn.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500185 ],
186 },
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600187 {
188 'name': 'sysroot_x86',
189 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400190 'condition': 'checkout_linux and ((checkout_x86 or checkout_x64) and not build_with_chromium)',
191 'action': ['python', '{angle_root}/build/linux/sysroot_scripts/install-sysroot.py',
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600192 '--arch=x86'],
193 },
194 {
195 'name': 'sysroot_x64',
196 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400197 'condition': 'checkout_linux and (checkout_x64 and not build_with_chromium)',
198 'action': ['python', '{angle_root}/build/linux/sysroot_scripts/install-sysroot.py',
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600199 '--arch=x64'],
200 },
Jamie Madill027717f2018-04-13 15:51:24 -0400201 {
202 # Update the Windows toolchain if necessary. Must run before 'clang' below.
203 'name': 'win_toolchain',
204 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400205 'condition': 'checkout_win and not build_with_chromium',
206 'action': ['python', '{angle_root}/build/vs_toolchain.py', 'update', '--force'],
Jamie Madill027717f2018-04-13 15:51:24 -0400207 },
208
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000209 {
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400210 # Note: On Win, this should run after win_toolchain, as it may use it.
211 'name': 'clang',
212 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400213 'action': ['python', '{angle_root}/tools/clang/scripts/update.py'],
214 'condition': 'not build_with_chromium',
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400215 },
Jamie Madill940c48b2017-10-23 23:25:17 -0400216
217 # Pull rc binaries using checked-in hashes.
218 {
219 'name': 'rc_win',
220 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400221 'condition': 'checkout_win and (host_os == "win" and not build_with_chromium)',
Jamie Madill940c48b2017-10-23 23:25:17 -0400222 'action': [ 'download_from_google_storage',
223 '--no_resume',
224 '--no_auth',
225 '--bucket', 'chromium-browser-clang/rc',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400226 '-s', '{angle_root}/build/toolchain/win/rc/win/rc.exe.sha1',
Jamie Madill940c48b2017-10-23 23:25:17 -0400227 ],
228 },
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000229]
Jamie Madill20789312016-10-28 14:05:26 -0400230
231recursedeps = [
232 # buildtools provides clang_format.
Edward Lemur8ae09b02018-06-01 14:18:28 -0400233 '{angle_root}/buildtools',
Jamie Madill20789312016-10-28 14:05:26 -0400234]