blob: 68bcd9cd78cbeae3312efc768274688335703ddd [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
Tobin Ehlis5fdc38c2018-08-28 09:20:57 -060017 # Current revision of jsoncpp, an open-source json parser.
18 'jsoncpp_revision': '93ba642c636309a3195d6da6c11ba82f69ef45ed',
19
Edward Lemur8ae09b02018-06-01 14:18:28 -040020 # Current revision fo the SPIRV-Headers Vulkan support library.
Jamie Madill534343a2018-07-09 16:43:16 -040021 'spirv_headers_revision': 'ff684ffc6a35d2a58f0f63108877d0064ea33feb',
Edward Lemur8ae09b02018-06-01 14:18:28 -040022
23 # Current revision of SPIRV-Tools for Vulkan.
Jamie Madill534343a2018-07-09 16:43:16 -040024 'spirv_tools_revision': '48326d443e434f55eb50a7cfc9acdc968daad5e3',
Edward Lemur8ae09b02018-06-01 14:18:28 -040025
Tobin Ehlisb971f492018-05-24 10:56:17 -060026 # Current revision of Khronos Vulkan-Headers.
Tobin Ehlis4edf1bc2018-07-17 15:14:14 -060027 'vulkan_headers_revision': 'ec4eff88f79b74c4865f41bef0d6af9a46d53896',
Tobin Ehlisb971f492018-05-24 10:56:17 -060028
29 # Current revision of Khronos Vulkan-Loader.
Tom Anderson21e9baf2018-07-26 15:35:54 -070030 'vulkan_loader_revision': 'a8358804f3c5b4e284d5e9a88b232309bb3c333d',
Tobin Ehlisb971f492018-05-24 10:56:17 -060031
32 # Current revision of Khronos Vulkan-Tools.
Tobin Ehlis6ed6c712018-07-10 12:02:30 -060033 'vulkan_tools_revision': 'b7c389c9d3efe5cea722eb7395fb70529dd27566',
Tobin Ehlisb971f492018-05-24 10:56:17 -060034
35 # Current revision of Khronos Vulkan-ValidationLayers.
Tobin Ehlis4edf1bc2018-07-17 15:14:14 -060036 'vulkan_validation_revision': '9e92c5c0e5b0b2264d72d8bafe15f049cba1c67d',
Jamie Madill2fdd3da2015-07-20 10:14:54 -040037}
38
alokp@chromium.org29d56fb2010-04-06 15:42:22 +000039deps = {
alokp@chromium.org416fcd32012-04-11 16:23:44 +000040
Edward Lemur8ae09b02018-06-01 14:18:28 -040041 '{angle_root}/build': {
Frank Henigmanc0edff62018-08-22 20:08:47 -040042 'url': '{chromium_git}/chromium/src/build.git@ee922ea8f8ed211d485add7906a64ccd2ffc358b',
Edward Lemur8ae09b02018-06-01 14:18:28 -040043 'condition': 'not build_with_chromium',
44 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -040045
Edward Lemur8ae09b02018-06-01 14:18:28 -040046 '{angle_root}/buildtools': {
Frank Henigman21e5e852018-08-14 15:58:12 -040047 'url': '{chromium_git}/chromium/buildtools.git@2dff9c9c74e9d732e6fe57c84ef7fd044cc45d96',
Edward Lemur8ae09b02018-06-01 14:18:28 -040048 'condition': 'not build_with_chromium',
49 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -040050
Edward Lemur8ae09b02018-06-01 14:18:28 -040051 '{angle_root}/testing': {
Frank Henigmanc0edff62018-08-22 20:08:47 -040052 'url': '{chromium_git}/chromium/src/testing@f6b3243e8ba941f4dfa6b579137738803f43aa18',
Edward Lemur8ae09b02018-06-01 14:18:28 -040053 'condition': 'not build_with_chromium',
54 },
alokp@chromium.org5cd9c602012-05-16 23:37:50 +000055
Jamie Madill9e76f562015-10-02 08:57:14 -040056 # Cherry is a dEQP management GUI written in Go. We use it for viewing test results.
Edward Lemur8ae09b02018-06-01 14:18:28 -040057 '{angle_root}/third_party/cherry': {
58 'url': '{android_git}/platform/external/cherry@4f8fb08d33ca5ff05a1c638f04c85bbb8d8b52cc',
59 'condition': 'not build_with_chromium',
60 },
Jamie Madill9e76f562015-10-02 08:57:14 -040061
Edward Lemur8ae09b02018-06-01 14:18:28 -040062 '{angle_root}/third_party/deqp/src': {
63 'url': '{android_git}/platform/external/deqp@{deqp_revision}',
64 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050065
Edward Lemur8ae09b02018-06-01 14:18:28 -040066 '{angle_root}/third_party/glslang/src': {
Edward Lemur47463d82018-06-01 17:03:40 -040067 'url': '{android_git}/platform/external/shaderc/glslang@{glslang_revision}',
Edward Lemur8ae09b02018-06-01 14:18:28 -040068 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050069
Edward Lemur8ae09b02018-06-01 14:18:28 -040070 '{angle_root}/third_party/googletest/src': {
71 'url': '{chromium_git}/external/github.com/google/googletest.git@145d05750b15324899473340c8dd5af50d125d33',
72 'condition': 'not build_with_chromium',
73 },
Frank Henigman6b076a02017-10-11 13:28:22 -040074
Edward Lemur8ae09b02018-06-01 14:18:28 -040075 '{angle_root}/third_party/libpng/src': {
76 'url': '{android_git}/platform/external/libpng@094e181e79a3d6c23fd005679025058b7df1ad6c',
77 'condition': 'not build_with_chromium',
78 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050079
Tobin Ehlis5fdc38c2018-08-28 09:20:57 -060080 '{angle_root}/third_party/jsoncpp/src': {
81 'url': '{android_git}/platform/external/jsoncpp@{jsoncpp_revision}',
82 },
83
Edward Lemur8ae09b02018-06-01 14:18:28 -040084 '{angle_root}/third_party/spirv-headers/src': {
Edward Lemur47463d82018-06-01 17:03:40 -040085 'url': '{android_git}/platform/external/shaderc/spirv-headers@{spirv_headers_revision}',
Edward Lemur8ae09b02018-06-01 14:18:28 -040086 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050087
Edward Lemur8ae09b02018-06-01 14:18:28 -040088 '{angle_root}/third_party/spirv-tools/src': {
Edward Lemur47463d82018-06-01 17:03:40 -040089 'url': '{android_git}/platform/external/shaderc/spirv-tools@{spirv_tools_revision}',
Edward Lemur8ae09b02018-06-01 14:18:28 -040090 },
Jamie Madill37ee8a62016-12-13 15:18:58 -050091
Tobin Ehlisb971f492018-05-24 10:56:17 -060092 '{angle_root}/third_party/vulkan-headers/src': {
93 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@{vulkan_headers_revision}',
94 },
95
96 '{angle_root}/third_party/vulkan-loader/src': {
97 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Loader@{vulkan_loader_revision}',
98 },
99
100 '{angle_root}/third_party/vulkan-tools/src': {
101 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Tools@{vulkan_tools_revision}',
102 },
103
Edward Lemur8ae09b02018-06-01 14:18:28 -0400104 '{angle_root}/third_party/vulkan-validation-layers/src': {
Tobin Ehlisb971f492018-05-24 10:56:17 -0600105 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@{vulkan_validation_revision}',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400106 },
Jamie Madill3cd438d2015-03-17 11:25:27 -0400107
Edward Lemur8ae09b02018-06-01 14:18:28 -0400108 '{angle_root}/third_party/zlib': {
Frank Henigmanc0edff62018-08-22 20:08:47 -0400109 'url': '{chromium_git}/chromium/src/third_party/zlib@de0fe056df0577ea69cbf5f46dfe66debe046e5c',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400110 'condition': 'not build_with_chromium',
111 },
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400112
Edward Lemur8ae09b02018-06-01 14:18:28 -0400113 '{angle_root}/tools/clang': {
Frank Henigmanc0edff62018-08-22 20:08:47 -0400114 'url': '{chromium_git}/chromium/src/tools/clang.git@99ac9bf4ad0d629e1168a0bda9a82f87062ce106',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400115 'condition': 'not build_with_chromium',
116 },
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000117}
118
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000119hooks = [
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400120 # Pull clang-format binaries using checked-in hashes.
121 {
122 'name': 'clang_format_win',
123 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400124 'condition': 'host_os == "win" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400125 'action': [ 'download_from_google_storage',
126 '--no_resume',
127 '--platform=win32',
128 '--no_auth',
129 '--bucket', 'chromium-clang-format',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400130 '-s', '{angle_root}/buildtools/win/clang-format.exe.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400131 ],
132 },
133 {
134 'name': 'clang_format_mac',
135 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400136 'condition': 'host_os == "mac" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400137 'action': [ 'download_from_google_storage',
138 '--no_resume',
139 '--platform=darwin',
140 '--no_auth',
141 '--bucket', 'chromium-clang-format',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400142 '-s', '{angle_root}/buildtools/mac/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400143 ],
144 },
145 {
146 'name': 'clang_format_linux',
147 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400148 'condition': 'host_os == "linux" and not build_with_chromium',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400149 'action': [ 'download_from_google_storage',
150 '--no_resume',
151 '--platform=linux*',
152 '--no_auth',
153 '--bucket', 'chromium-clang-format',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400154 '-s', '{angle_root}/buildtools/linux64/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -0400155 ],
156 },
Corentin Wallez570f67d2016-02-05 15:28:24 -0500157 # Pull GN binaries using checked-in hashes.
158 {
159 'name': 'gn_win',
160 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400161 'condition': 'host_os == "win" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500162 'action': [ 'download_from_google_storage',
163 '--no_resume',
164 '--platform=win32',
165 '--no_auth',
166 '--bucket', 'chromium-gn',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400167 '-s', '{angle_root}/buildtools/win/gn.exe.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500168 ],
169 },
170 {
171 'name': 'gn_mac',
172 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400173 'condition': 'host_os == "mac" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500174 'action': [ 'download_from_google_storage',
175 '--no_resume',
176 '--platform=darwin',
177 '--no_auth',
178 '--bucket', 'chromium-gn',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400179 '-s', '{angle_root}/buildtools/mac/gn.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500180 ],
181 },
182 {
183 'name': 'gn_linux64',
184 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400185 'condition': 'host_os == "linux" and not build_with_chromium',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500186 'action': [ 'download_from_google_storage',
187 '--no_resume',
188 '--platform=linux*',
189 '--no_auth',
190 '--bucket', 'chromium-gn',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400191 '-s', '{angle_root}/buildtools/linux64/gn.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500192 ],
193 },
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600194 {
195 'name': 'sysroot_x86',
196 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400197 'condition': 'checkout_linux and ((checkout_x86 or 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=x86'],
200 },
201 {
202 'name': 'sysroot_x64',
203 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400204 'condition': 'checkout_linux and (checkout_x64 and not build_with_chromium)',
205 'action': ['python', '{angle_root}/build/linux/sysroot_scripts/install-sysroot.py',
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600206 '--arch=x64'],
207 },
Jamie Madill027717f2018-04-13 15:51:24 -0400208 {
209 # Update the Windows toolchain if necessary. Must run before 'clang' below.
210 'name': 'win_toolchain',
211 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400212 'condition': 'checkout_win and not build_with_chromium',
213 'action': ['python', '{angle_root}/build/vs_toolchain.py', 'update', '--force'],
Jamie Madill027717f2018-04-13 15:51:24 -0400214 },
215
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000216 {
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400217 # Note: On Win, this should run after win_toolchain, as it may use it.
218 'name': 'clang',
219 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400220 'action': ['python', '{angle_root}/tools/clang/scripts/update.py'],
221 'condition': 'not build_with_chromium',
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400222 },
Jamie Madill940c48b2017-10-23 23:25:17 -0400223
224 # Pull rc binaries using checked-in hashes.
225 {
226 'name': 'rc_win',
227 'pattern': '.',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400228 'condition': 'checkout_win and (host_os == "win" and not build_with_chromium)',
Jamie Madill940c48b2017-10-23 23:25:17 -0400229 'action': [ 'download_from_google_storage',
230 '--no_resume',
231 '--no_auth',
232 '--bucket', 'chromium-browser-clang/rc',
Edward Lemur8ae09b02018-06-01 14:18:28 -0400233 '-s', '{angle_root}/build/toolchain/win/rc/win/rc.exe.sha1',
Jamie Madill940c48b2017-10-23 23:25:17 -0400234 ],
235 },
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000236]
Jamie Madill20789312016-10-28 14:05:26 -0400237
238recursedeps = [
239 # buildtools provides clang_format.
Edward Lemur8ae09b02018-06-01 14:18:28 -0400240 '{angle_root}/buildtools',
Jamie Madill20789312016-10-28 14:05:26 -0400241]