blob: 60387c49af0f5fe52d3f780e6c4bc5aca8e27b6a [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",
kjellander@webrtc.org7e860492014-09-01 11:41:56 +000017 "chromium_revision": "f0a439da1aba8e22b30ede87087418e806f7fa75",
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",
kjellander@webrtc.org561a9ec2014-09-02 09:39:35 +000043 "-chromium",
44 '+net',
45 '+talk',
46 '+testing',
47 '+webrtc',
48]
49
50# checkdeps.py shouldn't check include paths for files in these dirs:
51skip_child_includes = [
kjellander@webrtc.org3c0aae12014-09-04 09:55:40 +000052 'gflags',
kjellander@webrtc.org561a9ec2014-09-02 09:39:35 +000053 'testing',
54 'third_party',
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +000055]
56
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000057hooks = [
58 {
kjellander@webrtc.org89256622014-08-20 12:10:11 +000059 # Clone chromium and its deps.
60 "name": "sync chromium",
wjia@webrtc.org03cfde22014-01-14 17:48:34 +000061 "pattern": ".",
kjellander@webrtc.org89256622014-08-20 12:10:11 +000062 "action": ["python", "-u", Var("root_dir") + "/sync_chromium.py",
63 "--target-revision", Var("chromium_revision")],
wjia@webrtc.org03cfde22014-01-14 17:48:34 +000064 },
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000065 {
kjellander@webrtc.org89256622014-08-20 12:10:11 +000066 # Create links to shared dependencies in Chromium.
67 "name": "setup_links",
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000068 "pattern": ".",
kjellander@webrtc.org89256622014-08-20 12:10:11 +000069 "action": ["python", Var("root_dir") + "/setup_links.py"],
kjellander@webrtc.org27ab19d2014-06-21 19:30:29 +000070 },
71 {
kjellander@webrtc.org80174582013-11-04 12:07:57 +000072 # Download test resources, i.e. video and audio files from Google Storage.
kjellander@webrtc.org89256622014-08-20 12:10:11 +000073 "pattern": ".",
kjellander@webrtc.org80174582013-11-04 12:07:57 +000074 "action": ["download_from_google_storage",
75 "--directory",
76 "--recursive",
77 "--num_threads=10",
wjia@webrtc.org776d8df2014-01-27 19:55:16 +000078 "--no_auth",
kjellander@webrtc.org80174582013-11-04 12:07:57 +000079 "--bucket", "chromium-webrtc-resources",
80 Var("root_dir") + "/resources"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000081 },
82 {
83 # A change to a .gyp, .gypi, or to GYP itself should run the generator.
kjellander@webrtc.org6b0cbcb2014-03-10 09:51:17 +000084 "name": "gyp",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000085 "pattern": ".",
kjellander@webrtc.org7d7f0892014-01-31 09:34:51 +000086 "action": ["python", Var("root_dir") + "/webrtc/build/gyp_webrtc",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +000087 Var("extra_gyp_flag")],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000088 },
89]
90