blob: 03eef4584b37fcb3c9582213b44b0bb25f6b1a17 [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',
Autorollerecfe2e82018-02-08 16:45:46 -080010 'chromium_revision': '6fcad09d4a17b65c16ac2c0b71b3b0b29132935f',
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.
Autoroller2f510ad2018-01-15 07:44:21 -080015 'swarming_revision': '88229872dd17e71658fe96763feaa77915d8cbd6',
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.
Autoroller5a943622017-12-13 17:46:26 -080019 'openmax_dl_revision': 'b611996df3b8f6b151339d22c12c21f167009cb6',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010020 # 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.
Autorollerecfe2e82018-02-08 16:45:46 -080023 'boringssl_revision': '61dedd681501616de5928fe5c0eac6640d4de0c1',
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.
Autorollerecfe2e82018-02-08 16:45:46 -080031 'catapult_revision': 'e653c4b823f98c26bd29e4cf4e3bdacdffb4b041',
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.
Autorollerb5070022017-12-15 12:46:39 -080035 'libfuzzer_revision': 'ba2c1cd6f87accb32b5dbce297387c56a2e53a2f',
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':
Autorollerecfe2e82018-02-08 16:45:46 -080041 Var('chromium_git') + '/chromium/src/base' + '@' + '83ec53d6ecad2ed3054464fc8a3ef32007b7e8a1',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010042 'src/build':
Autorollerecfe2e82018-02-08 16:45:46 -080043 Var('chromium_git') + '/chromium/src/build' + '@' + '03220ef3604673e3b9a14e8770933123bde6c009',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010044 'src/buildtools':
Autoroller9f5abb62018-02-06 04:44:48 -080045 Var('chromium_git') + '/chromium/buildtools.git' + '@' + '2637e7e911524502ea862870f52c36ed2723a25f',
Mirko Bonadeid3fb8642018-01-22 08:50:32 +010046 # Gradle 4.3-rc4. 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 '89af43c4d0506f69980f00dde78c97b2f81437f8',
50 'condition': 'checkout_android',
51 },
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020052 'src/ios': {
Autorollerecfe2e82018-02-08 16:45:46 -080053 'url': Var('chromium_git') + '/chromium/src/ios' + '@' + '09590114049a704b094058cd2a6747346821504c',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020054 'condition': 'checkout_ios',
55 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010056 'src/testing':
Autorollerecfe2e82018-02-08 16:45:46 -080057 Var('chromium_git') + '/chromium/src/testing' + '@' + '7d3f4563c0870ba5a19e21e81d03ea5592ff9998',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010058 'src/third_party':
Autorollerecfe2e82018-02-08 16:45:46 -080059 Var('chromium_git') + '/chromium/src/third_party' + '@' + 'efea12dde96f2d66a9b25b70b169b39110c5f2d7',
Edward Lemur55536f22018-01-11 14:14:26 +010060 'src/third_party/android_ndk': {
61 'url': Var('chromium_git') + '/android_ndk.git' + '@' + 'e951c37287c7d8cd915bf8d4149fd4a06d808b55',
62 'condition': 'checkout_android',
63 },
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020064 'src/third_party/android_tools': {
Autorollerecfe2e82018-02-08 16:45:46 -080065 'url': Var('chromium_git') + '/android_tools.git' + '@' + '9a70d48fcdd68cd0e7e968f342bd767ee6323bd1',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020066 'condition': 'checkout_android',
67 },
Mirko Bonadei969d4a92017-11-05 15:57:38 -080068 'src/third_party/auto/src': {
Autoroller23b5cc92018-01-18 12:45:10 -080069 'url': Var('chromium_git') + '/external/github.com/google/auto.git' + '@' + '8a81a858ae7b78a1aef71ac3905fade0bbd64e82',
Mirko Bonadei969d4a92017-11-05 15:57:38 -080070 'condition': 'checkout_android',
71 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010072 'src/third_party/boringssl/src':
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020073 Var('boringssl_git') + '/boringssl.git' + '@' + Var('boringssl_revision'),
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010074 'src/third_party/catapult':
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020075 Var('chromium_git') + '/catapult.git' + '@' + Var('catapult_revision'),
76 'src/third_party/ced/src': {
77 'url': Var('chromium_git') + '/external/github.com/google/compact_enc_det.git' + '@' + '94c367a1fe3a13207f4b22604fcfd1d9f9ddf6d9',
78 'condition': 'checkout_android',
79 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010080 'src/third_party/colorama/src':
81 Var('chromium_git') + '/external/colorama.git' + '@' + '799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8',
oprypin40e7ebd2017-07-27 01:40:18 -070082 'src/third_party/depot_tools':
Autorollerecfe2e82018-02-08 16:45:46 -080083 Var('chromium_git') + '/chromium/tools/depot_tools.git' + '@' + '71236c3af69153e838b29699a072bc03fa33eab3',
Mirko Bonadei65ceb662017-10-13 09:45:37 +020084 'src/third_party/errorprone/lib': {
Autoroller2f510ad2018-01-15 07:44:21 -080085 'url': Var('chromium_git') + '/chromium/third_party/errorprone.git' + '@' + 'ecc57c2b00627667874744b9ad8efe10734d97a8',
Mirko Bonadei65ceb662017-10-13 09:45:37 +020086 'condition': 'checkout_android',
87 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010088 'src/third_party/ffmpeg':
Autorollerdba73702018-01-31 20:44:26 -080089 Var('chromium_git') + '/chromium/third_party/ffmpeg.git' + '@' + 'f5964c36e1dc41b8b91380b5eff0659e3a5a1549',
Oleh Prypine39c3792017-11-14 23:09:08 +010090 'src/third_party/findbugs': {
91 'url': Var('chromium_git') + '/chromium/deps/findbugs.git' + '@' + '4275d9ac8610db6b1bc9a5e887f97e41b33fac67',
92 'condition': 'checkout_android',
93 },
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020094 # WebRTC-only dependency (not present in Chromium).
95 'src/third_party/gtest-parallel':
Autorollere06570b2017-12-06 12:47:07 -080096 Var('chromium_git') + '/external/github.com/google/gtest-parallel' + '@' + '180c2f52341c065fd4d8418a238375ab6c91b336',
kjellander3dae7052017-05-03 06:44:36 -070097 'src/third_party/googletest/src':
Autoroller9f5abb62018-02-06 04:44:48 -080098 Var('chromium_git') + '/external/github.com/google/googletest.git' + '@' + 'ea31cb15f0c2ab9f5f5b18e82311eb522989d747',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020099 'src/third_party/icu': {
Autoroller9f5abb62018-02-06 04:44:48 -0800100 'url': Var('chromium_git') + '/chromium/deps/icu.git' + '@' + 'd888fd2a1be890f4d35e43f68d6d79f42519a357',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200101 },
102 'src/third_party/jsr-305/src': {
103 'url': Var('chromium_git') + '/external/jsr-305.git' + '@' + '642c508235471f7220af6d5df2d3210e3bfc0919',
104 'condition': 'checkout_android',
105 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100106 'src/third_party/jsoncpp/source':
107 Var('chromium_git') + '/external/github.com/open-source-parsers/jsoncpp.git' + '@' + 'f572e8e42e22cfcf5ab0aea26574f408943edfa4', # from svn 248
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200108 'src/third_party/junit/src': {
109 'url': Var('chromium_git') + '/external/junit.git' + '@' + '64155f8a9babcfcf4263cf4d08253a1556e75481',
110 'condition': 'checkout_android',
111 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100112 # Used for building libFuzzers (only supports Linux).
113 'src/third_party/libFuzzer/src':
oprypin801f7222017-09-01 05:43:07 -0700114 Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git' + '@' + Var('libfuzzer_revision'),
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100115 'src/third_party/libjpeg_turbo':
buildbot1c23e942017-04-20 09:30:13 -0700116 Var('chromium_git') + '/chromium/deps/libjpeg_turbo.git' + '@' + 'a1750dbc79a8792dde3d3f7d7d8ac28ba01ac9dd',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100117 'src/third_party/libsrtp':
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200118 Var('chromium_git') + '/chromium/deps/libsrtp.git' + '@' + '1d45b8e599dc2db6ea3ae22dbc94a8c504652423',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100119 'src/third_party/libvpx/source/libvpx':
Autoroller09e86b22018-02-02 16:45:08 -0800120 Var('chromium_git') + '/webm/libvpx.git' + '@' + 'ac54d233b6d7ba5674996353a86bae42417022ee',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100121 'src/third_party/libyuv':
Autorollerecfe2e82018-02-08 16:45:46 -0800122 Var('chromium_git') + '/libyuv/libyuv.git' + '@' + 'b792e0dbc152dbeea6f4a5ba59dccd05c32eb3c2',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200123 'src/third_party/lss': {
124 'url': Var('chromium_git') + '/linux-syscall-support.git' + '@' + Var('lss_revision'),
125 'condition': 'checkout_android or checkout_linux',
126 },
127 'src/third_party/mockito/src': {
128 'url': Var('chromium_git') + '/external/mockito/mockito.git' + '@' + 'de83ad4598ad4cf5ea53c69a8a8053780b04b850',
129 'condition': 'checkout_android',
130 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100131 'src/third_party/openh264/src':
Autorollere36a7cb2018-01-18 03:45:00 -0800132 Var('chromium_git') + '/external/github.com/cisco/openh264' + '@' + '2e96d62426547ac4fb5cbcd122e5f6eb68d66ee6',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100133 'src/third_party/openmax_dl':
Henrik Kjellandera9d4da82017-09-14 07:28:10 +0200134 Var('webrtc_git') + '/deps/third_party/openmax.git' + '@' + Var('openmax_dl_revision'),
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200135 'src/third_party/requests/src': {
136 'url': Var('chromium_git') + '/external/github.com/kennethreitz/requests.git' + '@' + 'f172b30356d821d180fa4ecfa3e71c7274a32de4',
137 'condition': 'checkout_android',
138 },
139 'src/third_party/robolectric/robolectric': {
Autorollere9fe8b52017-11-30 15:46:32 -0800140 'url': Var('chromium_git') + '/external/robolectric.git' + '@' + '7e067f1112e1502caa742f7be72d37b5678d3403',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200141 'condition': 'checkout_android',
142 },
143 'src/third_party/ub-uiautomator/lib': {
144 'url': Var('chromium_git') + '/chromium/third_party/ub-uiautomator.git' + '@' + '00270549ce3161ae72ceb24712618ea28b4f9434',
145 'condition': 'checkout_android',
146 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100147 'src/third_party/usrsctp/usrsctplib':
Autoroller153eebd2017-12-08 14:47:01 -0800148 Var('chromium_git') + '/external/github.com/sctplab/usrsctp' + '@' + '0e076261b832121cf120ddc04aaff87ac3a34d30',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200149 # WebRTC-only dependency (not present in Chromium).
150 'src/third_party/winsdk_samples': {
151 'url': Var('webrtc_git') + '/deps/third_party/winsdk_samples_v71' + '@' + '2d31a1cbecc86359e6ec041fb9ff6c082babd073',
152 'condition': 'checkout_win',
153 },
154 # Dependency used by libjpeg-turbo.
155 'src/third_party/yasm/binaries': {
156 'url': Var('chromium_git') + '/chromium/deps/yasm/binaries.git' + '@' + '52f9b3f4b0aa06da24ef8b123058bb61ee468881',
157 'condition': 'checkout_win',
158 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100159 'src/third_party/yasm/source/patched-yasm':
buildbotf3f7f622017-08-10 21:29:33 -0700160 Var('chromium_git') + '/chromium/deps/yasm/patched-yasm.git' + '@' + 'b98114e18d8b9b84586b10d24353ab8616d4c5fc',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100161 'src/tools':
Autorollerecfe2e82018-02-08 16:45:46 -0800162 Var('chromium_git') + '/chromium/src/tools' + '@' + 'ffaf09e5ff6e933e382e1c291d3ec9f01202b2fa',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100163 'src/tools/gyp':
buildbot2f0803c2017-07-25 11:40:43 -0700164 Var('chromium_git') + '/external/gyp.git' + '@' + 'd61a9397e668fa9843c4aa7da9e79460fe590bfb',
oprypin4ccd9c12017-08-30 00:42:43 -0700165 'src/tools/swarming_client':
166 Var('chromium_git') + '/infra/luci/client-py.git' + '@' + Var('swarming_revision'),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000167}
kjellander200028f2017-08-17 09:54:12 -0700168
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000169hooks = [
170 {
Henrik Kjellander27576e02015-10-15 14:24:09 +0200171 # This clobbers when necessary (based on get_landmines.py). It should be
172 # an early hook but it will need to be run after syncing Chromium and
173 # setting up the links, so the script actually exists.
174 'name': 'landmines',
175 'pattern': '.',
176 'action': [
177 'python',
178 'src/build/landmines.py',
179 '--landmine-scripts',
Henrik Kjellander90fd7d82017-05-09 08:30:10 +0200180 'src/tools_webrtc/get_landmines.py',
Henrik Kjellander27576e02015-10-15 14:24:09 +0200181 '--src-dir',
182 'src',
183 ],
184 },
oprypin40e7ebd2017-07-27 01:40:18 -0700185 {
186 # Ensure that the DEPS'd "depot_tools" has its self-update capability
187 # disabled.
188 'name': 'disable_depot_tools_selfupdate',
189 'pattern': '.',
190 'action': [
191 'python',
192 'src/third_party/depot_tools/update_depot_tools_toggle.py',
193 '--disable',
194 ],
195 },
kjellander24d812d2016-11-22 07:02:11 -0800196 {
197 # Downloads the current stable linux sysroot to build/linux/ if needed.
198 # This sysroot updates at about the same rate that the chrome build deps
199 # change. This script is a no-op except for linux users who are doing
200 # official chrome builds or cross compiling.
201 'name': 'sysroot',
202 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200203 'condition': 'checkout_linux',
kjellander24d812d2016-11-22 07:02:11 -0800204 'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
205 '--running-as-hook'],
206 },
207 {
Henrik Kjellander6b269752017-10-09 13:00:41 +0200208 # Update the Windows toolchain if necessary. Must run before 'clang' below.
kjellander24d812d2016-11-22 07:02:11 -0800209 'name': 'win_toolchain',
210 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200211 # TODO(thakis): Put some condition here. Not just host_os == 'win', because
212 # we also need this for (mac|linux) -> win cross builds.
kjellander24d812d2016-11-22 07:02:11 -0800213 'action': ['python', 'src/build/vs_toolchain.py', 'update'],
214 },
kjellanderec2c93e2017-09-08 10:52:17 -0700215 {
216 # Update the Mac toolchain if necessary.
217 'name': 'mac_toolchain',
218 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200219 'condition': 'checkout_mac',
kjellanderec2c93e2017-09-08 10:52:17 -0700220 'action': ['python', 'src/build/mac_toolchain.py'],
221 },
kjellander24d812d2016-11-22 07:02:11 -0800222 # Pull binutils for linux, enabled debug fission for faster linking /
223 # debugging when used with clang on Ubuntu Precise.
224 # https://code.google.com/p/chromium/issues/detail?id=352046
225 {
226 'name': 'binutils',
227 'pattern': 'src/third_party/binutils',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200228 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800229 'action': [
230 'python',
231 'src/third_party/binutils/download.py',
232 ],
233 },
234 {
kjellander24d812d2016-11-22 07:02:11 -0800235 # Note: On Win, this should run after win_toolchain, as it may use it.
236 'name': 'clang',
237 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200238 'action': ['python', 'src/tools/clang/scripts/update.py'],
kjellander24d812d2016-11-22 07:02:11 -0800239 },
ehmaldonado293bc2a2016-11-25 04:58:47 -0800240 {
241 # Update LASTCHANGE.
242 'name': 'lastchange',
243 'pattern': '.',
244 'action': ['python', 'src/build/util/lastchange.py',
245 '-o', 'src/build/util/LASTCHANGE'],
246 },
kjellander24d812d2016-11-22 07:02:11 -0800247 # Pull GN binaries.
248 {
249 'name': 'gn_win',
250 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200251 'condition': 'host_os == "win"',
kjellander24d812d2016-11-22 07:02:11 -0800252 'action': [ 'download_from_google_storage',
253 '--no_resume',
254 '--platform=win32',
255 '--no_auth',
256 '--bucket', 'chromium-gn',
257 '-s', 'src/buildtools/win/gn.exe.sha1',
258 ],
259 },
260 {
261 'name': 'gn_mac',
262 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200263 'condition': 'host_os == "mac"',
kjellander24d812d2016-11-22 07:02:11 -0800264 'action': [ 'download_from_google_storage',
265 '--no_resume',
266 '--platform=darwin',
267 '--no_auth',
268 '--bucket', 'chromium-gn',
269 '-s', 'src/buildtools/mac/gn.sha1',
270 ],
271 },
272 {
273 'name': 'gn_linux64',
274 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200275 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800276 'action': [ 'download_from_google_storage',
277 '--no_resume',
278 '--platform=linux*',
279 '--no_auth',
280 '--bucket', 'chromium-gn',
281 '-s', 'src/buildtools/linux64/gn.sha1',
282 ],
283 },
284 # Pull clang-format binaries using checked-in hashes.
285 {
286 'name': 'clang_format_win',
287 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200288 'condition': 'host_os == "win"',
kjellander24d812d2016-11-22 07:02:11 -0800289 'action': [ 'download_from_google_storage',
290 '--no_resume',
291 '--platform=win32',
292 '--no_auth',
293 '--bucket', 'chromium-clang-format',
294 '-s', 'src/buildtools/win/clang-format.exe.sha1',
295 ],
296 },
297 {
298 'name': 'clang_format_mac',
299 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200300 'condition': 'host_os == "mac"',
kjellander24d812d2016-11-22 07:02:11 -0800301 'action': [ 'download_from_google_storage',
302 '--no_resume',
303 '--platform=darwin',
304 '--no_auth',
305 '--bucket', 'chromium-clang-format',
306 '-s', 'src/buildtools/mac/clang-format.sha1',
307 ],
308 },
309 {
310 'name': 'clang_format_linux',
311 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200312 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800313 'action': [ 'download_from_google_storage',
314 '--no_resume',
315 '--platform=linux*',
316 '--no_auth',
317 '--bucket', 'chromium-clang-format',
318 '-s', 'src/buildtools/linux64/clang-format.sha1',
319 ],
320 },
Oleh Prypin3ebed362017-10-27 10:14:45 +0200321 # Pull rc binaries using checked-in hashes.
322 {
323 'name': 'rc_win',
324 'pattern': '.',
325 'condition': 'checkout_win and host_os == "win"',
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/win/rc.exe.sha1',
332 ],
333 },
334 {
335 'name': 'rc_mac',
336 'pattern': '.',
337 'condition': 'checkout_win and host_os == "mac"',
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/mac/rc.sha1',
344 ],
345 },
346 {
347 'name': 'rc_linux',
348 'pattern': '.',
349 'condition': 'checkout_win and host_os == "linux"',
350 'action': [ 'python',
351 'src/third_party/depot_tools/download_from_google_storage.py',
352 '--no_resume',
353 '--no_auth',
354 '--bucket', 'chromium-browser-clang/rc',
355 '-s', 'src/build/toolchain/win/rc/linux64/rc.sha1',
356 ],
357 },
kjellander24d812d2016-11-22 07:02:11 -0800358 # Pull luci-go binaries (isolate, swarming) using checked-in hashes.
359 {
360 'name': 'luci-go_win',
361 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200362 'condition': 'host_os == "win"',
kjellander24d812d2016-11-22 07:02:11 -0800363 'action': [ 'download_from_google_storage',
364 '--no_resume',
365 '--platform=win32',
366 '--no_auth',
367 '--bucket', 'chromium-luci',
368 '-d', 'src/tools/luci-go/win64',
369 ],
370 },
371 {
372 'name': 'luci-go_mac',
373 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200374 'condition': 'host_os == "mac"',
kjellander24d812d2016-11-22 07:02:11 -0800375 'action': [ 'download_from_google_storage',
376 '--no_resume',
377 '--platform=darwin',
378 '--no_auth',
379 '--bucket', 'chromium-luci',
380 '-d', 'src/tools/luci-go/mac64',
381 ],
382 },
383 {
384 'name': 'luci-go_linux',
385 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200386 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800387 'action': [ 'download_from_google_storage',
388 '--no_resume',
389 '--platform=linux*',
390 '--no_auth',
391 '--bucket', 'chromium-luci',
392 '-d', 'src/tools/luci-go/linux64',
393 ],
394 },
Henrik Kjellander55dad1b2017-05-11 12:00:53 +0200395 # Pull the Syzygy binaries, used for optimization and instrumentation.
396 {
397 'name': 'syzygy-binaries',
398 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200399 'condition': 'host_os == "win"',
Henrik Kjellander55dad1b2017-05-11 12:00:53 +0200400 'action': ['python',
401 'src/build/get_syzygy_binaries.py',
402 '--output-dir=src/third_party/syzygy/binaries',
403 '--revision=a8456d9248a126881dcfb8707ca7dcdae56e1ac7',
404 '--overwrite',
405 ],
406 },
kjellander24d812d2016-11-22 07:02:11 -0800407 {
Mirko Bonadeicb2bc112017-10-10 13:28:18 +0200408 'name': 'msan_chained_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-chained-origins-trusty.tgz.sha1",
417 ],
418 },
419 {
420 'name': 'msan_no_origins',
421 'pattern': '.',
422 'condition': 'checkout_instrumented_libraries',
423 'action': [ 'python',
424 'src/third_party/depot_tools/download_from_google_storage.py',
425 "--no_resume",
426 "--no_auth",
427 "--bucket", "chromium-instrumented-libraries",
428 "-s", "src/third_party/instrumented_libraries/binaries/msan-no-origins-trusty.tgz.sha1",
429 ],
kjellander24d812d2016-11-22 07:02:11 -0800430 },
431 {
kjellander@webrtc.org80174582013-11-04 12:07:57 +0000432 # Download test resources, i.e. video and audio files from Google Storage.
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +0000433 'pattern': '.',
434 'action': ['download_from_google_storage',
435 '--directory',
436 '--recursive',
437 '--num_threads=10',
438 '--no_auth',
kjellander4ff818e2015-12-18 12:29:28 -0800439 '--quiet',
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +0000440 '--bucket', 'chromium-webrtc-resources',
441 'src/resources'],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000442 },
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200443 {
Edward Lemur82752c42017-11-08 19:08:54 +0100444 'name': 'Android CIPD Ensure',
445 'pattern': '.',
446 'condition': 'checkout_android',
447 'action': ['src/build/cipd/cipd_wrapper.py',
448 '--chromium-root', 'src',
449 '--ensure-file', 'src/build/cipd/android/android.ensure',
450 ],
451 },
452 {
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200453 # This downloads SDK extras and puts them in the
454 # third_party/android_tools/sdk/extras directory.
455 'name': 'sdkextras',
456 'pattern': '.',
457 'condition': 'checkout_android',
458 # When adding a new sdk extras package to download, add the package
459 # directory and zip file to .gitignore in third_party/android_tools.
460 'action': ['python',
461 'src/build/android/play_services/update.py',
462 'download'
463 ],
464 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000465]
kjellander200028f2017-08-17 09:54:12 -0700466
kjellander24d812d2016-11-22 07:02:11 -0800467recursedeps = [
468 # buildtools provides clang_format, libc++, and libc++abi.
469 'src/buildtools',
470 # android_tools manages the NDK.
471 'src/third_party/android_tools',
472]
Mirko Bonadeibb547202017-09-15 06:15:48 +0200473
474# Define rules for which include paths are allowed in our source.
475include_rules = [
476 # Base is only used to build Android APK tests and may not be referenced by
477 # WebRTC production code.
478 "-base",
479 "-chromium",
480 "+external/webrtc/webrtc", # Android platform build.
Mirko Bonadeibb547202017-09-15 06:15:48 +0200481 "+libyuv",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200482 # Individual headers that will be moved out of here, see webrtc:4243.
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200483 "+call/rtp_config.h",
484 "+common_types.h",
485 "+transport.h",
486 "+typedefs.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200487
488 "+WebRTC",
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200489 "+api",
490 "+modules/include",
491 "+rtc_base",
492 "+test",
493 "+rtc_tools",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200494]
495
496# The below rules will be removed when webrtc:4243 is fixed.
497specific_include_rules = {
498 "video_receive_stream\.h": [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200499 "+call/video_receive_stream.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200500 ],
501 "video_send_stream\.h": [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200502 "+call/video_send_stream.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200503 ],
504}