blob: 5df8834cb34648d6bff27b1ef61fd0628206ec5d [file] [log] [blame]
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +00001use_relative_paths = True
2
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +00003vars = {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +00004 # Override root_dir in your .gclient's custom_vars to specify a custom root
5 # folder name.
6 "root_dir": "trunk",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +00007 "extra_gyp_flag": "-Dextra_gyp_flag=0",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +00008
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +00009 # Use this googlecode_url variable only if there is an internal mirror for it.
10 # If you do not know, use the full path while defining your new deps entry.
11 "googlecode_url": "http://%s.googlecode.com/svn",
pbos@webrtc.org62e5af42013-08-20 09:19:16 +000012 "sourceforge_url": "http://svn.code.sf.net/p/%(repo)s/code",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000013 "chromium_trunk" : "http://src.chromium.org/svn/trunk",
kjellander@webrtc.org27ab19d2014-06-21 19:30:29 +000014 "chromium_revision": "277350",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000015
kjellander@webrtc.org430464c2013-06-04 16:29:45 +000016 # A small subset of WebKit is needed for the Android Python test framework.
17 "webkit_trunk": "http://src.chromium.org/blink/trunk",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000018}
19
20# NOTE: Prefer revision numbers to tags for svn deps. Use http rather than
21# https; the latter can cause problems for users behind proxies.
22deps = {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000023 "../chromium_deps":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000024 File(Var("chromium_trunk") + "/src/DEPS@" + Var("chromium_revision")),
25
wjia@webrtc.org03cfde22014-01-14 17:48:34 +000026 "../chromium_gn":
27 File(Var("chromium_trunk") + "/src/.gn@" + Var("chromium_revision")),
28
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000029 "build":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000030 Var("chromium_trunk") + "/src/build@" + Var("chromium_revision"),
31
andrew@webrtc.orgb9d20642012-09-19 23:08:50 +000032 # Needed by common.gypi.
33 "google_apis/build":
34 Var("chromium_trunk") + "/src/google_apis/build@" + Var("chromium_revision"),
35
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000036 "testing":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000037 Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"),
38
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000039 "testing/gmock":
40 From("chromium_deps", "src/testing/gmock"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000041
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000042 "testing/gtest":
43 From("chromium_deps", "src/testing/gtest"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000044
kjellander@webrtc.org59343ee2014-04-29 09:36:40 +000045 "third_party/binutils":
46 Var("chromium_trunk") + "/src/third_party/binutils@" + Var("chromium_revision"),
47
andrew@webrtc.org36291da2014-02-04 01:45:10 +000048 "third_party/clang_format":
49 Var("chromium_trunk") + "/src/third_party/clang_format@" + Var("chromium_revision"),
50
kjellander@webrtc.org607c8052014-02-09 18:38:31 +000051 "third_party/clang_format/script":
52 From("chromium_deps", "src/third_party/clang_format/script"),
53
kjellander@webrtc.orgc70b2f92014-06-21 19:54:15 +000054 "third_party/colorama/src":
55 From("chromium_deps", "src/third_party/colorama/src"),
56
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000057 "third_party/expat":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000058 Var("chromium_trunk") + "/src/third_party/expat@" + Var("chromium_revision"),
59
kjellander@webrtc.orgcbdb9d12013-08-20 16:18:35 +000060 # When rolling gflags, also update deps/third_party/webrtc/webrtc.DEPS/DEPS
61 # in Chromium's repo.
fischman@webrtc.orgdde7d4c2013-08-15 23:31:30 +000062 "third_party/gflags/src":
63 (Var("googlecode_url") % "gflags") + "/trunk/src@84",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000064
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000065 "third_party/icu/":
66 From("chromium_deps", "src/third_party/icu"),
67
68 "third_party/jsoncpp/":
69 Var("chromium_trunk") + "/src/third_party/jsoncpp@" + Var("chromium_revision"),
70
71 "third_party/jsoncpp/source":
pbos@webrtc.org62e5af42013-08-20 09:19:16 +000072 (Var("sourceforge_url") % {"repo": "jsoncpp"}) + "/trunk/jsoncpp@248",
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000073
74 "third_party/junit/":
75 (Var("googlecode_url") % "webrtc") + "/deps/third_party/junit@3367",
kjellander@webrtc.org287f07b2013-09-27 16:57:10 +000076
kjellander@webrtc.org59343ee2014-04-29 09:36:40 +000077 "third_party/libc++":
78 Var("chromium_trunk") + "/src/third_party/libc++@" + Var("chromium_revision"),
79
80 "third_party/libc++/trunk":
81 From("chromium_deps", "src/third_party/libc++/trunk"),
82
83 "third_party/libc++abi":
84 Var("chromium_trunk") + "/src/third_party/libc++abi@" + Var("chromium_revision"),
85
86 "third_party/libc++abi/trunk":
87 From("chromium_deps", "src/third_party/libc++abi/trunk"),
88
turaj@webrtc.org560dce52014-05-01 18:53:51 +000089 "third_party/openmax_dl/":
turaj@webrtc.orge14ffaa2014-05-09 21:40:23 +000090 (Var("googlecode_url") % "webrtc") + "/deps/third_party/openmax@6096",
turaj@webrtc.org560dce52014-05-01 18:53:51 +000091
mikhal@webrtc.org0b960cf2013-08-30 16:30:53 +000092 "third_party/libjpeg":
93 Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"),
94
95 "third_party/libjpeg_turbo":
96 From("chromium_deps", "src/third_party/libjpeg_turbo"),
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000097
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000098 "third_party/libsrtp/":
99 From("chromium_deps", "src/third_party/libsrtp"),
100
andrew@webrtc.orge6e344a2013-02-12 19:35:18 +0000101 "third_party/libvpx":
fgalligan@google.com948f7682014-06-23 15:07:15 +0000102 Var("chromium_trunk") + "/deps/third_party/libvpx@278497",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000103
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000104 "third_party/libyuv":
fbarchard@google.com3dfabf92014-04-21 22:06:06 +0000105 (Var("googlecode_url") % "libyuv") + "/trunk@1000",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000106
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +0000107 "third_party/opus":
tina.legrand@webrtc.orgd4694432014-06-17 13:24:48 +0000108 Var("chromium_trunk") + "/src/third_party/opus@277414",
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +0000109
110 "third_party/opus/src":
tina.legrand@webrtc.orgff7908a2014-03-25 16:12:43 +0000111 Var("chromium_trunk") + "/deps/third_party/opus@256783",
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +0000112
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000113 "third_party/protobuf":
solenberg@webrtc.orgc6db88b2014-06-04 17:15:42 +0000114 Var("chromium_trunk") + "/src/third_party/protobuf@" + Var("chromium_revision"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000115
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000116 "third_party/sqlite/":
117 Var("chromium_trunk") + "/src/third_party/sqlite@" + Var("chromium_revision"),
118
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000119 "third_party/yasm":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000120 Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"),
121
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000122 "third_party/yasm/source/patched-yasm":
123 From("chromium_deps", "src/third_party/yasm/source/patched-yasm"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000124
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000125 "tools/clang":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000126 Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"),
127
kjellander@webrtc.org851a09e2014-06-17 08:54:03 +0000128 "tools/generate_library_loader":
129 Var("chromium_trunk") + "/src/tools/generate_library_loader@" + Var("chromium_revision"),
130
wjia@webrtc.org03cfde22014-01-14 17:48:34 +0000131 "tools/gn":
132 Var("chromium_trunk") + "/src/tools/gn@" + Var("chromium_revision"),
133
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000134 "tools/gyp":
135 From("chromium_deps", "src/tools/gyp"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000136
andrew@webrtc.org225f2b82013-05-20 21:12:58 +0000137 "tools/protoc_wrapper":
138 Var("chromium_trunk") + "/src/tools/protoc_wrapper@" + Var("chromium_revision"),
139
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000140 "tools/python":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000141 Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"),
142
kjellander@webrtc.org27ab19d2014-06-21 19:30:29 +0000143 "tools/sanitizer_options":
144 File(Var("chromium_trunk") + "/src/base/debug/sanitizer_options.cc@" + Var("chromium_revision")),
145
kjellander@webrtc.orgf9bdbe32013-12-11 13:37:12 +0000146 "tools/swarming_client":
147 From("chromium_deps", "src/tools/swarming_client"),
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000148
kjellander@webrtc.org27ab19d2014-06-21 19:30:29 +0000149 "tools/tsan_suppressions":
150 File(Var("chromium_trunk") + "/src/base/debug/tsan_suppressions.cc@" + Var("chromium_revision")),
151
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000152 "tools/valgrind":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000153 Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"),
154
155 # Needed by build/common.gypi.
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000156 "tools/win/supalink":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000157 Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"),
jiayl@webrtc.orga576faf2014-01-29 17:45:53 +0000158
159 "net/third_party/nss":
160 Var("chromium_trunk") + "/src/net/third_party/nss@" + Var("chromium_revision"),
161
162 "third_party/usrsctp/":
163 Var("chromium_trunk") + "/src/third_party/usrsctp@" + Var("chromium_revision"),
164
165 "third_party/usrsctp/usrsctplib":
jiayl@webrtc.orge3989542014-06-17 18:16:08 +0000166 (Var("googlecode_url") % "sctp-refimpl") + "/trunk/KERN/usrsctp/usrsctplib@8875",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000167}
168
169deps_os = {
170 "win": {
kjellander@webrtc.org31f967c2014-06-09 07:30:37 +0000171 "third_party/drmemory":
kjellander@webrtc.org27ab19d2014-06-21 19:30:29 +0000172 Var("chromium_trunk") + "/src/third_party/drmemory@" + Var("chromium_revision"),
kjellander@webrtc.org31f967c2014-06-09 07:30:37 +0000173
andrew@webrtc.org8cd18c52012-11-21 18:46:45 +0000174 "third_party/winsdk_samples/src":
175 (Var("googlecode_url") % "webrtc") + "/deps/third_party/winsdk_samples_v71@3145",
176
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000177 # Used by libjpeg-turbo.
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000178 "third_party/yasm/binaries":
179 From("chromium_deps", "src/third_party/yasm/binaries"),
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000180
181 # NSS, for SSLClientSocketNSS.
182 "third_party/nss":
183 From("chromium_deps", "src/third_party/nss"),
kjellander@webrtc.org4c617922013-10-10 11:56:09 +0000184
kjellander@webrtc.org6b0cbcb2014-03-10 09:51:17 +0000185 "tools/find_depot_tools":
186 File(Var("chromium_trunk") + "/src/tools/find_depot_tools.py@" + Var("chromium_revision")),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000187 },
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000188
189 "mac": {
190 # NSS, for SSLClientSocketNSS.
191 "third_party/nss":
192 From("chromium_deps", "src/third_party/nss"),
fischman@webrtc.orgca539bb2014-04-15 20:26:41 +0000193
194 # TODO(kjellander): remove once bug 2152 is fixed.
195 # This needs to specify the path directly (instead of using the
196 # chromium_deps version) because chromium_deps only defines this for ios.
197 "testing/iossim/third_party/class-dump":
198 Var("chromium_trunk") + "/deps/third_party/class-dump@199203",
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000199 },
200
201 "ios": {
202 # NSS, for SSLClientSocketNSS.
203 "third_party/nss":
204 From("chromium_deps", "src/third_party/nss"),
fischman@webrtc.org1bc19542013-08-01 18:29:45 +0000205
fischman@webrtc.org1bc19542013-08-01 18:29:45 +0000206 # class-dump utility to generate header files for undocumented SDKs.
207 "testing/iossim/third_party/class-dump":
208 From("chromium_deps", "src/testing/iossim/third_party/class-dump"),
209
210 # Helper for running under the simulator.
211 "testing/iossim":
212 Var("chromium_trunk") + "/src/testing/iossim@" + Var("chromium_revision"),
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000213 },
214
kjellander@webrtc.org18a21a02013-02-11 17:43:19 +0000215 "android": {
kjellander@webrtc.org6cfe1782013-06-18 07:14:33 +0000216 # Precompiled tools needed for Android test execution. Needed since we can't
217 # compile them from source in WebRTC since they depend on Chromium's base.
218 "tools/android":
solenberg@webrtc.orgc6db88b2014-06-04 17:15:42 +0000219 (Var("googlecode_url") % "webrtc") + "/deps/tools/android@6306",
kjellander@webrtc.org6cfe1782013-06-18 07:14:33 +0000220
kjellander@webrtc.org18a21a02013-02-11 17:43:19 +0000221 "third_party/android_tools":
222 From("chromium_deps", "src/third_party/android_tools"),
223
224 "third_party/android_testrunner":
225 Var("chromium_trunk") + "/src/third_party/android_testrunner@" + Var("chromium_revision"),
kjellander@webrtc.org430464c2013-06-04 16:29:45 +0000226
227 "third_party/WebKit/Tools/Scripts":
228 Var("webkit_trunk") + "/Tools/Scripts@151677",
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000229
230 "third_party/openssl":
231 From("chromium_deps", "src/third_party/openssl"),
kjellander@webrtc.org18a21a02013-02-11 17:43:19 +0000232 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000233}
234
235hooks = [
236 {
wjia@webrtc.org03cfde22014-01-14 17:48:34 +0000237 # Copy .gn from temporary place (../chromium_gn) to root_dir.
238 "name": "copy .gn",
239 "pattern": ".",
240 "action": ["python", Var("root_dir") + "/build/cp.py",
241 Var("root_dir") + "/../chromium_gn/.gn",
242 Var("root_dir")],
243 },
244 # Pull GN binaries. This needs to be before running GYP below.
245 {
246 "name": "gn_win",
247 "pattern": "tools/gn/bin/win/gn.exe.sha1",
248 "action": [ "download_from_google_storage",
249 "--no_resume",
250 "--platform=win32",
251 "--no_auth",
252 "--bucket", "chromium-gn",
253 "-s", Var("root_dir") + "/tools/gn/bin/win/gn.exe.sha1",
254 ],
255 },
256 {
257 "name": "gn_mac",
258 "pattern": "tools/gn/bin/mac/gn.sha1",
259 "action": [ "download_from_google_storage",
260 "--no_resume",
261 "--platform=darwin",
262 "--no_auth",
263 "--bucket", "chromium-gn",
264 "-s", Var("root_dir") + "/tools/gn/bin/mac/gn.sha1",
265 ],
266 },
267 {
268 "name": "gn_linux",
269 "pattern": "tools/gn/bin/linux/gn.sha1",
270 "action": [ "download_from_google_storage",
271 "--no_resume",
272 "--platform=linux*",
273 "--no_auth",
274 "--bucket", "chromium-gn",
275 "-s", Var("root_dir") + "/tools/gn/bin/linux/gn.sha1",
276 ],
277 },
278 {
279 "name": "gn_linux32",
280 "pattern": "tools/gn/bin/linux/gn32.sha1",
281 "action": [ "download_from_google_storage",
282 "--no_resume",
283 "--platform=linux*",
284 "--no_auth",
285 "--bucket", "chromium-gn",
286 "-s", Var("root_dir") + "/tools/gn/bin/linux/gn32.sha1",
287 ],
288 },
andrew@webrtc.org36291da2014-02-04 01:45:10 +0000289 # Pull clang-format binaries using checked-in hashes.
290 {
291 "name": "clang_format_win",
292 "pattern": "third_party/clang_format/bin/win/clang-format.exe.sha1",
293 "action": [ "download_from_google_storage",
294 "--no_resume",
295 "--platform=win32",
296 "--no_auth",
297 "--bucket", "chromium-clang-format",
298 "-s", Var("root_dir") + "/third_party/clang_format/bin/win/clang-format.exe.sha1",
299 ],
300 },
301 {
302 "name": "clang_format_mac",
303 "pattern": "third_party/clang_format/bin/mac/clang-format.sha1",
304 "action": [ "download_from_google_storage",
305 "--no_resume",
306 "--platform=darwin",
307 "--no_auth",
308 "--bucket", "chromium-clang-format",
309 "-s", Var("root_dir") + "/third_party/clang_format/bin/mac/clang-format.sha1",
310 ],
311 },
312 {
313 "name": "clang_format_linux",
314 "pattern": "third_party/clang_format/bin/linux/clang-format.sha1",
315 "action": [ "download_from_google_storage",
316 "--no_resume",
317 "--platform=linux*",
318 "--no_auth",
319 "--bucket", "chromium-clang-format",
320 "-s", Var("root_dir") + "/third_party/clang_format/bin/linux/clang-format.sha1",
321 ],
322 },
wjia@webrtc.org03cfde22014-01-14 17:48:34 +0000323 {
kjellander@webrtc.orgd10bdd32014-04-01 10:40:03 +0000324 # Pull clang if on Mac or clang is requested via GYP_DEFINES.
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000325 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000326 "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py",
kjellander@webrtc.orgd10bdd32014-04-01 10:40:03 +0000327 "--if-needed"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000328 },
329 {
kjellander@webrtc.org59343ee2014-04-29 09:36:40 +0000330 # Update the Windows toolchain if necessary.
331 "name": "win_toolchain",
332 "pattern": ".",
333 "action": ["python",
334 Var("root_dir") + "/webrtc/build/download_vs_toolchain.py",
335 "update"],
336 },
337 {
338 # Pull binutils for gold.
339 "name": "binutils",
340 "pattern": ".",
341 "action": ["python", Var("root_dir") + "/third_party/binutils/download.py"],
342 },
343 {
kjellander@webrtc.org31f967c2014-06-09 07:30:37 +0000344 "name": "drmemory",
345 "pattern": ".",
346 "action": [ "download_from_google_storage",
347 "--no_resume",
348 "--platform=win32",
349 "--no_auth",
350 "--bucket", "chromium-drmemory",
351 "-s", Var("root_dir") + "/third_party/drmemory/drmemory-windows-sfx.exe.sha1",
352 ],
353 },
354 {
kjellander@webrtc.org27ab19d2014-06-21 19:30:29 +0000355 # Pull the Syzygy binaries, used for optimization and instrumentation.
356 "name": "syzygy-binaries",
357 "pattern": ".",
358 "action": ["python",
359 Var("root_dir") + "/build/get_syzygy_binaries.py",
360 "--output-dir=%s/third_party/syzygy/binaries" % Var("root_dir"),
361 "--revision=b08fb72610963d31cc3eae33f746a04e263bd860",
362 "--overwrite",
363 ],
364 },
365 {
kjellander@webrtc.org80174582013-11-04 12:07:57 +0000366 # Download test resources, i.e. video and audio files from Google Storage.
367 "pattern": "\\.sha1",
368 "action": ["download_from_google_storage",
369 "--directory",
370 "--recursive",
371 "--num_threads=10",
wjia@webrtc.org776d8df2014-01-27 19:55:16 +0000372 "--no_auth",
kjellander@webrtc.org80174582013-11-04 12:07:57 +0000373 "--bucket", "chromium-webrtc-resources",
374 Var("root_dir") + "/resources"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000375 },
376 {
377 # A change to a .gyp, .gypi, or to GYP itself should run the generator.
kjellander@webrtc.org6b0cbcb2014-03-10 09:51:17 +0000378 "name": "gyp",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000379 "pattern": ".",
kjellander@webrtc.org7d7f0892014-01-31 09:34:51 +0000380 "action": ["python", Var("root_dir") + "/webrtc/build/gyp_webrtc",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +0000381 Var("extra_gyp_flag")],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000382 },
383]
384