blob: ebcce7488b153e2c37cc3f8e9fa59012d803b848 [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',
Henrik Kjellandera9d4da82017-09-14 07:28:10 +02005 'webrtc_git': 'https://webrtc.googlesource.com',
Autorollere19d1ba2017-10-09 02:55:35 -07006 'chromium_revision': '9ac01d1704800450c72a3dc1960be48748458cd2',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +01007 'boringssl_git': 'https://boringssl.googlesource.com',
8 # Three lines of non-changing comments so that
9 # the commit queue can handle CLs rolling swarming_client
10 # and whatever else without interference from each other.
buildbotb600d872017-09-11 06:55:38 -070011 'swarming_revision': '5e8001d9a710121ce7a68efd0804430a34b4f9e4',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010012 # Three lines of non-changing comments so that
13 # the commit queue can handle CLs rolling openmax_dl
14 # and whatever else without interference from each other.
15 'openmax_dl_revision': '7acede9c039ea5d14cf326f44aad1245b9e674a7',
16 # Three lines of non-changing comments so that
17 # the commit queue can handle CLs rolling BoringSSL
18 # and whatever else without interference from each other.
Autorollere19d1ba2017-10-09 02:55:35 -070019 'boringssl_revision': '12fdd08a401d2ef562612638abd016f8b5794cc7',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010020 # Three lines of non-changing comments so that
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010021 # the commit queue can handle CLs rolling lss
22 # and whatever else without interference from each other.
kjellander251eb272017-04-05 22:49:24 -070023 'lss_revision': '63f24c8221a229f677d26ebe8f3d1528a9d787ac',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010024 # Three lines of non-changing comments so that
25 # the commit queue can handle CLs rolling catapult
26 # and whatever else without interference from each other.
Autorollere19d1ba2017-10-09 02:55:35 -070027 'catapult_revision': 'a48a6afde0ff7eeb1c847744192977e412107d6a',
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 libFuzzer
30 # and whatever else without interference from each other.
Autorollere19d1ba2017-10-09 02:55:35 -070031 'libfuzzer_revision': '06fb50cc1f0197398c8a70658928a3b91912e68a',
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000032}
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000033deps = {
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010034 # TODO(kjellander): Move this to be Android-only once the libevent dependency
35 # in base/third_party/libevent is solved.
36 'src/base':
Autorollere19d1ba2017-10-09 02:55:35 -070037 Var('chromium_git') + '/chromium/src/base' + '@' + 'bb89059924fe115f70c9eee3034234db14c12c68',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010038 'src/build':
Autorollere19d1ba2017-10-09 02:55:35 -070039 Var('chromium_git') + '/chromium/src/build' + '@' + 'adaf9e56105b814105e2d49bc4fa63e2cd4795f5',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010040 'src/buildtools':
Autorollere10c01c2017-09-21 05:49:56 -070041 Var('chromium_git') + '/chromium/buildtools.git' + '@' + 'f6d165d9d842ddd29056c127a5f3a3c5d8e0d2e3',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020042 # Gradle 3.5.0. Used for testing Android Studio project generation for WebRTC.
43 'src/examples/androidtests/third_party/gradle': {
44 'url': Var('chromium_git') + '/external/github.com/gradle/gradle.git' + '@' +
45 '941559e020f6c357ebb08d5c67acdb858a3defc2',
46 'condition': 'checkout_android',
47 },
48 'src/ios': {
49 'url': Var('chromium_git') + '/chromium/src/ios' + '@' + '537db2157252bb7a48172a1b68344c0c8a0214d5',
50 'condition': 'checkout_ios',
51 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010052 'src/testing':
Autorollere19d1ba2017-10-09 02:55:35 -070053 Var('chromium_git') + '/chromium/src/testing' + '@' + '9ea2ef7b17229b6ae44a58985e5d15bc29126a45',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010054 'src/third_party':
Autorollere19d1ba2017-10-09 02:55:35 -070055 Var('chromium_git') + '/chromium/src/third_party' + '@' + '637781b501f712a5d34a5fe11688d81f6157f524',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020056 'src/third_party/android_tools': {
57 'url': Var('chromium_git') + '/android_tools.git' + '@' + 'ca9dc7245b888c75307f0619e4a39fb46a82de66',
58 'condition': 'checkout_android',
59 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010060 'src/third_party/boringssl/src':
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020061 Var('boringssl_git') + '/boringssl.git' + '@' + Var('boringssl_revision'),
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010062 'src/third_party/catapult':
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020063 Var('chromium_git') + '/catapult.git' + '@' + Var('catapult_revision'),
64 'src/third_party/ced/src': {
65 'url': Var('chromium_git') + '/external/github.com/google/compact_enc_det.git' + '@' + '94c367a1fe3a13207f4b22604fcfd1d9f9ddf6d9',
66 'condition': 'checkout_android',
67 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010068 'src/third_party/colorama/src':
69 Var('chromium_git') + '/external/colorama.git' + '@' + '799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8',
oprypin40e7ebd2017-07-27 01:40:18 -070070 'src/third_party/depot_tools':
Autorollere19d1ba2017-10-09 02:55:35 -070071 Var('chromium_git') + '/chromium/tools/depot_tools.git' + '@' + '8db10a6fb1d4b86909b8cb32e3b53e35624c8979',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010072 'src/third_party/ffmpeg':
buildbotd4d10f72017-08-28 21:19:01 -070073 Var('chromium_git') + '/chromium/third_party/ffmpeg.git' + '@' + '1e201feaa3260336aa63545c9471b76e5aef2e0a',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020074 # WebRTC-only dependency (not present in Chromium).
75 'src/third_party/gtest-parallel':
76 Var('chromium_git') + '/external/github.com/google/gtest-parallel' + '@' + 'ee2027381105650fb1c66b2b121ba00b79e84d5c',
kjellander3dae7052017-05-03 06:44:36 -070077 'src/third_party/googletest/src':
buildbot8f82e632017-08-30 21:18:15 -070078 Var('chromium_git') + '/external/github.com/google/googletest.git' + '@' + '7f8fefabedf2965980585be8c2bff97458f28e0b',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020079 'src/third_party/icu': {
80 'url': Var('chromium_git') + '/chromium/deps/icu.git' + '@' + '08cb956852a5ccdba7f9c941728bb833529ba3c6',
81 'condition': 'checkout_android',
82 },
83 'src/third_party/jsr-305/src': {
84 'url': Var('chromium_git') + '/external/jsr-305.git' + '@' + '642c508235471f7220af6d5df2d3210e3bfc0919',
85 'condition': 'checkout_android',
86 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010087 'src/third_party/jsoncpp/source':
88 Var('chromium_git') + '/external/github.com/open-source-parsers/jsoncpp.git' + '@' + 'f572e8e42e22cfcf5ab0aea26574f408943edfa4', # from svn 248
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020089 'src/third_party/junit/src': {
90 'url': Var('chromium_git') + '/external/junit.git' + '@' + '64155f8a9babcfcf4263cf4d08253a1556e75481',
91 'condition': 'checkout_android',
92 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010093 # Used for building libFuzzers (only supports Linux).
94 'src/third_party/libFuzzer/src':
oprypin801f7222017-09-01 05:43:07 -070095 Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git' + '@' + Var('libfuzzer_revision'),
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010096 'src/third_party/libjpeg_turbo':
buildbot1c23e942017-04-20 09:30:13 -070097 Var('chromium_git') + '/chromium/deps/libjpeg_turbo.git' + '@' + 'a1750dbc79a8792dde3d3f7d7d8ac28ba01ac9dd',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +010098 'src/third_party/libsrtp':
Henrik Kjellander5a17ea92017-10-09 13:14:23 +020099 Var('chromium_git') + '/chromium/deps/libsrtp.git' + '@' + '1d45b8e599dc2db6ea3ae22dbc94a8c504652423',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100100 'src/third_party/libvpx/source/libvpx':
Oleh Prypin4627a332017-10-06 01:11:00 +0200101 Var('chromium_git') + '/webm/libvpx.git' + '@' + 'fe7b869104806752a26a262dc60923639d9a384f',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100102 'src/third_party/libyuv':
Autorolleraa0fe122017-09-20 17:49:57 -0700103 Var('chromium_git') + '/libyuv/libyuv.git' + '@' + '5b1af9a33545895ea12c52bf007f17914de19173',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200104 'src/third_party/lss': {
105 'url': Var('chromium_git') + '/linux-syscall-support.git' + '@' + Var('lss_revision'),
106 'condition': 'checkout_android or checkout_linux',
107 },
108 'src/third_party/mockito/src': {
109 'url': Var('chromium_git') + '/external/mockito/mockito.git' + '@' + 'de83ad4598ad4cf5ea53c69a8a8053780b04b850',
110 'condition': 'checkout_android',
111 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100112 'src/third_party/openh264/src':
ssilkin1440c9f2017-09-28 03:35:45 -0700113 Var('chromium_git') + '/external/github.com/cisco/openh264' + '@' + 'a180c9d4d6f1a4830ca9eed9d159d54996bd63cb',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100114 'src/third_party/openmax_dl':
Henrik Kjellandera9d4da82017-09-14 07:28:10 +0200115 Var('webrtc_git') + '/deps/third_party/openmax.git' + '@' + Var('openmax_dl_revision'),
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200116 'src/third_party/requests/src': {
117 'url': Var('chromium_git') + '/external/github.com/kennethreitz/requests.git' + '@' + 'f172b30356d821d180fa4ecfa3e71c7274a32de4',
118 'condition': 'checkout_android',
119 },
120 'src/third_party/robolectric/robolectric': {
121 'url': Var('chromium_git') + '/external/robolectric.git' + '@' + 'b02c65cc6d7465f58f0de48a39914aa905692afa',
122 'condition': 'checkout_android',
123 },
124 'src/third_party/ub-uiautomator/lib': {
125 'url': Var('chromium_git') + '/chromium/third_party/ub-uiautomator.git' + '@' + '00270549ce3161ae72ceb24712618ea28b4f9434',
126 'condition': 'checkout_android',
127 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100128 'src/third_party/usrsctp/usrsctplib':
buildbot1b20dc42017-08-07 12:55:14 -0700129 Var('chromium_git') + '/external/github.com/sctplab/usrsctp' + '@' + 'f4819e1b177f7bfdd761c147f5a649b9f1a78c06',
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200130 # WebRTC-only dependency (not present in Chromium).
131 'src/third_party/winsdk_samples': {
132 'url': Var('webrtc_git') + '/deps/third_party/winsdk_samples_v71' + '@' + '2d31a1cbecc86359e6ec041fb9ff6c082babd073',
133 'condition': 'checkout_win',
134 },
135 # Dependency used by libjpeg-turbo.
136 'src/third_party/yasm/binaries': {
137 'url': Var('chromium_git') + '/chromium/deps/yasm/binaries.git' + '@' + '52f9b3f4b0aa06da24ef8b123058bb61ee468881',
138 'condition': 'checkout_win',
139 },
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100140 'src/third_party/yasm/source/patched-yasm':
buildbotf3f7f622017-08-10 21:29:33 -0700141 Var('chromium_git') + '/chromium/deps/yasm/patched-yasm.git' + '@' + 'b98114e18d8b9b84586b10d24353ab8616d4c5fc',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100142 'src/tools':
Autorollere19d1ba2017-10-09 02:55:35 -0700143 Var('chromium_git') + '/chromium/src/tools' + '@' + 'e9d5349db0f3f43ef1b82a62159e160b48b8fce0',
kjellander@webrtc.org177567c2016-12-22 10:40:28 +0100144 'src/tools/gyp':
buildbot2f0803c2017-07-25 11:40:43 -0700145 Var('chromium_git') + '/external/gyp.git' + '@' + 'd61a9397e668fa9843c4aa7da9e79460fe590bfb',
oprypin4ccd9c12017-08-30 00:42:43 -0700146 'src/tools/swarming_client':
147 Var('chromium_git') + '/infra/luci/client-py.git' + '@' + Var('swarming_revision'),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000148}
kjellander200028f2017-08-17 09:54:12 -0700149
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000150hooks = [
151 {
Henrik Kjellander27576e02015-10-15 14:24:09 +0200152 # This clobbers when necessary (based on get_landmines.py). It should be
153 # an early hook but it will need to be run after syncing Chromium and
154 # setting up the links, so the script actually exists.
155 'name': 'landmines',
156 'pattern': '.',
157 'action': [
158 'python',
159 'src/build/landmines.py',
160 '--landmine-scripts',
Henrik Kjellander90fd7d82017-05-09 08:30:10 +0200161 'src/tools_webrtc/get_landmines.py',
Henrik Kjellander27576e02015-10-15 14:24:09 +0200162 '--src-dir',
163 'src',
164 ],
165 },
oprypin40e7ebd2017-07-27 01:40:18 -0700166 {
167 # Ensure that the DEPS'd "depot_tools" has its self-update capability
168 # disabled.
169 'name': 'disable_depot_tools_selfupdate',
170 'pattern': '.',
171 'action': [
172 'python',
173 'src/third_party/depot_tools/update_depot_tools_toggle.py',
174 '--disable',
175 ],
176 },
kjellander24d812d2016-11-22 07:02:11 -0800177 {
178 # Downloads the current stable linux sysroot to build/linux/ if needed.
179 # This sysroot updates at about the same rate that the chrome build deps
180 # change. This script is a no-op except for linux users who are doing
181 # official chrome builds or cross compiling.
182 'name': 'sysroot',
183 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200184 'condition': 'checkout_linux',
kjellander24d812d2016-11-22 07:02:11 -0800185 'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
186 '--running-as-hook'],
187 },
188 {
Henrik Kjellander6b269752017-10-09 13:00:41 +0200189 # Update the Windows toolchain if necessary. Must run before 'clang' below.
kjellander24d812d2016-11-22 07:02:11 -0800190 'name': 'win_toolchain',
191 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200192 # TODO(thakis): Put some condition here. Not just host_os == 'win', because
193 # we also need this for (mac|linux) -> win cross builds.
kjellander24d812d2016-11-22 07:02:11 -0800194 'action': ['python', 'src/build/vs_toolchain.py', 'update'],
195 },
kjellanderec2c93e2017-09-08 10:52:17 -0700196 {
197 # Update the Mac toolchain if necessary.
198 'name': 'mac_toolchain',
199 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200200 'condition': 'checkout_mac',
kjellanderec2c93e2017-09-08 10:52:17 -0700201 'action': ['python', 'src/build/mac_toolchain.py'],
202 },
kjellander24d812d2016-11-22 07:02:11 -0800203 # Pull binutils for linux, enabled debug fission for faster linking /
204 # debugging when used with clang on Ubuntu Precise.
205 # https://code.google.com/p/chromium/issues/detail?id=352046
206 {
207 'name': 'binutils',
208 'pattern': 'src/third_party/binutils',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200209 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800210 'action': [
211 'python',
212 'src/third_party/binutils/download.py',
213 ],
214 },
215 {
kjellander24d812d2016-11-22 07:02:11 -0800216 # Note: On Win, this should run after win_toolchain, as it may use it.
217 'name': 'clang',
218 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200219 'action': ['python', 'src/tools/clang/scripts/update.py'],
kjellander24d812d2016-11-22 07:02:11 -0800220 },
ehmaldonado293bc2a2016-11-25 04:58:47 -0800221 {
222 # Update LASTCHANGE.
223 'name': 'lastchange',
224 'pattern': '.',
225 'action': ['python', 'src/build/util/lastchange.py',
226 '-o', 'src/build/util/LASTCHANGE'],
227 },
kjellander24d812d2016-11-22 07:02:11 -0800228 # Pull GN binaries.
229 {
230 'name': 'gn_win',
231 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200232 'condition': 'host_os == "win"',
kjellander24d812d2016-11-22 07:02:11 -0800233 'action': [ 'download_from_google_storage',
234 '--no_resume',
235 '--platform=win32',
236 '--no_auth',
237 '--bucket', 'chromium-gn',
238 '-s', 'src/buildtools/win/gn.exe.sha1',
239 ],
240 },
241 {
242 'name': 'gn_mac',
243 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200244 'condition': 'host_os == "mac"',
kjellander24d812d2016-11-22 07:02:11 -0800245 'action': [ 'download_from_google_storage',
246 '--no_resume',
247 '--platform=darwin',
248 '--no_auth',
249 '--bucket', 'chromium-gn',
250 '-s', 'src/buildtools/mac/gn.sha1',
251 ],
252 },
253 {
254 'name': 'gn_linux64',
255 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200256 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800257 'action': [ 'download_from_google_storage',
258 '--no_resume',
259 '--platform=linux*',
260 '--no_auth',
261 '--bucket', 'chromium-gn',
262 '-s', 'src/buildtools/linux64/gn.sha1',
263 ],
264 },
265 # Pull clang-format binaries using checked-in hashes.
266 {
267 'name': 'clang_format_win',
268 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200269 'condition': 'host_os == "win"',
kjellander24d812d2016-11-22 07:02:11 -0800270 'action': [ 'download_from_google_storage',
271 '--no_resume',
272 '--platform=win32',
273 '--no_auth',
274 '--bucket', 'chromium-clang-format',
275 '-s', 'src/buildtools/win/clang-format.exe.sha1',
276 ],
277 },
278 {
279 'name': 'clang_format_mac',
280 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200281 'condition': 'host_os == "mac"',
kjellander24d812d2016-11-22 07:02:11 -0800282 'action': [ 'download_from_google_storage',
283 '--no_resume',
284 '--platform=darwin',
285 '--no_auth',
286 '--bucket', 'chromium-clang-format',
287 '-s', 'src/buildtools/mac/clang-format.sha1',
288 ],
289 },
290 {
291 'name': 'clang_format_linux',
292 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200293 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800294 'action': [ 'download_from_google_storage',
295 '--no_resume',
296 '--platform=linux*',
297 '--no_auth',
298 '--bucket', 'chromium-clang-format',
299 '-s', 'src/buildtools/linux64/clang-format.sha1',
300 ],
301 },
302 # Pull luci-go binaries (isolate, swarming) using checked-in hashes.
303 {
304 'name': 'luci-go_win',
305 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200306 'condition': 'host_os == "win"',
kjellander24d812d2016-11-22 07:02:11 -0800307 'action': [ 'download_from_google_storage',
308 '--no_resume',
309 '--platform=win32',
310 '--no_auth',
311 '--bucket', 'chromium-luci',
312 '-d', 'src/tools/luci-go/win64',
313 ],
314 },
315 {
316 'name': 'luci-go_mac',
317 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200318 'condition': 'host_os == "mac"',
kjellander24d812d2016-11-22 07:02:11 -0800319 'action': [ 'download_from_google_storage',
320 '--no_resume',
321 '--platform=darwin',
322 '--no_auth',
323 '--bucket', 'chromium-luci',
324 '-d', 'src/tools/luci-go/mac64',
325 ],
326 },
327 {
328 'name': 'luci-go_linux',
329 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200330 'condition': 'host_os == "linux"',
kjellander24d812d2016-11-22 07:02:11 -0800331 'action': [ 'download_from_google_storage',
332 '--no_resume',
333 '--platform=linux*',
334 '--no_auth',
335 '--bucket', 'chromium-luci',
336 '-d', 'src/tools/luci-go/linux64',
337 ],
338 },
Henrik Kjellander55dad1b2017-05-11 12:00:53 +0200339 # Pull the Syzygy binaries, used for optimization and instrumentation.
340 {
341 'name': 'syzygy-binaries',
342 'pattern': '.',
Henrik Kjellander6b269752017-10-09 13:00:41 +0200343 'condition': 'host_os == "win"',
Henrik Kjellander55dad1b2017-05-11 12:00:53 +0200344 'action': ['python',
345 'src/build/get_syzygy_binaries.py',
346 '--output-dir=src/third_party/syzygy/binaries',
347 '--revision=a8456d9248a126881dcfb8707ca7dcdae56e1ac7',
348 '--overwrite',
349 ],
350 },
kjellander24d812d2016-11-22 07:02:11 -0800351 {
352 # Pull sanitizer-instrumented third-party libraries if requested via
353 # GYP_DEFINES.
354 # See src/third_party/instrumented_libraries/scripts/download_binaries.py.
355 # TODO(kjellander): Update comment when GYP is completely cleaned up.
356 'name': 'instrumented_libraries',
357 'pattern': '\\.sha1',
358 'action': ['python', 'src/third_party/instrumented_libraries/scripts/download_binaries.py'],
359 },
360 {
kjellander@webrtc.org80174582013-11-04 12:07:57 +0000361 # Download test resources, i.e. video and audio files from Google Storage.
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +0000362 'pattern': '.',
363 'action': ['download_from_google_storage',
364 '--directory',
365 '--recursive',
366 '--num_threads=10',
367 '--no_auth',
kjellander4ff818e2015-12-18 12:29:28 -0800368 '--quiet',
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +0000369 '--bucket', 'chromium-webrtc-resources',
370 'src/resources'],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000371 },
Henrik Kjellander5a17ea92017-10-09 13:14:23 +0200372 {
373 # This downloads SDK extras and puts them in the
374 # third_party/android_tools/sdk/extras directory.
375 'name': 'sdkextras',
376 'pattern': '.',
377 'condition': 'checkout_android',
378 # When adding a new sdk extras package to download, add the package
379 # directory and zip file to .gitignore in third_party/android_tools.
380 'action': ['python',
381 'src/build/android/play_services/update.py',
382 'download'
383 ],
384 },
385 {
386 'name': 'intellij',
387 'pattern': '.',
388 'condition': 'checkout_android',
389 'action': ['python',
390 'src/build/android/update_deps/update_third_party_deps.py',
391 'download',
392 '-b', 'chromium-intellij',
393 '-l', 'third_party/intellij'
394 ],
395 },
396 {
397 'name': 'javax_inject',
398 'pattern': '.',
399 'condition': 'checkout_android',
400 'action': ['python',
401 'src/build/android/update_deps/update_third_party_deps.py',
402 'download',
403 '-b', 'chromium-javax-inject',
404 '-l', 'third_party/javax_inject'
405 ],
406 },
407 {
408 'name': 'hamcrest',
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-hamcrest',
415 '-l', 'third_party/hamcrest'
416 ],
417 },
418 {
419 'name': 'guava',
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-guava',
426 '-l', 'third_party/guava'
427 ],
428 },
429 {
430 'name': 'android_support_test_runner',
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-android-support-test-runner',
437 '-l', 'third_party/android_support_test_runner'
438 ],
439 },
440 {
441 'name': 'byte_buddy',
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-byte-buddy',
448 '-l', 'third_party/byte_buddy'
449 ],
450 },
451 {
452 'name': 'espresso',
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-espresso',
459 '-l', 'third_party/espresso'
460 ],
461 },
462 {
463 'name': 'robolectric_libs',
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-robolectric',
470 '-l', 'third_party/robolectric'
471 ],
472 },
473 {
474 'name': 'apache_velocity',
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-apache-velocity',
481 '-l', 'third_party/apache_velocity'
482 ],
483 },
484 {
485 'name': 'ow2_asm',
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-ow2-asm',
492 '-l', 'third_party/ow2_asm'
493 ],
494 },
495 {
496 'name': 'desugar',
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-android-tools/bazel/desugar',
503 '-l', 'third_party/bazel/desugar'
504 ],
505 },
506 {
507 'name': 'icu4j',
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-icu4j',
514 '-l', 'third_party/icu4j'
515 ],
516 },
517 {
518 'name': 'accessibility_test_framework',
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-accessibility-test-framework',
525 '-l', 'third_party/accessibility_test_framework'
526 ],
527 },
528 {
529 'name': 'bouncycastle',
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-bouncycastle',
536 '-l', 'third_party/bouncycastle'
537 ],
538 },
539 {
540 'name': 'sqlite4java',
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-sqlite4java',
547 '-l', 'third_party/sqlite4java'
548 ],
549 },
550 {
551 'name': 'xstream',
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-robolectric',
558 '-l', 'third_party/xstream'
559 ],
560 },
561 {
562 'name': 'objenesis',
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-objenesis',
569 '-l', 'third_party/objenesis'
570 ],
571 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000572]
kjellander200028f2017-08-17 09:54:12 -0700573
kjellander24d812d2016-11-22 07:02:11 -0800574recursedeps = [
575 # buildtools provides clang_format, libc++, and libc++abi.
576 'src/buildtools',
577 # android_tools manages the NDK.
578 'src/third_party/android_tools',
579]
Mirko Bonadeibb547202017-09-15 06:15:48 +0200580
581# Define rules for which include paths are allowed in our source.
582include_rules = [
583 # Base is only used to build Android APK tests and may not be referenced by
584 # WebRTC production code.
585 "-base",
586 "-chromium",
587 "+external/webrtc/webrtc", # Android platform build.
Mirko Bonadeibb547202017-09-15 06:15:48 +0200588 "+libyuv",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200589 # Individual headers that will be moved out of here, see webrtc:4243.
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200590 "+call/rtp_config.h",
591 "+common_types.h",
592 "+transport.h",
593 "+typedefs.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200594
595 "+WebRTC",
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200596 "+api",
597 "+modules/include",
598 "+rtc_base",
599 "+test",
600 "+rtc_tools",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200601]
602
603# The below rules will be removed when webrtc:4243 is fixed.
604specific_include_rules = {
605 "video_receive_stream\.h": [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200606 "+call/video_receive_stream.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200607 ],
608 "video_send_stream\.h": [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200609 "+call/video_send_stream.h",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200610 ],
611}