blob: 99b1aa386abdc1f0dab78f274db00c54e9a6bc4f [file] [log] [blame]
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +00001use_relative_paths = True
2
kjellander@webrtc.org89256622014-08-20 12:10:11 +00003# This file contains dependencies for WebRTC that are not shared with Chromium.
4# If you wish to add a dependency that is present in Chromium's src/DEPS or a
5# directory from the Chromium checkout, you should add it to setup_links.py
6# instead.
7
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +00008vars = {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +00009 # Override root_dir in your .gclient's custom_vars to specify a custom root
10 # folder name.
11 "root_dir": "trunk",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +000012 "extra_gyp_flag": "-Dextra_gyp_flag=0",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000013
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000014 # Use this googlecode_url variable only if there is an internal mirror for it.
15 # If you do not know, use the full path while defining your new deps entry.
16 "googlecode_url": "http://%s.googlecode.com/svn",
marpan@webrtc.org2dbb47a2014-08-28 02:32:45 +000017 "chromium_revision": "681cc8e61e5142f490a176e57dba0f2d2a44d14c",
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 = {
kjellander@webrtc.orgcbdb9d12013-08-20 16:18:35 +000023 # When rolling gflags, also update deps/third_party/webrtc/webrtc.DEPS/DEPS
24 # in Chromium's repo.
fischman@webrtc.orgdde7d4c2013-08-15 23:31:30 +000025 "third_party/gflags/src":
26 (Var("googlecode_url") % "gflags") + "/trunk/src@84",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000027
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000028 "third_party/junit/":
29 (Var("googlecode_url") % "webrtc") + "/deps/third_party/junit@3367",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000030}
31
32deps_os = {
33 "win": {
andrew@webrtc.org8cd18c52012-11-21 18:46:45 +000034 "third_party/winsdk_samples/src":
35 (Var("googlecode_url") % "webrtc") + "/deps/third_party/winsdk_samples_v71@3145",
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000036 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000037}
38
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +000039include_rules = [
40 # Base is only used to build Android APK tests and may not be referenced by
41 # WebRTC production code.
42 "-base",
43]
44
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000045hooks = [
46 {
kjellander@webrtc.org89256622014-08-20 12:10:11 +000047 # Clone chromium and its deps.
48 "name": "sync chromium",
wjia@webrtc.org03cfde22014-01-14 17:48:34 +000049 "pattern": ".",
kjellander@webrtc.org89256622014-08-20 12:10:11 +000050 "action": ["python", "-u", Var("root_dir") + "/sync_chromium.py",
51 "--target-revision", Var("chromium_revision")],
wjia@webrtc.org03cfde22014-01-14 17:48:34 +000052 },
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000053 {
kjellander@webrtc.org89256622014-08-20 12:10:11 +000054 # Create links to shared dependencies in Chromium.
55 "name": "setup_links",
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000056 "pattern": ".",
kjellander@webrtc.org89256622014-08-20 12:10:11 +000057 "action": ["python", Var("root_dir") + "/setup_links.py"],
kjellander@webrtc.org27ab19d2014-06-21 19:30:29 +000058 },
59 {
kjellander@webrtc.org80174582013-11-04 12:07:57 +000060 # Download test resources, i.e. video and audio files from Google Storage.
kjellander@webrtc.org89256622014-08-20 12:10:11 +000061 "pattern": ".",
kjellander@webrtc.org80174582013-11-04 12:07:57 +000062 "action": ["download_from_google_storage",
63 "--directory",
64 "--recursive",
65 "--num_threads=10",
wjia@webrtc.org776d8df2014-01-27 19:55:16 +000066 "--no_auth",
kjellander@webrtc.org80174582013-11-04 12:07:57 +000067 "--bucket", "chromium-webrtc-resources",
68 Var("root_dir") + "/resources"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000069 },
70 {
71 # A change to a .gyp, .gypi, or to GYP itself should run the generator.
kjellander@webrtc.org6b0cbcb2014-03-10 09:51:17 +000072 "name": "gyp",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000073 "pattern": ".",
kjellander@webrtc.org7d7f0892014-01-31 09:34:51 +000074 "action": ["python", Var("root_dir") + "/webrtc/build/gyp_webrtc",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +000075 Var("extra_gyp_flag")],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000076 },
77]
78