blob: 15c166558361b7550e70bb395e63f1fe9df98fd3 [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',
Oleh Prypinc9e6a592018-02-09 10:42:55 +010010 'chromium_revision': '004f3b4b4000be325307d1c409a03411aa00beaa',
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':
Oleh Prypinc9e6a592018-02-09 10:42:55 +010041 Var('chromium_git') + '/chromium/src/base' + '@' + '782ae7073af5eb7f92761761f365509e1cb05771',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010042 'src/build':
Oleh Prypinc9e6a592018-02-09 10:42:55 +010043 Var('chromium_git') + '/chromium/src/build' + '@' + 'c1972dd3978f1de4da537c7c5ef24a39a71f67c5',
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':
Oleh Prypinc9e6a592018-02-09 10:42:55 +010057 Var('chromium_git') + '/chromium/src/testing' + '@' + '81576293e60c168fc2e7f4c719bedd614144e766',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010058 'src/third_party':
Oleh Prypinc9e6a592018-02-09 10:42:55 +010059 Var('chromium_git') + '/chromium/src/third_party' + '@' + 'e3de125b3f7a79004fa2d641870629f9272343d8',
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':
Oleh Prypinc9e6a592018-02-09 10:42:55 +0100162 Var('chromium_git') + '/chromium/src/tools' + '@' + '54f1b52f749a2b2f06080b9d4d57b41c2fe8d497',
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 },
Oleh Prypinc9e6a592018-02-09 10:42:55 +0100196 # Downloads the current stable linux sysroot to build/linux/ if needed.
kjellander24d812d2016-11-22 07:02:11 -0800197 {
Oleh Prypinc9e6a592018-02-09 10:42:55 +0100198 'name': 'sysroot_arm',
kjellander24d812d2016-11-22 07:02:11 -0800199 'pattern': '.',
Oleh Prypinc9e6a592018-02-09 10:42:55 +0100200 'condition': 'checkout_linux and checkout_arm',
kjellander24d812d2016-11-22 07:02:11 -0800201 'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
Oleh Prypinc9e6a592018-02-09 10:42:55 +0100202 '--arch=arm'],
203 },
204 {
205 'name': 'sysroot_arm64',
206 'pattern': '.',
207 'condition': 'checkout_linux and checkout_arm64',
208 'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
209 '--arch=arm64'],
210 },
211 {
212 'name': 'sysroot_x86',
213 'pattern': '.',
214 'condition': 'checkout_linux and (checkout_x86 or checkout_x64)',
215 'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
216 '--arch=x86'],
217 },
218 {
219 'name': 'sysroot_mips',
220 'pattern': '.',
221 'condition': 'checkout_linux and checkout_mips',
222 'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
223 '--arch=mips'],
224 },
225 {
226 'name': 'sysroot_x64',
227 'pattern': '.',
228 'condition': 'checkout_linux and checkout_x64',
229 'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
230 '--arch=x64'],
kjellander24d812d2016-11-22 07:02:11 -0800231 },
232 {
Henrik Kjellander6b269752017-10-09 13:00:41 +0200233 # Update the Windows toolchain if necessary. Must run before 'clang' below.
kjellander24d812d2016-11-22 07:02:11 -0800234 'name': 'win_toolchain',
235 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200236 # TODO(thakis): Put some condition here. Not just host_os == 'win', because
237 # we also need this for (mac|linux) -> win cross builds.
kjellander24d812d2016-11-22 07:02:11 -0800238 'action': ['python', 'src/build/vs_toolchain.py', 'update'],
239 },
kjellanderec2c93e2017-09-08 10:52:17 -0700240 {
241 # Update the Mac toolchain if necessary.
242 'name': 'mac_toolchain',
243 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200244 'condition': 'checkout_mac',
kjellanderec2c93e2017-09-08 10:52:17 -0700245 'action': ['python', 'src/build/mac_toolchain.py'],
246 },
kjellander24d812d2016-11-22 07:02:11 -0800247 # Pull binutils for linux, enabled debug fission for faster linking /
248 # debugging when used with clang on Ubuntu Precise.
249 # https://code.google.com/p/chromium/issues/detail?id=352046
250 {
251 'name': 'binutils',
252 'pattern': 'src/third_party/binutils',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200253 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800254 'action': [
255 'python',
256 'src/third_party/binutils/download.py',
257 ],
258 },
259 {
kjellander24d812d2016-11-22 07:02:11 -0800260 # Note: On Win, this should run after win_toolchain, as it may use it.
261 'name': 'clang',
262 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200263 'action': ['python', 'src/tools/clang/scripts/update.py'],
kjellander24d812d2016-11-22 07:02:11 -0800264 },
ehmaldonado293bc2a2016-11-25 04:58:47 -0800265 {
266 # Update LASTCHANGE.
267 'name': 'lastchange',
268 'pattern': '.',
269 'action': ['python', 'src/build/util/lastchange.py',
270 '-o', 'src/build/util/LASTCHANGE'],
271 },
kjellander24d812d2016-11-22 07:02:11 -0800272 # Pull GN binaries.
273 {
274 'name': 'gn_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-gn',
282 '-s', 'src/buildtools/win/gn.exe.sha1',
283 ],
284 },
285 {
286 'name': 'gn_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-gn',
294 '-s', 'src/buildtools/mac/gn.sha1',
295 ],
296 },
297 {
298 'name': 'gn_linux64',
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-gn',
306 '-s', 'src/buildtools/linux64/gn.sha1',
307 ],
308 },
309 # Pull clang-format binaries using checked-in hashes.
310 {
311 'name': 'clang_format_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-clang-format',
319 '-s', 'src/buildtools/win/clang-format.exe.sha1',
320 ],
321 },
322 {
323 'name': 'clang_format_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-clang-format',
331 '-s', 'src/buildtools/mac/clang-format.sha1',
332 ],
333 },
334 {
335 'name': 'clang_format_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-clang-format',
343 '-s', 'src/buildtools/linux64/clang-format.sha1',
344 ],
345 },
Oleh Prypin3ebed362017-10-27 10:14:45 +0200346 # Pull rc binaries using checked-in hashes.
347 {
348 'name': 'rc_win',
349 'pattern': '.',
350 'condition': 'checkout_win and host_os == "win"',
351 'action': [ 'python',
352 'src/third_party/depot_tools/download_from_google_storage.py',
353 '--no_resume',
354 '--no_auth',
355 '--bucket', 'chromium-browser-clang/rc',
356 '-s', 'src/build/toolchain/win/rc/win/rc.exe.sha1',
357 ],
358 },
359 {
360 'name': 'rc_mac',
361 'pattern': '.',
362 'condition': 'checkout_win and host_os == "mac"',
363 'action': [ 'python',
364 'src/third_party/depot_tools/download_from_google_storage.py',
365 '--no_resume',
366 '--no_auth',
367 '--bucket', 'chromium-browser-clang/rc',
368 '-s', 'src/build/toolchain/win/rc/mac/rc.sha1',
369 ],
370 },
371 {
372 'name': 'rc_linux',
373 'pattern': '.',
374 'condition': 'checkout_win and host_os == "linux"',
375 'action': [ 'python',
376 'src/third_party/depot_tools/download_from_google_storage.py',
377 '--no_resume',
378 '--no_auth',
379 '--bucket', 'chromium-browser-clang/rc',
380 '-s', 'src/build/toolchain/win/rc/linux64/rc.sha1',
381 ],
382 },
kjellander24d812d2016-11-22 07:02:11 -0800383 # Pull luci-go binaries (isolate, swarming) using checked-in hashes.
384 {
385 'name': 'luci-go_win',
386 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200387 'condition': 'host_os == "win"',
kjellander24d812d2016-11-22 07:02:11 -0800388 'action': [ 'download_from_google_storage',
389 '--no_resume',
390 '--platform=win32',
391 '--no_auth',
392 '--bucket', 'chromium-luci',
393 '-d', 'src/tools/luci-go/win64',
394 ],
395 },
396 {
397 'name': 'luci-go_mac',
398 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200399 'condition': 'host_os == "mac"',
kjellander24d812d2016-11-22 07:02:11 -0800400 'action': [ 'download_from_google_storage',
401 '--no_resume',
402 '--platform=darwin',
403 '--no_auth',
404 '--bucket', 'chromium-luci',
405 '-d', 'src/tools/luci-go/mac64',
406 ],
407 },
408 {
409 'name': 'luci-go_linux',
410 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200411 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800412 'action': [ 'download_from_google_storage',
413 '--no_resume',
414 '--platform=linux*',
415 '--no_auth',
416 '--bucket', 'chromium-luci',
417 '-d', 'src/tools/luci-go/linux64',
418 ],
419 },
Henrik Kjellander55dad1b2017-05-11 12:00:53 +0200420 # Pull the Syzygy binaries, used for optimization and instrumentation.
421 {
422 'name': 'syzygy-binaries',
423 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200424 'condition': 'host_os == "win"',
Henrik Kjellander55dad1b2017-05-11 12:00:53 +0200425 'action': ['python',
426 'src/build/get_syzygy_binaries.py',
427 '--output-dir=src/third_party/syzygy/binaries',
428 '--revision=a8456d9248a126881dcfb8707ca7dcdae56e1ac7',
429 '--overwrite',
430 ],
431 },
kjellander24d812d2016-11-22 07:02:11 -0800432 {
Mirko Bonadeicb2bc112017-10-10 13:28:18 +0200433 'name': 'msan_chained_origins',
434 'pattern': '.',
435 'condition': 'checkout_instrumented_libraries',
436 'action': [ 'python',
437 'src/third_party/depot_tools/download_from_google_storage.py',
438 "--no_resume",
439 "--no_auth",
440 "--bucket", "chromium-instrumented-libraries",
441 "-s", "src/third_party/instrumented_libraries/binaries/msan-chained-origins-trusty.tgz.sha1",
442 ],
443 },
444 {
445 'name': 'msan_no_origins',
446 'pattern': '.',
447 'condition': 'checkout_instrumented_libraries',
448 'action': [ 'python',
449 'src/third_party/depot_tools/download_from_google_storage.py',
450 "--no_resume",
451 "--no_auth",
452 "--bucket", "chromium-instrumented-libraries",
453 "-s", "src/third_party/instrumented_libraries/binaries/msan-no-origins-trusty.tgz.sha1",
454 ],
kjellander24d812d2016-11-22 07:02:11 -0800455 },
456 {
kjellander@webrtc.org80174582013-11-04 12:07:57 +0000457 # Download test resources, i.e. video and audio files from Google Storage.
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +0000458 'pattern': '.',
459 'action': ['download_from_google_storage',
460 '--directory',
461 '--recursive',
462 '--num_threads=10',
463 '--no_auth',
kjellander4ff818e2015-12-18 12:29:28 -0800464 '--quiet',
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +0000465 '--bucket', 'chromium-webrtc-resources',
466 'src/resources'],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000467 },
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200468 {
Edward Lemur82752c42017-11-08 19:08:54 +0100469 'name': 'Android CIPD Ensure',
470 'pattern': '.',
471 'condition': 'checkout_android',
472 'action': ['src/build/cipd/cipd_wrapper.py',
473 '--chromium-root', 'src',
474 '--ensure-file', 'src/build/cipd/android/android.ensure',
475 ],
476 },
477 {
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200478 # This downloads SDK extras and puts them in the
479 # third_party/android_tools/sdk/extras directory.
480 'name': 'sdkextras',
481 'pattern': '.',
482 'condition': 'checkout_android',
483 # When adding a new sdk extras package to download, add the package
484 # directory and zip file to .gitignore in third_party/android_tools.
485 'action': ['python',
486 'src/build/android/play_services/update.py',
487 'download'
488 ],
489 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000490]
kjellander200028f2017-08-17 09:54:12 -0700491
kjellander24d812d2016-11-22 07:02:11 -0800492recursedeps = [
493 # buildtools provides clang_format, libc++, and libc++abi.
494 'src/buildtools',
495 # android_tools manages the NDK.
496 'src/third_party/android_tools',
497]
Mirko Bonadeibb547202017-09-15 06:15:48 +0200498
499# Define rules for which include paths are allowed in our source.
500include_rules = [
501 # Base is only used to build Android APK tests and may not be referenced by
502 # WebRTC production code.
503 "-base",
504 "-chromium",
505 "+external/webrtc/webrtc", # Android platform build.
Mirko Bonadeibb547202017-09-15 06:15:48 +0200506 "+libyuv",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200507 # Individual headers that will be moved out of here, see webrtc:4243.
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200508 "+call/rtp_config.h",
509 "+common_types.h",
510 "+transport.h",
511 "+typedefs.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200512
513 "+WebRTC",
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200514 "+api",
515 "+modules/include",
516 "+rtc_base",
517 "+test",
518 "+rtc_tools",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200519]
520
521# The below rules will be removed when webrtc:4243 is fixed.
522specific_include_rules = {
523 "video_receive_stream\.h": [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200524 "+call/video_receive_stream.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200525 ],
526 "video_send_stream\.h": [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200527 "+call/video_send_stream.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200528 ],
529}