blob: f39e3bb67d5af20398241ddb487926b9c56749f0 [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.
6 'root': '.',
Jamie Madill2fdd3da2015-07-20 10:14:54 -04007}
8
alokp@chromium.org29d56fb2010-04-06 15:42:22 +00009deps = {
alokp@chromium.org416fcd32012-04-11 16:23:44 +000010
Jamie Madill027717f2018-04-13 15:51:24 -040011 '{root}/build':
Tobin Ehlis9b1462a2018-05-21 16:40:57 -060012 '{chromium_git}/chromium/src/build.git@b944b99e72923c5a6699235ed858e725db21f81f',
Frank Henigmand0ef13a2017-08-28 22:53:24 -040013
Jamie Madill027717f2018-04-13 15:51:24 -040014 '{root}/buildtools':
Tobin Ehlis9b1462a2018-05-21 16:40:57 -060015 '{chromium_git}/chromium/buildtools.git@94288c26d2ffe3aec9848c147839afee597acefd',
Frank Henigmand0ef13a2017-08-28 22:53:24 -040016
Jamie Madill027717f2018-04-13 15:51:24 -040017 '{root}/testing':
Tobin Ehlis9b1462a2018-05-21 16:40:57 -060018 '{chromium_git}/chromium/src/testing@4d706fd80be9e8989aec5235540e7b46d0672826',
alokp@chromium.org5cd9c602012-05-16 23:37:50 +000019
Jamie Madill9e76f562015-10-02 08:57:14 -040020 # Cherry is a dEQP management GUI written in Go. We use it for viewing test results.
Jamie Madill027717f2018-04-13 15:51:24 -040021 '{root}/third_party/cherry':
Jamie Madillf3135da2018-04-25 08:04:39 -040022 '{android_git}/platform/external/cherry@4f8fb08d33ca5ff05a1c638f04c85bbb8d8b52cc',
Jamie Madill9e76f562015-10-02 08:57:14 -040023
Jamie Madill027717f2018-04-13 15:51:24 -040024 '{root}/third_party/deqp/src':
Jamie Madillf3135da2018-04-25 08:04:39 -040025 '{android_git}/platform/external/deqp@5bc346ba2d5465a2e6094e254f12b1586fd0097f',
Jamie Madill37ee8a62016-12-13 15:18:58 -050026
Jamie Madill027717f2018-04-13 15:51:24 -040027 '{root}/third_party/glslang/src':
Jamie Madillf3135da2018-04-25 08:04:39 -040028 '{android_git}/platform/external/shaderc/glslang@2edde6665d9a56ead5ea0e55b4e64d9a803e6164',
Jamie Madill37ee8a62016-12-13 15:18:58 -050029
Jamie Madill027717f2018-04-13 15:51:24 -040030 '{root}/third_party/googletest/src':
Tobin Ehlis9b1462a2018-05-21 16:40:57 -060031 '{chromium_git}/external/github.com/google/googletest.git@145d05750b15324899473340c8dd5af50d125d33',
Frank Henigman6b076a02017-10-11 13:28:22 -040032
Jamie Madill027717f2018-04-13 15:51:24 -040033 '{root}/third_party/libpng/src':
Jamie Madillf3135da2018-04-25 08:04:39 -040034 '{android_git}/platform/external/libpng@094e181e79a3d6c23fd005679025058b7df1ad6c',
Jamie Madill37ee8a62016-12-13 15:18:58 -050035
Jamie Madill027717f2018-04-13 15:51:24 -040036 '{root}/third_party/spirv-headers/src':
Jamie Madillf3135da2018-04-25 08:04:39 -040037 '{android_git}/platform/external/shaderc/spirv-headers@98b01515724c428d0f0a5d01deffcce0f5f5e61c',
Jamie Madill37ee8a62016-12-13 15:18:58 -050038
Jamie Madill027717f2018-04-13 15:51:24 -040039 '{root}/third_party/spirv-tools/src':
Jamie Madillf3135da2018-04-25 08:04:39 -040040 '{android_git}/platform/external/shaderc/spirv-tools@9996173f363729b3a97309685dbd4d78547a63a7',
Jamie Madill37ee8a62016-12-13 15:18:58 -050041
Jamie Madill027717f2018-04-13 15:51:24 -040042 '{root}/third_party/vulkan-validation-layers/src':
Jamie Madillf3135da2018-04-25 08:04:39 -040043 '{android_git}/platform/external/vulkan-validation-layers@88e43c8f9a750839a5d6d3f90098505bad3a98a1',
Jamie Madill3cd438d2015-03-17 11:25:27 -040044
Jamie Madill027717f2018-04-13 15:51:24 -040045 '{root}/third_party/zlib':
Tobin Ehlis9b1462a2018-05-21 16:40:57 -060046 '{chromium_git}/chromium/src/third_party/zlib@da0819d6c816a61be6fcb2fcf9b74246f0f8b808',
Frank Henigmand0ef13a2017-08-28 22:53:24 -040047
Jamie Madill027717f2018-04-13 15:51:24 -040048 '{root}/tools/clang':
Tobin Ehlis9b1462a2018-05-21 16:40:57 -060049 '{chromium_git}/chromium/src/tools/clang.git@c893c7eec4706f8c7fc244ee254b1dadd8f8d158',
Frank Henigmand0ef13a2017-08-28 22:53:24 -040050
Jamie Madill027717f2018-04-13 15:51:24 -040051 '{root}/tools/gyp':
Tobin Ehlis9b1462a2018-05-21 16:40:57 -060052 '{chromium_git}/external/gyp@4d467626b0b9f59a85fb81ca4d7ea9eca99b9d8f',
alokp@chromium.org29d56fb2010-04-06 15:42:22 +000053}
54
alokp@chromium.org29d56fb2010-04-06 15:42:22 +000055hooks = [
Jamie Madill2fdd3da2015-07-20 10:14:54 -040056 # Pull clang-format binaries using checked-in hashes.
57 {
58 'name': 'clang_format_win',
59 'pattern': '.',
Jamie Madill4f407ce2017-11-21 11:52:12 -050060 'condition': 'host_os == "win"',
Jamie Madill2fdd3da2015-07-20 10:14:54 -040061 'action': [ 'download_from_google_storage',
62 '--no_resume',
63 '--platform=win32',
64 '--no_auth',
65 '--bucket', 'chromium-clang-format',
Jamie Madill027717f2018-04-13 15:51:24 -040066 '-s', '{root}/buildtools/win/clang-format.exe.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -040067 ],
68 },
69 {
70 'name': 'clang_format_mac',
71 'pattern': '.',
Jamie Madill4f407ce2017-11-21 11:52:12 -050072 'condition': 'host_os == "mac"',
Jamie Madill2fdd3da2015-07-20 10:14:54 -040073 'action': [ 'download_from_google_storage',
74 '--no_resume',
75 '--platform=darwin',
76 '--no_auth',
77 '--bucket', 'chromium-clang-format',
Jamie Madill027717f2018-04-13 15:51:24 -040078 '-s', '{root}/buildtools/mac/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -040079 ],
80 },
81 {
82 'name': 'clang_format_linux',
83 'pattern': '.',
Jamie Madill4f407ce2017-11-21 11:52:12 -050084 'condition': 'host_os == "linux"',
Jamie Madill2fdd3da2015-07-20 10:14:54 -040085 'action': [ 'download_from_google_storage',
86 '--no_resume',
87 '--platform=linux*',
88 '--no_auth',
89 '--bucket', 'chromium-clang-format',
Jamie Madill027717f2018-04-13 15:51:24 -040090 '-s', '{root}/buildtools/linux64/clang-format.sha1',
Jamie Madill2fdd3da2015-07-20 10:14:54 -040091 ],
92 },
Corentin Wallez570f67d2016-02-05 15:28:24 -050093 # Pull GN binaries using checked-in hashes.
94 {
95 'name': 'gn_win',
96 'pattern': '.',
Jamie Madill4f407ce2017-11-21 11:52:12 -050097 'condition': 'host_os == "win"',
Corentin Wallez570f67d2016-02-05 15:28:24 -050098 'action': [ 'download_from_google_storage',
99 '--no_resume',
100 '--platform=win32',
101 '--no_auth',
102 '--bucket', 'chromium-gn',
Jamie Madill027717f2018-04-13 15:51:24 -0400103 '-s', '{root}/buildtools/win/gn.exe.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500104 ],
105 },
106 {
107 'name': 'gn_mac',
108 'pattern': '.',
Jamie Madill4f407ce2017-11-21 11:52:12 -0500109 'condition': 'host_os == "mac"',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500110 'action': [ 'download_from_google_storage',
111 '--no_resume',
112 '--platform=darwin',
113 '--no_auth',
114 '--bucket', 'chromium-gn',
Jamie Madill027717f2018-04-13 15:51:24 -0400115 '-s', '{root}/buildtools/mac/gn.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500116 ],
117 },
118 {
119 'name': 'gn_linux64',
120 'pattern': '.',
Jamie Madill4f407ce2017-11-21 11:52:12 -0500121 'condition': 'host_os == "linux"',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500122 'action': [ 'download_from_google_storage',
123 '--no_resume',
124 '--platform=linux*',
125 '--no_auth',
126 '--bucket', 'chromium-gn',
Jamie Madill027717f2018-04-13 15:51:24 -0400127 '-s', '{root}/buildtools/linux64/gn.sha1',
Corentin Wallez570f67d2016-02-05 15:28:24 -0500128 ],
129 },
Tobin Ehlis9d4277b2018-05-21 16:22:22 -0600130 {
131 'name': 'sysroot_x86',
132 'pattern': '.',
133 'condition': 'checkout_linux and (checkout_x86 or checkout_x64)',
134 'action': ['python', '{root}/build/linux/sysroot_scripts/install-sysroot.py',
135 '--arch=x86'],
136 },
137 {
138 'name': 'sysroot_x64',
139 'pattern': '.',
140 'condition': 'checkout_linux and checkout_x64',
141 'action': ['python', '{root}/build/linux/sysroot_scripts/install-sysroot.py',
142 '--arch=x64'],
143 },
Jamie Madill027717f2018-04-13 15:51:24 -0400144 {
145 # Update the Windows toolchain if necessary. Must run before 'clang' below.
146 'name': 'win_toolchain',
147 'pattern': '.',
148 'condition': 'checkout_win',
149 'action': ['python', '{root}/build/vs_toolchain.py', 'update', '--force'],
150 },
151
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000152 {
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400153 # Note: On Win, this should run after win_toolchain, as it may use it.
154 'name': 'clang',
155 'pattern': '.',
Tobin Ehlis9b1462a2018-05-21 16:40:57 -0600156 'action': ['python', '{root}/tools/clang/scripts/update.py'],
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400157 },
Jamie Madill940c48b2017-10-23 23:25:17 -0400158
159 # Pull rc binaries using checked-in hashes.
160 {
161 'name': 'rc_win',
162 'pattern': '.',
163 'condition': 'checkout_win and host_os == "win"',
164 'action': [ 'download_from_google_storage',
165 '--no_resume',
166 '--no_auth',
167 '--bucket', 'chromium-browser-clang/rc',
Jamie Madill027717f2018-04-13 15:51:24 -0400168 '-s', '{root}/build/toolchain/win/rc/win/rc.exe.sha1',
Jamie Madill940c48b2017-10-23 23:25:17 -0400169 ],
170 },
171
Frank Henigmand0ef13a2017-08-28 22:53:24 -0400172 {
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000173 # A change to a .gyp, .gypi, or to GYP itself should run the generator.
Corentin Walleze76f55f2016-10-25 06:44:45 -0400174 'pattern': '.',
Jamie Madill027717f2018-04-13 15:51:24 -0400175 'action': ['python', '{root}/gyp/gyp_angle'],
alokp@chromium.org29d56fb2010-04-06 15:42:22 +0000176 },
177]
Jamie Madill20789312016-10-28 14:05:26 -0400178
179recursedeps = [
180 # buildtools provides clang_format.
Jamie Madill027717f2018-04-13 15:51:24 -0400181 '{root}/buildtools',
Jamie Madill20789312016-10-28 14:05:26 -0400182]