blob: 299d0ec60cf616a0244f5325330e82f03f95bb55 [file] [log] [blame]
kjellander@webrtc.org177567c2016-12-22 10:40:28 +01001# This file contains dependencies for WebRTC.
kjellander@webrtc.org89256622014-08-20 12:10:11 +00002
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +00003vars = {
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +00004 'chromium_git': 'https://chromium.googlesource.com',
Mirko Bonadeicb2bc112017-10-10 13:28:18 +02005 # By default, we should check out everything needed to run on the main
6 # chromium waterfalls. More info at: crbug.com/570091.
7 'checkout_configuration': 'default',
8 'checkout_instrumented_libraries': 'checkout_linux and checkout_configuration == "default"',
Henrik Kjellandera9d4da82017-09-14 07:28:10 +02009 'webrtc_git': 'https://webrtc.googlesource.com',
Autoroller7797a812017-11-01 18:45:38 -070010 'chromium_revision': 'f93b8b19f23d32a7b651cc560efaab18c18c1f10',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010011 'boringssl_git': 'https://boringssl.googlesource.com',
12 # Three lines of non-changing comments so that
13 # the commit queue can handle CLs rolling swarming_client
14 # and whatever else without interference from each other.
Autoroller390d0102017-11-01 15:14:31 -070015 'swarming_revision': '5da404cf35b6541f16d8bd6cc3e506df1fda8021',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010016 # Three lines of non-changing comments so that
17 # the commit queue can handle CLs rolling openmax_dl
18 # and whatever else without interference from each other.
19 'openmax_dl_revision': '7acede9c039ea5d14cf326f44aad1245b9e674a7',
20 # Three lines of non-changing comments so that
21 # the commit queue can handle CLs rolling BoringSSL
22 # and whatever else without interference from each other.
Autorollere7592232017-10-13 05:45:16 -070023 'boringssl_revision': '664e99a6486c293728097c661332f92bf2d847c6',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010024 # Three lines of non-changing comments so that
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010025 # the commit queue can handle CLs rolling lss
26 # and whatever else without interference from each other.
Oleh Prypin3ebed362017-10-27 10:14:45 +020027 'lss_revision': 'e6527b0cd469e3ff5764785dadcb39bf7d787154',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010028 # Three lines of non-changing comments so that
29 # the commit queue can handle CLs rolling catapult
30 # and whatever else without interference from each other.
Autoroller09e09bd2017-10-31 15:56:01 -070031 'catapult_revision': '14715602e04a3a6e6cf79342f45d2f2595cce0f4',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010032 # Three lines of non-changing comments so that
33 # the commit queue can handle CLs rolling libFuzzer
34 # and whatever else without interference from each other.
Autorollere19d1ba2017-10-09 02:55:35 -070035 'libfuzzer_revision': '06fb50cc1f0197398c8a70658928a3b91912e68a',
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000036}
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000037deps = {
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010038 # TODO(kjellander): Move this to be Android-only once the libevent dependency
39 # in base/third_party/libevent is solved.
40 'src/base':
Autoroller82c7eff2017-11-01 16:24:18 -070041 Var('chromium_git') + '/chromium/src/base' + '@' + 'eec763edae535000b2905891959c8385694d5fa2',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010042 'src/build':
Autoroller7797a812017-11-01 18:45:38 -070043 Var('chromium_git') + '/chromium/src/build' + '@' + '4ef2624fabe9710231174fd89faa354edd7456db',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010044 'src/buildtools':
Autoroller30fa0632017-10-30 20:05:14 -070045 Var('chromium_git') + '/chromium/buildtools.git' + '@' + '3275a099f3c199b50ff97117aa0184f3e91f8a32',
Sami Kalliomäkice502392017-10-30 09:11:57 +010046 # Gradle 4.3-rc4. Used for testing Android Studio project generation for WebRTC.
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020047 'src/examples/androidtests/third_party/gradle': {
48 'url': Var('chromium_git') + '/external/github.com/gradle/gradle.git' + '@' +
Sami Kalliomäkice502392017-10-30 09:11:57 +010049 '89af43c4d0506f69980f00dde78c97b2f81437f8',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020050 'condition': 'checkout_android',
51 },
52 'src/ios': {
Autoroller20f18462017-11-01 17:35:49 -070053 'url': Var('chromium_git') + '/chromium/src/ios' + '@' + '9e4709d13410dfa655f5dc90c799047ee89eb6eb',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020054 'condition': 'checkout_ios',
55 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010056 'src/testing':
Autoroller7797a812017-11-01 18:45:38 -070057 Var('chromium_git') + '/chromium/src/testing' + '@' + 'a8c077a65849987da1f01def609e25f69e08a536',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010058 'src/third_party':
Autoroller7797a812017-11-01 18:45:38 -070059 Var('chromium_git') + '/chromium/src/third_party' + '@' + '3bd34f929dc1e51ced7602744d1baedd182484f9',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020060 'src/third_party/android_tools': {
Autoroller30fa0632017-10-30 20:05:14 -070061 'url': Var('chromium_git') + '/android_tools.git' + '@' + 'ca0bd083872ad925881736fe2bedc3ff855e08f5',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020062 'condition': 'checkout_android',
63 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010064 'src/third_party/boringssl/src':
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020065 Var('boringssl_git') + '/boringssl.git' + '@' + Var('boringssl_revision'),
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010066 'src/third_party/catapult':
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020067 Var('chromium_git') + '/catapult.git' + '@' + Var('catapult_revision'),
68 'src/third_party/ced/src': {
69 'url': Var('chromium_git') + '/external/github.com/google/compact_enc_det.git' + '@' + '94c367a1fe3a13207f4b22604fcfd1d9f9ddf6d9',
70 'condition': 'checkout_android',
71 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010072 'src/third_party/colorama/src':
73 Var('chromium_git') + '/external/colorama.git' + '@' + '799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8',
oprypin40e7ebd2017-07-27 01:40:18 -070074 'src/third_party/depot_tools':
Autorollerd2776cd2017-10-31 22:55:02 -070075 Var('chromium_git') + '/chromium/tools/depot_tools.git' + '@' + '70dea4270ec17be5af9f04492d3ba15f58df4501',
Mirko Bonadei65ceb662017-10-13 09:45:37 +020076 'src/third_party/errorprone/lib': {
Oleh Prypin3ebed362017-10-27 10:14:45 +020077 'url': Var('chromium_git') + '/chromium/third_party/errorprone.git' + '@' + '16b8b7298b183312a2fcac99fb1b594ccf7749d0',
Mirko Bonadei65ceb662017-10-13 09:45:37 +020078 'condition': 'checkout_android',
79 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010080 'src/third_party/ffmpeg':
Oleh Prypin3ebed362017-10-27 10:14:45 +020081 Var('chromium_git') + '/chromium/third_party/ffmpeg.git' + '@' + 'f9e8b4275837a3859988351b70d5d1e045838da8',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020082 # WebRTC-only dependency (not present in Chromium).
83 'src/third_party/gtest-parallel':
Autoroller30fa0632017-10-30 20:05:14 -070084 Var('chromium_git') + '/external/github.com/google/gtest-parallel' + '@' + '89ab65d56d3c76e552f59adabbaf8b0cf80d55ea',
kjellander3dae7052017-05-03 06:44:36 -070085 'src/third_party/googletest/src':
buildbot8f82e632017-08-30 21:18:15 -070086 Var('chromium_git') + '/external/github.com/google/googletest.git' + '@' + '7f8fefabedf2965980585be8c2bff97458f28e0b',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020087 'src/third_party/icu': {
Autorollere7592232017-10-13 05:45:16 -070088 'url': Var('chromium_git') + '/chromium/deps/icu.git' + '@' + '21d33b1a09a77f033478ea4ffffb61e6970f83bd',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020089 },
90 'src/third_party/jsr-305/src': {
91 'url': Var('chromium_git') + '/external/jsr-305.git' + '@' + '642c508235471f7220af6d5df2d3210e3bfc0919',
92 'condition': 'checkout_android',
93 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010094 'src/third_party/jsoncpp/source':
95 Var('chromium_git') + '/external/github.com/open-source-parsers/jsoncpp.git' + '@' + 'f572e8e42e22cfcf5ab0aea26574f408943edfa4', # from svn 248
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020096 'src/third_party/junit/src': {
97 'url': Var('chromium_git') + '/external/junit.git' + '@' + '64155f8a9babcfcf4263cf4d08253a1556e75481',
98 'condition': 'checkout_android',
99 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100100 # Used for building libFuzzers (only supports Linux).
101 'src/third_party/libFuzzer/src':
oprypin801f7222017-09-01 05:43:07 -0700102 Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git' + '@' + Var('libfuzzer_revision'),
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100103 'src/third_party/libjpeg_turbo':
buildbot1c23e942017-04-20 09:30:13 -0700104 Var('chromium_git') + '/chromium/deps/libjpeg_turbo.git' + '@' + 'a1750dbc79a8792dde3d3f7d7d8ac28ba01ac9dd',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100105 'src/third_party/libsrtp':
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200106 Var('chromium_git') + '/chromium/deps/libsrtp.git' + '@' + '1d45b8e599dc2db6ea3ae22dbc94a8c504652423',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100107 'src/third_party/libvpx/source/libvpx':
Autoroller0d6609d2017-11-01 14:05:05 -0700108 Var('chromium_git') + '/webm/libvpx.git' + '@' + '3ba9a2c8b2341430b001ed531f1eedf7c9b0384f',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100109 'src/third_party/libyuv':
Oleh Prypin3ebed362017-10-27 10:14:45 +0200110 Var('chromium_git') + '/libyuv/libyuv.git' + '@' + '8fa02df3c0591754958a50cc2896aafae319f3bc',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200111 'src/third_party/lss': {
112 'url': Var('chromium_git') + '/linux-syscall-support.git' + '@' + Var('lss_revision'),
113 'condition': 'checkout_android or checkout_linux',
114 },
115 'src/third_party/mockito/src': {
116 'url': Var('chromium_git') + '/external/mockito/mockito.git' + '@' + 'de83ad4598ad4cf5ea53c69a8a8053780b04b850',
117 'condition': 'checkout_android',
118 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100119 'src/third_party/openh264/src':
ssilkin1440c9f2017-09-28 03:35:45 -0700120 Var('chromium_git') + '/external/github.com/cisco/openh264' + '@' + 'a180c9d4d6f1a4830ca9eed9d159d54996bd63cb',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100121 'src/third_party/openmax_dl':
Henrik Kjellandera9d4da82017-09-14 07:28:10 +0200122 Var('webrtc_git') + '/deps/third_party/openmax.git' + '@' + Var('openmax_dl_revision'),
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200123 'src/third_party/requests/src': {
124 'url': Var('chromium_git') + '/external/github.com/kennethreitz/requests.git' + '@' + 'f172b30356d821d180fa4ecfa3e71c7274a32de4',
125 'condition': 'checkout_android',
126 },
127 'src/third_party/robolectric/robolectric': {
128 'url': Var('chromium_git') + '/external/robolectric.git' + '@' + 'b02c65cc6d7465f58f0de48a39914aa905692afa',
129 'condition': 'checkout_android',
130 },
131 'src/third_party/ub-uiautomator/lib': {
132 'url': Var('chromium_git') + '/chromium/third_party/ub-uiautomator.git' + '@' + '00270549ce3161ae72ceb24712618ea28b4f9434',
133 'condition': 'checkout_android',
134 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100135 'src/third_party/usrsctp/usrsctplib':
buildbot1b20dc42017-08-07 12:55:14 -0700136 Var('chromium_git') + '/external/github.com/sctplab/usrsctp' + '@' + 'f4819e1b177f7bfdd761c147f5a649b9f1a78c06',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200137 # WebRTC-only dependency (not present in Chromium).
138 'src/third_party/winsdk_samples': {
139 'url': Var('webrtc_git') + '/deps/third_party/winsdk_samples_v71' + '@' + '2d31a1cbecc86359e6ec041fb9ff6c082babd073',
140 'condition': 'checkout_win',
141 },
142 # Dependency used by libjpeg-turbo.
143 'src/third_party/yasm/binaries': {
144 'url': Var('chromium_git') + '/chromium/deps/yasm/binaries.git' + '@' + '52f9b3f4b0aa06da24ef8b123058bb61ee468881',
145 'condition': 'checkout_win',
146 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100147 'src/third_party/yasm/source/patched-yasm':
buildbotf3f7f622017-08-10 21:29:33 -0700148 Var('chromium_git') + '/chromium/deps/yasm/patched-yasm.git' + '@' + 'b98114e18d8b9b84586b10d24353ab8616d4c5fc',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100149 'src/tools':
Autoroller7797a812017-11-01 18:45:38 -0700150 Var('chromium_git') + '/chromium/src/tools' + '@' + 'b512b7250b8c8d7b1f66fe2dd39557be246417a5',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100151 'src/tools/gyp':
buildbot2f0803c2017-07-25 11:40:43 -0700152 Var('chromium_git') + '/external/gyp.git' + '@' + 'd61a9397e668fa9843c4aa7da9e79460fe590bfb',
oprypin4ccd9c12017-08-30 00:42:43 -0700153 'src/tools/swarming_client':
154 Var('chromium_git') + '/infra/luci/client-py.git' + '@' + Var('swarming_revision'),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000155}
kjellander200028f2017-08-17 09:54:12 -0700156
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000157hooks = [
158 {
Henrik Kjellander27576e02015-10-15 14:24:09 +0200159 # This clobbers when necessary (based on get_landmines.py). It should be
160 # an early hook but it will need to be run after syncing Chromium and
161 # setting up the links, so the script actually exists.
162 'name': 'landmines',
163 'pattern': '.',
164 'action': [
165 'python',
166 'src/build/landmines.py',
167 '--landmine-scripts',
Henrik Kjellander90fd7d82017-05-09 08:30:10 +0200168 'src/tools_webrtc/get_landmines.py',
Henrik Kjellander27576e02015-10-15 14:24:09 +0200169 '--src-dir',
170 'src',
171 ],
172 },
oprypin40e7ebd2017-07-27 01:40:18 -0700173 {
174 # Ensure that the DEPS'd "depot_tools" has its self-update capability
175 # disabled.
176 'name': 'disable_depot_tools_selfupdate',
177 'pattern': '.',
178 'action': [
179 'python',
180 'src/third_party/depot_tools/update_depot_tools_toggle.py',
181 '--disable',
182 ],
183 },
kjellander24d812d2016-11-22 07:02:11 -0800184 {
185 # Downloads the current stable linux sysroot to build/linux/ if needed.
186 # This sysroot updates at about the same rate that the chrome build deps
187 # change. This script is a no-op except for linux users who are doing
188 # official chrome builds or cross compiling.
189 'name': 'sysroot',
190 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200191 'condition': 'checkout_linux',
kjellander24d812d2016-11-22 07:02:11 -0800192 'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
193 '--running-as-hook'],
194 },
195 {
Henrik Kjellander6b269752017-10-09 13:00:41 +0200196 # Update the Windows toolchain if necessary. Must run before 'clang' below.
kjellander24d812d2016-11-22 07:02:11 -0800197 'name': 'win_toolchain',
198 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200199 # TODO(thakis): Put some condition here. Not just host_os == 'win', because
200 # we also need this for (mac|linux) -> win cross builds.
kjellander24d812d2016-11-22 07:02:11 -0800201 'action': ['python', 'src/build/vs_toolchain.py', 'update'],
202 },
kjellanderec2c93e2017-09-08 10:52:17 -0700203 {
204 # Update the Mac toolchain if necessary.
205 'name': 'mac_toolchain',
206 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200207 'condition': 'checkout_mac',
kjellanderec2c93e2017-09-08 10:52:17 -0700208 'action': ['python', 'src/build/mac_toolchain.py'],
209 },
kjellander24d812d2016-11-22 07:02:11 -0800210 # Pull binutils for linux, enabled debug fission for faster linking /
211 # debugging when used with clang on Ubuntu Precise.
212 # https://code.google.com/p/chromium/issues/detail?id=352046
213 {
214 'name': 'binutils',
215 'pattern': 'src/third_party/binutils',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200216 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800217 'action': [
218 'python',
219 'src/third_party/binutils/download.py',
220 ],
221 },
222 {
kjellander24d812d2016-11-22 07:02:11 -0800223 # Note: On Win, this should run after win_toolchain, as it may use it.
224 'name': 'clang',
225 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200226 'action': ['python', 'src/tools/clang/scripts/update.py'],
kjellander24d812d2016-11-22 07:02:11 -0800227 },
ehmaldonado293bc2a2016-11-25 04:58:47 -0800228 {
229 # Update LASTCHANGE.
230 'name': 'lastchange',
231 'pattern': '.',
232 'action': ['python', 'src/build/util/lastchange.py',
233 '-o', 'src/build/util/LASTCHANGE'],
234 },
kjellander24d812d2016-11-22 07:02:11 -0800235 # Pull GN binaries.
236 {
237 'name': 'gn_win',
238 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200239 'condition': 'host_os == "win"',
kjellander24d812d2016-11-22 07:02:11 -0800240 'action': [ 'download_from_google_storage',
241 '--no_resume',
242 '--platform=win32',
243 '--no_auth',
244 '--bucket', 'chromium-gn',
245 '-s', 'src/buildtools/win/gn.exe.sha1',
246 ],
247 },
248 {
249 'name': 'gn_mac',
250 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200251 'condition': 'host_os == "mac"',
kjellander24d812d2016-11-22 07:02:11 -0800252 'action': [ 'download_from_google_storage',
253 '--no_resume',
254 '--platform=darwin',
255 '--no_auth',
256 '--bucket', 'chromium-gn',
257 '-s', 'src/buildtools/mac/gn.sha1',
258 ],
259 },
260 {
261 'name': 'gn_linux64',
262 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200263 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800264 'action': [ 'download_from_google_storage',
265 '--no_resume',
266 '--platform=linux*',
267 '--no_auth',
268 '--bucket', 'chromium-gn',
269 '-s', 'src/buildtools/linux64/gn.sha1',
270 ],
271 },
272 # Pull clang-format binaries using checked-in hashes.
273 {
274 'name': 'clang_format_win',
275 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200276 'condition': 'host_os == "win"',
kjellander24d812d2016-11-22 07:02:11 -0800277 'action': [ 'download_from_google_storage',
278 '--no_resume',
279 '--platform=win32',
280 '--no_auth',
281 '--bucket', 'chromium-clang-format',
282 '-s', 'src/buildtools/win/clang-format.exe.sha1',
283 ],
284 },
285 {
286 'name': 'clang_format_mac',
287 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200288 'condition': 'host_os == "mac"',
kjellander24d812d2016-11-22 07:02:11 -0800289 'action': [ 'download_from_google_storage',
290 '--no_resume',
291 '--platform=darwin',
292 '--no_auth',
293 '--bucket', 'chromium-clang-format',
294 '-s', 'src/buildtools/mac/clang-format.sha1',
295 ],
296 },
297 {
298 'name': 'clang_format_linux',
299 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200300 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800301 'action': [ 'download_from_google_storage',
302 '--no_resume',
303 '--platform=linux*',
304 '--no_auth',
305 '--bucket', 'chromium-clang-format',
306 '-s', 'src/buildtools/linux64/clang-format.sha1',
307 ],
308 },
Oleh Prypin3ebed362017-10-27 10:14:45 +0200309 # Pull rc binaries using checked-in hashes.
310 {
311 'name': 'rc_win',
312 'pattern': '.',
313 'condition': 'checkout_win and host_os == "win"',
314 'action': [ 'python',
315 'src/third_party/depot_tools/download_from_google_storage.py',
316 '--no_resume',
317 '--no_auth',
318 '--bucket', 'chromium-browser-clang/rc',
319 '-s', 'src/build/toolchain/win/rc/win/rc.exe.sha1',
320 ],
321 },
322 {
323 'name': 'rc_mac',
324 'pattern': '.',
325 'condition': 'checkout_win and host_os == "mac"',
326 'action': [ 'python',
327 'src/third_party/depot_tools/download_from_google_storage.py',
328 '--no_resume',
329 '--no_auth',
330 '--bucket', 'chromium-browser-clang/rc',
331 '-s', 'src/build/toolchain/win/rc/mac/rc.sha1',
332 ],
333 },
334 {
335 'name': 'rc_linux',
336 'pattern': '.',
337 'condition': 'checkout_win and host_os == "linux"',
338 'action': [ 'python',
339 'src/third_party/depot_tools/download_from_google_storage.py',
340 '--no_resume',
341 '--no_auth',
342 '--bucket', 'chromium-browser-clang/rc',
343 '-s', 'src/build/toolchain/win/rc/linux64/rc.sha1',
344 ],
345 },
kjellander24d812d2016-11-22 07:02:11 -0800346 # Pull luci-go binaries (isolate, swarming) using checked-in hashes.
347 {
348 'name': 'luci-go_win',
349 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200350 'condition': 'host_os == "win"',
kjellander24d812d2016-11-22 07:02:11 -0800351 'action': [ 'download_from_google_storage',
352 '--no_resume',
353 '--platform=win32',
354 '--no_auth',
355 '--bucket', 'chromium-luci',
356 '-d', 'src/tools/luci-go/win64',
357 ],
358 },
359 {
360 'name': 'luci-go_mac',
361 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200362 'condition': 'host_os == "mac"',
kjellander24d812d2016-11-22 07:02:11 -0800363 'action': [ 'download_from_google_storage',
364 '--no_resume',
365 '--platform=darwin',
366 '--no_auth',
367 '--bucket', 'chromium-luci',
368 '-d', 'src/tools/luci-go/mac64',
369 ],
370 },
371 {
372 'name': 'luci-go_linux',
373 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200374 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800375 'action': [ 'download_from_google_storage',
376 '--no_resume',
377 '--platform=linux*',
378 '--no_auth',
379 '--bucket', 'chromium-luci',
380 '-d', 'src/tools/luci-go/linux64',
381 ],
382 },
Henrik Kjellander55dad1b2017-05-11 12:00:53 +0200383 # Pull the Syzygy binaries, used for optimization and instrumentation.
384 {
385 'name': 'syzygy-binaries',
386 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200387 'condition': 'host_os == "win"',
Henrik Kjellander55dad1b2017-05-11 12:00:53 +0200388 'action': ['python',
389 'src/build/get_syzygy_binaries.py',
390 '--output-dir=src/third_party/syzygy/binaries',
391 '--revision=a8456d9248a126881dcfb8707ca7dcdae56e1ac7',
392 '--overwrite',
393 ],
394 },
kjellander24d812d2016-11-22 07:02:11 -0800395 {
Mirko Bonadeicb2bc112017-10-10 13:28:18 +0200396 'name': 'msan_chained_origins',
397 'pattern': '.',
398 'condition': 'checkout_instrumented_libraries',
399 'action': [ 'python',
400 'src/third_party/depot_tools/download_from_google_storage.py',
401 "--no_resume",
402 "--no_auth",
403 "--bucket", "chromium-instrumented-libraries",
404 "-s", "src/third_party/instrumented_libraries/binaries/msan-chained-origins-trusty.tgz.sha1",
405 ],
406 },
407 {
408 'name': 'msan_no_origins',
409 'pattern': '.',
410 'condition': 'checkout_instrumented_libraries',
411 'action': [ 'python',
412 'src/third_party/depot_tools/download_from_google_storage.py',
413 "--no_resume",
414 "--no_auth",
415 "--bucket", "chromium-instrumented-libraries",
416 "-s", "src/third_party/instrumented_libraries/binaries/msan-no-origins-trusty.tgz.sha1",
417 ],
kjellander24d812d2016-11-22 07:02:11 -0800418 },
419 {
kjellander@webrtc.org80174582013-11-04 12:07:57 +0000420 # Download test resources, i.e. video and audio files from Google Storage.
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +0000421 'pattern': '.',
422 'action': ['download_from_google_storage',
423 '--directory',
424 '--recursive',
425 '--num_threads=10',
426 '--no_auth',
kjellander4ff818e2015-12-18 12:29:28 -0800427 '--quiet',
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +0000428 '--bucket', 'chromium-webrtc-resources',
429 'src/resources'],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000430 },
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200431 {
432 # This downloads SDK extras and puts them in the
433 # third_party/android_tools/sdk/extras directory.
434 'name': 'sdkextras',
435 'pattern': '.',
436 'condition': 'checkout_android',
437 # When adding a new sdk extras package to download, add the package
438 # directory and zip file to .gitignore in third_party/android_tools.
439 'action': ['python',
440 'src/build/android/play_services/update.py',
441 'download'
442 ],
443 },
444 {
445 'name': 'intellij',
446 'pattern': '.',
447 'condition': 'checkout_android',
448 'action': ['python',
449 'src/build/android/update_deps/update_third_party_deps.py',
450 'download',
451 '-b', 'chromium-intellij',
452 '-l', 'third_party/intellij'
453 ],
454 },
455 {
456 'name': 'javax_inject',
457 'pattern': '.',
458 'condition': 'checkout_android',
459 'action': ['python',
460 'src/build/android/update_deps/update_third_party_deps.py',
461 'download',
462 '-b', 'chromium-javax-inject',
463 '-l', 'third_party/javax_inject'
464 ],
465 },
466 {
467 'name': 'hamcrest',
468 'pattern': '.',
469 'condition': 'checkout_android',
470 'action': ['python',
471 'src/build/android/update_deps/update_third_party_deps.py',
472 'download',
473 '-b', 'chromium-hamcrest',
474 '-l', 'third_party/hamcrest'
475 ],
476 },
477 {
478 'name': 'guava',
479 'pattern': '.',
480 'condition': 'checkout_android',
481 'action': ['python',
482 'src/build/android/update_deps/update_third_party_deps.py',
483 'download',
484 '-b', 'chromium-guava',
485 '-l', 'third_party/guava'
486 ],
487 },
488 {
489 'name': 'android_support_test_runner',
490 'pattern': '.',
491 'condition': 'checkout_android',
492 'action': ['python',
493 'src/build/android/update_deps/update_third_party_deps.py',
494 'download',
495 '-b', 'chromium-android-support-test-runner',
496 '-l', 'third_party/android_support_test_runner'
497 ],
498 },
499 {
500 'name': 'byte_buddy',
501 'pattern': '.',
502 'condition': 'checkout_android',
503 'action': ['python',
504 'src/build/android/update_deps/update_third_party_deps.py',
505 'download',
506 '-b', 'chromium-byte-buddy',
507 '-l', 'third_party/byte_buddy'
508 ],
509 },
510 {
511 'name': 'espresso',
512 'pattern': '.',
513 'condition': 'checkout_android',
514 'action': ['python',
515 'src/build/android/update_deps/update_third_party_deps.py',
516 'download',
517 '-b', 'chromium-espresso',
518 '-l', 'third_party/espresso'
519 ],
520 },
521 {
522 'name': 'robolectric_libs',
523 'pattern': '.',
524 'condition': 'checkout_android',
525 'action': ['python',
526 'src/build/android/update_deps/update_third_party_deps.py',
527 'download',
528 '-b', 'chromium-robolectric',
529 '-l', 'third_party/robolectric'
530 ],
531 },
532 {
533 'name': 'apache_velocity',
534 'pattern': '.',
535 'condition': 'checkout_android',
536 'action': ['python',
537 'src/build/android/update_deps/update_third_party_deps.py',
538 'download',
539 '-b', 'chromium-apache-velocity',
540 '-l', 'third_party/apache_velocity'
541 ],
542 },
543 {
544 'name': 'ow2_asm',
545 'pattern': '.',
546 'condition': 'checkout_android',
547 'action': ['python',
548 'src/build/android/update_deps/update_third_party_deps.py',
549 'download',
550 '-b', 'chromium-ow2-asm',
551 '-l', 'third_party/ow2_asm'
552 ],
553 },
554 {
555 'name': 'desugar',
556 'pattern': '.',
557 'condition': 'checkout_android',
558 'action': ['python',
559 'src/build/android/update_deps/update_third_party_deps.py',
560 'download',
561 '-b', 'chromium-android-tools/bazel/desugar',
562 '-l', 'third_party/bazel/desugar'
563 ],
564 },
565 {
566 'name': 'icu4j',
567 'pattern': '.',
568 'condition': 'checkout_android',
569 'action': ['python',
570 'src/build/android/update_deps/update_third_party_deps.py',
571 'download',
572 '-b', 'chromium-icu4j',
573 '-l', 'third_party/icu4j'
574 ],
575 },
576 {
577 'name': 'accessibility_test_framework',
578 'pattern': '.',
579 'condition': 'checkout_android',
580 'action': ['python',
581 'src/build/android/update_deps/update_third_party_deps.py',
582 'download',
583 '-b', 'chromium-accessibility-test-framework',
584 '-l', 'third_party/accessibility_test_framework'
585 ],
586 },
587 {
588 'name': 'bouncycastle',
589 'pattern': '.',
590 'condition': 'checkout_android',
591 'action': ['python',
592 'src/build/android/update_deps/update_third_party_deps.py',
593 'download',
594 '-b', 'chromium-bouncycastle',
595 '-l', 'third_party/bouncycastle'
596 ],
597 },
598 {
599 'name': 'sqlite4java',
600 'pattern': '.',
601 'condition': 'checkout_android',
602 'action': ['python',
603 'src/build/android/update_deps/update_third_party_deps.py',
604 'download',
605 '-b', 'chromium-sqlite4java',
606 '-l', 'third_party/sqlite4java'
607 ],
608 },
609 {
610 'name': 'xstream',
611 'pattern': '.',
612 'condition': 'checkout_android',
613 'action': ['python',
614 'src/build/android/update_deps/update_third_party_deps.py',
615 'download',
616 '-b', 'chromium-robolectric',
617 '-l', 'third_party/xstream'
618 ],
619 },
620 {
621 'name': 'objenesis',
622 'pattern': '.',
623 'condition': 'checkout_android',
624 'action': ['python',
625 'src/build/android/update_deps/update_third_party_deps.py',
626 'download',
627 '-b', 'chromium-objenesis',
628 '-l', 'third_party/objenesis'
629 ],
630 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000631]
kjellander200028f2017-08-17 09:54:12 -0700632
kjellander24d812d2016-11-22 07:02:11 -0800633recursedeps = [
634 # buildtools provides clang_format, libc++, and libc++abi.
635 'src/buildtools',
636 # android_tools manages the NDK.
637 'src/third_party/android_tools',
638]
Mirko Bonadeibb547202017-09-15 06:15:48 +0200639
640# Define rules for which include paths are allowed in our source.
641include_rules = [
642 # Base is only used to build Android APK tests and may not be referenced by
643 # WebRTC production code.
644 "-base",
645 "-chromium",
646 "+external/webrtc/webrtc", # Android platform build.
Mirko Bonadeibb547202017-09-15 06:15:48 +0200647 "+libyuv",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200648 # Individual headers that will be moved out of here, see webrtc:4243.
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200649 "+call/rtp_config.h",
650 "+common_types.h",
651 "+transport.h",
652 "+typedefs.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200653
654 "+WebRTC",
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200655 "+api",
656 "+modules/include",
657 "+rtc_base",
658 "+test",
659 "+rtc_tools",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200660]
661
662# The below rules will be removed when webrtc:4243 is fixed.
663specific_include_rules = {
664 "video_receive_stream\.h": [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200665 "+call/video_receive_stream.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200666 ],
667 "video_send_stream\.h": [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200668 "+call/video_send_stream.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200669 ],
670}