blob: 6bb65103aac431118949a2cd50657dd48760cc3e [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',
Autoroller6fa6dd42017-10-13 12:52:50 -070010 'chromium_revision': 'f4ecd4bed36c803a8ab88e44bd5a91bdd3d95d46',
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.
buildbotb600d872017-09-11 06:55:38 -070015 'swarming_revision': '5e8001d9a710121ce7a68efd0804430a34b4f9e4',
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.
kjellander251eb272017-04-05 22:49:24 -070027 'lss_revision': '63f24c8221a229f677d26ebe8f3d1528a9d787ac',
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.
Autoroller6fa6dd42017-10-13 12:52:50 -070031 'catapult_revision': '6f19655f67942d3b13000fdc157ddcf914186e7b',
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':
Autoroller6fa6dd42017-10-13 12:52:50 -070041 Var('chromium_git') + '/chromium/src/base' + '@' + '041cecf43e2ac84b85ebc1056d32428b0ad96ab9',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010042 'src/build':
Autoroller6fa6dd42017-10-13 12:52:50 -070043 Var('chromium_git') + '/chromium/src/build' + '@' + '8afa1551c53021d42a9805be6ceeae90e70eab9d',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010044 'src/buildtools':
Autorollere10c01c2017-09-21 05:49:56 -070045 Var('chromium_git') + '/chromium/buildtools.git' + '@' + 'f6d165d9d842ddd29056c127a5f3a3c5d8e0d2e3',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020046 # Gradle 3.5.0. Used for testing Android Studio project generation for WebRTC.
47 'src/examples/androidtests/third_party/gradle': {
48 'url': Var('chromium_git') + '/external/github.com/gradle/gradle.git' + '@' +
49 '941559e020f6c357ebb08d5c67acdb858a3defc2',
50 'condition': 'checkout_android',
51 },
52 'src/ios': {
Autoroller6fa6dd42017-10-13 12:52:50 -070053 'url': Var('chromium_git') + '/chromium/src/ios' + '@' + 'f556c12cad23e329310fafa8f3917829f66ef773',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020054 'condition': 'checkout_ios',
55 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010056 'src/testing':
Autoroller6fa6dd42017-10-13 12:52:50 -070057 Var('chromium_git') + '/chromium/src/testing' + '@' + '744b907c601d9d574422519da02c3d67fd477335',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010058 'src/third_party':
Autoroller6fa6dd42017-10-13 12:52:50 -070059 Var('chromium_git') + '/chromium/src/third_party' + '@' + '96b848f8000b99c6486348689299320f3f700a47',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020060 'src/third_party/android_tools': {
61 'url': Var('chromium_git') + '/android_tools.git' + '@' + 'ca9dc7245b888c75307f0619e4a39fb46a82de66',
62 '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':
Autoroller6fa6dd42017-10-13 12:52:50 -070075 Var('chromium_git') + '/chromium/tools/depot_tools.git' + '@' + '7de54ef0a25f546747ea9f2a536d5cb175abc566',
Mirko Bonadei65ceb662017-10-13 09:45:37 +020076 'src/third_party/errorprone/lib': {
77 'url': Var('chromium_git') + '/chromium/third_party/errorprone.git' + '@' + '6a55852cd7d1ef2f05a75d300495143be2a051d4',
78 'condition': 'checkout_android',
79 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010080 'src/third_party/ffmpeg':
Autoroller6fa6dd42017-10-13 12:52:50 -070081 Var('chromium_git') + '/chromium/third_party/ffmpeg.git' + '@' + '3098b6a24547c66d20ffd8448f6a719f41f87b95',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020082 # WebRTC-only dependency (not present in Chromium).
83 'src/third_party/gtest-parallel':
84 Var('chromium_git') + '/external/github.com/google/gtest-parallel' + '@' + 'ee2027381105650fb1c66b2b121ba00b79e84d5c',
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':
Autoroller6fa6dd42017-10-13 12:52:50 -0700108 Var('chromium_git') + '/webm/libvpx.git' + '@' + 'caa116c9be96508c18d533dedc95b2df4f8e3812',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100109 'src/third_party/libyuv':
Autorolleraa0fe122017-09-20 17:49:57 -0700110 Var('chromium_git') + '/libyuv/libyuv.git' + '@' + '5b1af9a33545895ea12c52bf007f17914de19173',
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':
Autoroller6fa6dd42017-10-13 12:52:50 -0700150 Var('chromium_git') + '/chromium/src/tools' + '@' + 'b6a9a695f5d5bf331900cbd851b6b039a8322dfd',
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 },
309 # Pull luci-go binaries (isolate, swarming) using checked-in hashes.
310 {
311 'name': 'luci-go_win',
312 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200313 'condition': 'host_os == "win"',
kjellander24d812d2016-11-22 07:02:11 -0800314 'action': [ 'download_from_google_storage',
315 '--no_resume',
316 '--platform=win32',
317 '--no_auth',
318 '--bucket', 'chromium-luci',
319 '-d', 'src/tools/luci-go/win64',
320 ],
321 },
322 {
323 'name': 'luci-go_mac',
324 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200325 'condition': 'host_os == "mac"',
kjellander24d812d2016-11-22 07:02:11 -0800326 'action': [ 'download_from_google_storage',
327 '--no_resume',
328 '--platform=darwin',
329 '--no_auth',
330 '--bucket', 'chromium-luci',
331 '-d', 'src/tools/luci-go/mac64',
332 ],
333 },
334 {
335 'name': 'luci-go_linux',
336 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200337 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800338 'action': [ 'download_from_google_storage',
339 '--no_resume',
340 '--platform=linux*',
341 '--no_auth',
342 '--bucket', 'chromium-luci',
343 '-d', 'src/tools/luci-go/linux64',
344 ],
345 },
Henrik Kjellander55dad1b2017-05-11 12:00:53 +0200346 # Pull the Syzygy binaries, used for optimization and instrumentation.
347 {
348 'name': 'syzygy-binaries',
349 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200350 'condition': 'host_os == "win"',
Henrik Kjellander55dad1b2017-05-11 12:00:53 +0200351 'action': ['python',
352 'src/build/get_syzygy_binaries.py',
353 '--output-dir=src/third_party/syzygy/binaries',
354 '--revision=a8456d9248a126881dcfb8707ca7dcdae56e1ac7',
355 '--overwrite',
356 ],
357 },
kjellander24d812d2016-11-22 07:02:11 -0800358 {
Mirko Bonadeicb2bc112017-10-10 13:28:18 +0200359 'name': 'msan_chained_origins',
360 'pattern': '.',
361 'condition': 'checkout_instrumented_libraries',
362 'action': [ 'python',
363 'src/third_party/depot_tools/download_from_google_storage.py',
364 "--no_resume",
365 "--no_auth",
366 "--bucket", "chromium-instrumented-libraries",
367 "-s", "src/third_party/instrumented_libraries/binaries/msan-chained-origins-trusty.tgz.sha1",
368 ],
369 },
370 {
371 'name': 'msan_no_origins',
372 'pattern': '.',
373 'condition': 'checkout_instrumented_libraries',
374 'action': [ 'python',
375 'src/third_party/depot_tools/download_from_google_storage.py',
376 "--no_resume",
377 "--no_auth",
378 "--bucket", "chromium-instrumented-libraries",
379 "-s", "src/third_party/instrumented_libraries/binaries/msan-no-origins-trusty.tgz.sha1",
380 ],
kjellander24d812d2016-11-22 07:02:11 -0800381 },
382 {
kjellander@webrtc.org80174582013-11-04 12:07:57 +0000383 # Download test resources, i.e. video and audio files from Google Storage.
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +0000384 'pattern': '.',
385 'action': ['download_from_google_storage',
386 '--directory',
387 '--recursive',
388 '--num_threads=10',
389 '--no_auth',
kjellander4ff818e2015-12-18 12:29:28 -0800390 '--quiet',
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +0000391 '--bucket', 'chromium-webrtc-resources',
392 'src/resources'],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000393 },
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200394 {
395 # This downloads SDK extras and puts them in the
396 # third_party/android_tools/sdk/extras directory.
397 'name': 'sdkextras',
398 'pattern': '.',
399 'condition': 'checkout_android',
400 # When adding a new sdk extras package to download, add the package
401 # directory and zip file to .gitignore in third_party/android_tools.
402 'action': ['python',
403 'src/build/android/play_services/update.py',
404 'download'
405 ],
406 },
407 {
408 'name': 'intellij',
409 'pattern': '.',
410 'condition': 'checkout_android',
411 'action': ['python',
412 'src/build/android/update_deps/update_third_party_deps.py',
413 'download',
414 '-b', 'chromium-intellij',
415 '-l', 'third_party/intellij'
416 ],
417 },
418 {
419 'name': 'javax_inject',
420 'pattern': '.',
421 'condition': 'checkout_android',
422 'action': ['python',
423 'src/build/android/update_deps/update_third_party_deps.py',
424 'download',
425 '-b', 'chromium-javax-inject',
426 '-l', 'third_party/javax_inject'
427 ],
428 },
429 {
430 'name': 'hamcrest',
431 'pattern': '.',
432 'condition': 'checkout_android',
433 'action': ['python',
434 'src/build/android/update_deps/update_third_party_deps.py',
435 'download',
436 '-b', 'chromium-hamcrest',
437 '-l', 'third_party/hamcrest'
438 ],
439 },
440 {
441 'name': 'guava',
442 'pattern': '.',
443 'condition': 'checkout_android',
444 'action': ['python',
445 'src/build/android/update_deps/update_third_party_deps.py',
446 'download',
447 '-b', 'chromium-guava',
448 '-l', 'third_party/guava'
449 ],
450 },
451 {
452 'name': 'android_support_test_runner',
453 'pattern': '.',
454 'condition': 'checkout_android',
455 'action': ['python',
456 'src/build/android/update_deps/update_third_party_deps.py',
457 'download',
458 '-b', 'chromium-android-support-test-runner',
459 '-l', 'third_party/android_support_test_runner'
460 ],
461 },
462 {
463 'name': 'byte_buddy',
464 'pattern': '.',
465 'condition': 'checkout_android',
466 'action': ['python',
467 'src/build/android/update_deps/update_third_party_deps.py',
468 'download',
469 '-b', 'chromium-byte-buddy',
470 '-l', 'third_party/byte_buddy'
471 ],
472 },
473 {
474 'name': 'espresso',
475 'pattern': '.',
476 'condition': 'checkout_android',
477 'action': ['python',
478 'src/build/android/update_deps/update_third_party_deps.py',
479 'download',
480 '-b', 'chromium-espresso',
481 '-l', 'third_party/espresso'
482 ],
483 },
484 {
485 'name': 'robolectric_libs',
486 'pattern': '.',
487 'condition': 'checkout_android',
488 'action': ['python',
489 'src/build/android/update_deps/update_third_party_deps.py',
490 'download',
491 '-b', 'chromium-robolectric',
492 '-l', 'third_party/robolectric'
493 ],
494 },
495 {
496 'name': 'apache_velocity',
497 'pattern': '.',
498 'condition': 'checkout_android',
499 'action': ['python',
500 'src/build/android/update_deps/update_third_party_deps.py',
501 'download',
502 '-b', 'chromium-apache-velocity',
503 '-l', 'third_party/apache_velocity'
504 ],
505 },
506 {
507 'name': 'ow2_asm',
508 'pattern': '.',
509 'condition': 'checkout_android',
510 'action': ['python',
511 'src/build/android/update_deps/update_third_party_deps.py',
512 'download',
513 '-b', 'chromium-ow2-asm',
514 '-l', 'third_party/ow2_asm'
515 ],
516 },
517 {
518 'name': 'desugar',
519 'pattern': '.',
520 'condition': 'checkout_android',
521 'action': ['python',
522 'src/build/android/update_deps/update_third_party_deps.py',
523 'download',
524 '-b', 'chromium-android-tools/bazel/desugar',
525 '-l', 'third_party/bazel/desugar'
526 ],
527 },
528 {
529 'name': 'icu4j',
530 'pattern': '.',
531 'condition': 'checkout_android',
532 'action': ['python',
533 'src/build/android/update_deps/update_third_party_deps.py',
534 'download',
535 '-b', 'chromium-icu4j',
536 '-l', 'third_party/icu4j'
537 ],
538 },
539 {
540 'name': 'accessibility_test_framework',
541 'pattern': '.',
542 'condition': 'checkout_android',
543 'action': ['python',
544 'src/build/android/update_deps/update_third_party_deps.py',
545 'download',
546 '-b', 'chromium-accessibility-test-framework',
547 '-l', 'third_party/accessibility_test_framework'
548 ],
549 },
550 {
551 'name': 'bouncycastle',
552 'pattern': '.',
553 'condition': 'checkout_android',
554 'action': ['python',
555 'src/build/android/update_deps/update_third_party_deps.py',
556 'download',
557 '-b', 'chromium-bouncycastle',
558 '-l', 'third_party/bouncycastle'
559 ],
560 },
561 {
562 'name': 'sqlite4java',
563 'pattern': '.',
564 'condition': 'checkout_android',
565 'action': ['python',
566 'src/build/android/update_deps/update_third_party_deps.py',
567 'download',
568 '-b', 'chromium-sqlite4java',
569 '-l', 'third_party/sqlite4java'
570 ],
571 },
572 {
573 'name': 'xstream',
574 'pattern': '.',
575 'condition': 'checkout_android',
576 'action': ['python',
577 'src/build/android/update_deps/update_third_party_deps.py',
578 'download',
579 '-b', 'chromium-robolectric',
580 '-l', 'third_party/xstream'
581 ],
582 },
583 {
584 'name': 'objenesis',
585 'pattern': '.',
586 'condition': 'checkout_android',
587 'action': ['python',
588 'src/build/android/update_deps/update_third_party_deps.py',
589 'download',
590 '-b', 'chromium-objenesis',
591 '-l', 'third_party/objenesis'
592 ],
593 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000594]
kjellander200028f2017-08-17 09:54:12 -0700595
kjellander24d812d2016-11-22 07:02:11 -0800596recursedeps = [
597 # buildtools provides clang_format, libc++, and libc++abi.
598 'src/buildtools',
599 # android_tools manages the NDK.
600 'src/third_party/android_tools',
601]
Mirko Bonadeibb547202017-09-15 06:15:48 +0200602
603# Define rules for which include paths are allowed in our source.
604include_rules = [
605 # Base is only used to build Android APK tests and may not be referenced by
606 # WebRTC production code.
607 "-base",
608 "-chromium",
609 "+external/webrtc/webrtc", # Android platform build.
Mirko Bonadeibb547202017-09-15 06:15:48 +0200610 "+libyuv",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200611 # Individual headers that will be moved out of here, see webrtc:4243.
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200612 "+call/rtp_config.h",
613 "+common_types.h",
614 "+transport.h",
615 "+typedefs.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200616
617 "+WebRTC",
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200618 "+api",
619 "+modules/include",
620 "+rtc_base",
621 "+test",
622 "+rtc_tools",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200623]
624
625# The below rules will be removed when webrtc:4243 is fixed.
626specific_include_rules = {
627 "video_receive_stream\.h": [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200628 "+call/video_receive_stream.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200629 ],
630 "video_send_stream\.h": [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200631 "+call/video_send_stream.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200632 ],
633}