blob: a918240eb28d215e925db81c866c3483490017a6 [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.orgd10bdd32014-04-01 10:40:03 +000014 "chromium_revision": "260462",
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
andrew@webrtc.org36291da2014-02-04 01:45:10 +000045 "third_party/clang_format":
46 Var("chromium_trunk") + "/src/third_party/clang_format@" + Var("chromium_revision"),
47
kjellander@webrtc.org607c8052014-02-09 18:38:31 +000048 "third_party/clang_format/script":
49 From("chromium_deps", "src/third_party/clang_format/script"),
50
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000051 "third_party/expat":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000052 Var("chromium_trunk") + "/src/third_party/expat@" + Var("chromium_revision"),
53
kjellander@webrtc.orgcbdb9d12013-08-20 16:18:35 +000054 # When rolling gflags, also update deps/third_party/webrtc/webrtc.DEPS/DEPS
55 # in Chromium's repo.
fischman@webrtc.orgdde7d4c2013-08-15 23:31:30 +000056 "third_party/gflags/src":
57 (Var("googlecode_url") % "gflags") + "/trunk/src@84",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000058
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000059 "third_party/icu/":
60 From("chromium_deps", "src/third_party/icu"),
61
62 "third_party/jsoncpp/":
63 Var("chromium_trunk") + "/src/third_party/jsoncpp@" + Var("chromium_revision"),
64
65 "third_party/jsoncpp/source":
pbos@webrtc.org62e5af42013-08-20 09:19:16 +000066 (Var("sourceforge_url") % {"repo": "jsoncpp"}) + "/trunk/jsoncpp@248",
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000067
68 "third_party/junit/":
69 (Var("googlecode_url") % "webrtc") + "/deps/third_party/junit@3367",
kjellander@webrtc.org287f07b2013-09-27 16:57:10 +000070
mikhal@webrtc.org0b960cf2013-08-30 16:30:53 +000071 "third_party/libjpeg":
72 Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"),
73
74 "third_party/libjpeg_turbo":
75 From("chromium_deps", "src/third_party/libjpeg_turbo"),
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000076
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000077 "third_party/libsrtp/":
78 From("chromium_deps", "src/third_party/libsrtp"),
79
andrew@webrtc.orge6e344a2013-02-12 19:35:18 +000080 "third_party/libvpx":
fischman@webrtc.orgdd0b99d2014-03-27 22:27:54 +000081 Var("chromium_trunk") + "/deps/third_party/libvpx@259973",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000082
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000083 "third_party/libyuv":
fbarchard@google.com8f811942014-03-31 21:35:01 +000084 (Var("googlecode_url") % "libyuv") + "/trunk@994",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000085
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +000086 "third_party/opus":
tina.legrand@webrtc.orgff7908a2014-03-25 16:12:43 +000087 Var("chromium_trunk") + "/src/third_party/opus@258909",
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +000088
89 "third_party/opus/src":
tina.legrand@webrtc.orgff7908a2014-03-25 16:12:43 +000090 Var("chromium_trunk") + "/deps/third_party/opus@256783",
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +000091
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000092 "third_party/protobuf":
sprang@webrtc.org0f0c9922014-03-25 12:43:58 +000093 Var("chromium_trunk") + "/src/third_party/protobuf@251211",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000094
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000095 "third_party/sqlite/":
96 Var("chromium_trunk") + "/src/third_party/sqlite@" + Var("chromium_revision"),
97
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000098 "third_party/yasm":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000099 Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"),
100
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000101 "third_party/yasm/source/patched-yasm":
102 From("chromium_deps", "src/third_party/yasm/source/patched-yasm"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000103
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000104 "tools/clang":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000105 Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"),
106
wjia@webrtc.org03cfde22014-01-14 17:48:34 +0000107 "tools/gn":
108 Var("chromium_trunk") + "/src/tools/gn@" + Var("chromium_revision"),
109
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000110 "tools/gyp":
111 From("chromium_deps", "src/tools/gyp"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000112
andrew@webrtc.org225f2b82013-05-20 21:12:58 +0000113 "tools/protoc_wrapper":
114 Var("chromium_trunk") + "/src/tools/protoc_wrapper@" + Var("chromium_revision"),
115
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000116 "tools/python":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000117 Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"),
118
kjellander@webrtc.orgf9bdbe32013-12-11 13:37:12 +0000119 "tools/swarming_client":
120 From("chromium_deps", "src/tools/swarming_client"),
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000121
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000122 "tools/valgrind":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000123 Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"),
124
125 # Needed by build/common.gypi.
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000126 "tools/win/supalink":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000127 Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"),
jiayl@webrtc.orga576faf2014-01-29 17:45:53 +0000128
129 "net/third_party/nss":
130 Var("chromium_trunk") + "/src/net/third_party/nss@" + Var("chromium_revision"),
131
132 "third_party/usrsctp/":
133 Var("chromium_trunk") + "/src/third_party/usrsctp@" + Var("chromium_revision"),
134
135 "third_party/usrsctp/usrsctplib":
136 (Var("googlecode_url") % "sctp-refimpl") + "/trunk/KERN/usrsctp/usrsctplib@8723",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000137}
138
139deps_os = {
140 "win": {
andrew@webrtc.org8cd18c52012-11-21 18:46:45 +0000141 "third_party/winsdk_samples/src":
142 (Var("googlecode_url") % "webrtc") + "/deps/third_party/winsdk_samples_v71@3145",
143
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000144 # Used by libjpeg-turbo.
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000145 "third_party/yasm/binaries":
146 From("chromium_deps", "src/third_party/yasm/binaries"),
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000147
148 # NSS, for SSLClientSocketNSS.
149 "third_party/nss":
150 From("chromium_deps", "src/third_party/nss"),
kjellander@webrtc.org4c617922013-10-10 11:56:09 +0000151
152 # SyzyASan to make it possible to run tests under ASan on Windows.
153 "third_party/syzygy/binaries":
154 From("chromium_deps", "src/third_party/syzygy/binaries"),
kjellander@webrtc.org6b0cbcb2014-03-10 09:51:17 +0000155
156 "tools/find_depot_tools":
157 File(Var("chromium_trunk") + "/src/tools/find_depot_tools.py@" + Var("chromium_revision")),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000158 },
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000159
160 "mac": {
161 # NSS, for SSLClientSocketNSS.
162 "third_party/nss":
163 From("chromium_deps", "src/third_party/nss"),
fischman@webrtc.orgca539bb2014-04-15 20:26:41 +0000164
165 # TODO(kjellander): remove once bug 2152 is fixed.
166 # This needs to specify the path directly (instead of using the
167 # chromium_deps version) because chromium_deps only defines this for ios.
168 "testing/iossim/third_party/class-dump":
169 Var("chromium_trunk") + "/deps/third_party/class-dump@199203",
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000170 },
171
172 "ios": {
173 # NSS, for SSLClientSocketNSS.
174 "third_party/nss":
175 From("chromium_deps", "src/third_party/nss"),
fischman@webrtc.org1bc19542013-08-01 18:29:45 +0000176
fischman@webrtc.org1bc19542013-08-01 18:29:45 +0000177 # class-dump utility to generate header files for undocumented SDKs.
178 "testing/iossim/third_party/class-dump":
179 From("chromium_deps", "src/testing/iossim/third_party/class-dump"),
180
181 # Helper for running under the simulator.
182 "testing/iossim":
183 Var("chromium_trunk") + "/src/testing/iossim@" + Var("chromium_revision"),
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000184 },
185
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000186 "unix": {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000187 "third_party/gold":
188 From("chromium_deps", "src/third_party/gold"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000189 },
jiayl@webrtc.orga576faf2014-01-29 17:45:53 +0000190
kjellander@webrtc.org18a21a02013-02-11 17:43:19 +0000191 "android": {
kjellander@webrtc.org6cfe1782013-06-18 07:14:33 +0000192 # Precompiled tools needed for Android test execution. Needed since we can't
193 # compile them from source in WebRTC since they depend on Chromium's base.
194 "tools/android":
yujie.mao@webrtc.org9f07ea42013-07-18 01:57:04 +0000195 (Var("googlecode_url") % "webrtc") + "/deps/tools/android@4258",
kjellander@webrtc.org6cfe1782013-06-18 07:14:33 +0000196
kjellander@webrtc.org18a21a02013-02-11 17:43:19 +0000197 "third_party/android_tools":
198 From("chromium_deps", "src/third_party/android_tools"),
199
200 "third_party/android_testrunner":
201 Var("chromium_trunk") + "/src/third_party/android_testrunner@" + Var("chromium_revision"),
kjellander@webrtc.org430464c2013-06-04 16:29:45 +0000202
203 "third_party/WebKit/Tools/Scripts":
204 Var("webkit_trunk") + "/Tools/Scripts@151677",
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000205
206 "third_party/openssl":
207 From("chromium_deps", "src/third_party/openssl"),
kjellander@webrtc.org18a21a02013-02-11 17:43:19 +0000208 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000209}
210
211hooks = [
212 {
wjia@webrtc.org03cfde22014-01-14 17:48:34 +0000213 # Copy .gn from temporary place (../chromium_gn) to root_dir.
214 "name": "copy .gn",
215 "pattern": ".",
216 "action": ["python", Var("root_dir") + "/build/cp.py",
217 Var("root_dir") + "/../chromium_gn/.gn",
218 Var("root_dir")],
219 },
220 # Pull GN binaries. This needs to be before running GYP below.
221 {
222 "name": "gn_win",
223 "pattern": "tools/gn/bin/win/gn.exe.sha1",
224 "action": [ "download_from_google_storage",
225 "--no_resume",
226 "--platform=win32",
227 "--no_auth",
228 "--bucket", "chromium-gn",
229 "-s", Var("root_dir") + "/tools/gn/bin/win/gn.exe.sha1",
230 ],
231 },
232 {
233 "name": "gn_mac",
234 "pattern": "tools/gn/bin/mac/gn.sha1",
235 "action": [ "download_from_google_storage",
236 "--no_resume",
237 "--platform=darwin",
238 "--no_auth",
239 "--bucket", "chromium-gn",
240 "-s", Var("root_dir") + "/tools/gn/bin/mac/gn.sha1",
241 ],
242 },
243 {
244 "name": "gn_linux",
245 "pattern": "tools/gn/bin/linux/gn.sha1",
246 "action": [ "download_from_google_storage",
247 "--no_resume",
248 "--platform=linux*",
249 "--no_auth",
250 "--bucket", "chromium-gn",
251 "-s", Var("root_dir") + "/tools/gn/bin/linux/gn.sha1",
252 ],
253 },
254 {
255 "name": "gn_linux32",
256 "pattern": "tools/gn/bin/linux/gn32.sha1",
257 "action": [ "download_from_google_storage",
258 "--no_resume",
259 "--platform=linux*",
260 "--no_auth",
261 "--bucket", "chromium-gn",
262 "-s", Var("root_dir") + "/tools/gn/bin/linux/gn32.sha1",
263 ],
264 },
andrew@webrtc.org36291da2014-02-04 01:45:10 +0000265 # Pull clang-format binaries using checked-in hashes.
266 {
267 "name": "clang_format_win",
268 "pattern": "third_party/clang_format/bin/win/clang-format.exe.sha1",
269 "action": [ "download_from_google_storage",
270 "--no_resume",
271 "--platform=win32",
272 "--no_auth",
273 "--bucket", "chromium-clang-format",
274 "-s", Var("root_dir") + "/third_party/clang_format/bin/win/clang-format.exe.sha1",
275 ],
276 },
277 {
278 "name": "clang_format_mac",
279 "pattern": "third_party/clang_format/bin/mac/clang-format.sha1",
280 "action": [ "download_from_google_storage",
281 "--no_resume",
282 "--platform=darwin",
283 "--no_auth",
284 "--bucket", "chromium-clang-format",
285 "-s", Var("root_dir") + "/third_party/clang_format/bin/mac/clang-format.sha1",
286 ],
287 },
288 {
289 "name": "clang_format_linux",
290 "pattern": "third_party/clang_format/bin/linux/clang-format.sha1",
291 "action": [ "download_from_google_storage",
292 "--no_resume",
293 "--platform=linux*",
294 "--no_auth",
295 "--bucket", "chromium-clang-format",
296 "-s", Var("root_dir") + "/third_party/clang_format/bin/linux/clang-format.sha1",
297 ],
298 },
wjia@webrtc.org03cfde22014-01-14 17:48:34 +0000299 {
kjellander@webrtc.orgd10bdd32014-04-01 10:40:03 +0000300 # Pull clang if on Mac or clang is requested via GYP_DEFINES.
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000301 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000302 "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py",
kjellander@webrtc.orgd10bdd32014-04-01 10:40:03 +0000303 "--if-needed"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000304 },
305 {
kjellander@webrtc.org80174582013-11-04 12:07:57 +0000306 # Download test resources, i.e. video and audio files from Google Storage.
307 "pattern": "\\.sha1",
308 "action": ["download_from_google_storage",
309 "--directory",
310 "--recursive",
311 "--num_threads=10",
wjia@webrtc.org776d8df2014-01-27 19:55:16 +0000312 "--no_auth",
kjellander@webrtc.org80174582013-11-04 12:07:57 +0000313 "--bucket", "chromium-webrtc-resources",
314 Var("root_dir") + "/resources"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000315 },
316 {
317 # A change to a .gyp, .gypi, or to GYP itself should run the generator.
kjellander@webrtc.org6b0cbcb2014-03-10 09:51:17 +0000318 "name": "gyp",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000319 "pattern": ".",
kjellander@webrtc.org7d7f0892014-01-31 09:34:51 +0000320 "action": ["python", Var("root_dir") + "/webrtc/build/gyp_webrtc",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +0000321 Var("extra_gyp_flag")],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000322 },
323]
324