blob: ca384769752424b2f84d37e866fce0e5c409e053 [file] [log] [blame]
kjellander@webrtc.org89256622014-08-20 12:10:11 +00001# This file contains dependencies for WebRTC that are not shared with Chromium.
2# If you wish to add a dependency that is present in Chromium's src/DEPS or a
3# directory from the Chromium checkout, you should add it to setup_links.py
4# instead.
5
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +00006vars = {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +00007 # Override root_dir in your .gclient's custom_vars to specify a custom root
8 # folder name.
9 "root_dir": "trunk",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +000010 "extra_gyp_flag": "-Dextra_gyp_flag=0",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000011
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000012 # Use this googlecode_url variable only if there is an internal mirror for it.
13 # If you do not know, use the full path while defining your new deps entry.
14 "googlecode_url": "http://%s.googlecode.com/svn",
kjellander@webrtc.org3a10d2f2014-09-28 10:33:45 +000015 "chromium_revision": "c264a0567ee9417d1ff8d8dc61f3a79f2232ea06",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000016}
17
18# NOTE: Prefer revision numbers to tags for svn deps. Use http rather than
19# https; the latter can cause problems for users behind proxies.
20deps = {
kjellander@webrtc.orgcbdb9d12013-08-20 16:18:35 +000021 # When rolling gflags, also update deps/third_party/webrtc/webrtc.DEPS/DEPS
22 # in Chromium's repo.
kjellander@webrtc.orga2da0312014-09-05 08:25:24 +000023 Var("root_dir") + "/third_party/gflags/src":
fischman@webrtc.orgdde7d4c2013-08-15 23:31:30 +000024 (Var("googlecode_url") % "gflags") + "/trunk/src@84",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000025
kjellander@webrtc.orga2da0312014-09-05 08:25:24 +000026 Var("root_dir") + "/third_party/junit/":
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000027 (Var("googlecode_url") % "webrtc") + "/deps/third_party/junit@3367",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000028}
29
30deps_os = {
31 "win": {
kjellander@webrtc.orga2da0312014-09-05 08:25:24 +000032 Var("root_dir") + "/third_party/winsdk_samples/src":
andrew@webrtc.org8cd18c52012-11-21 18:46:45 +000033 (Var("googlecode_url") % "webrtc") + "/deps/third_party/winsdk_samples_v71@3145",
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000034 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000035}
36
kjellander@webrtc.orgafefed52014-10-01 06:03:47 +000037# Define rules for which include paths are allowed in our source.
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +000038include_rules = [
39 # Base is only used to build Android APK tests and may not be referenced by
40 # WebRTC production code.
41 "-base",
kjellander@webrtc.org561a9ec2014-09-02 09:39:35 +000042 "-chromium",
kjellander@webrtc.orgafefed52014-10-01 06:03:47 +000043 '+gflags',
kjellander@webrtc.org561a9ec2014-09-02 09:39:35 +000044 '+net',
45 '+talk',
46 '+testing',
kjellander@webrtc.orgafefed52014-10-01 06:03:47 +000047 '+third_party',
kjellander@webrtc.org561a9ec2014-09-02 09:39:35 +000048 '+webrtc',
49]
50
51# checkdeps.py shouldn't check include paths for files in these dirs:
52skip_child_includes = [
pbos@webrtc.orgdc8dcb42014-09-17 07:44:33 +000053 'webrtc/overrides',
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +000054]
55
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000056hooks = [
57 {
kjellander@webrtc.org89256622014-08-20 12:10:11 +000058 # Clone chromium and its deps.
59 "name": "sync chromium",
wjia@webrtc.org03cfde22014-01-14 17:48:34 +000060 "pattern": ".",
kjellander@webrtc.org89256622014-08-20 12:10:11 +000061 "action": ["python", "-u", Var("root_dir") + "/sync_chromium.py",
62 "--target-revision", Var("chromium_revision")],
wjia@webrtc.org03cfde22014-01-14 17:48:34 +000063 },
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000064 {
kjellander@webrtc.org89256622014-08-20 12:10:11 +000065 # Create links to shared dependencies in Chromium.
66 "name": "setup_links",
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000067 "pattern": ".",
kjellander@webrtc.org89256622014-08-20 12:10:11 +000068 "action": ["python", Var("root_dir") + "/setup_links.py"],
kjellander@webrtc.org27ab19d2014-06-21 19:30:29 +000069 },
70 {
kjellander@webrtc.org80174582013-11-04 12:07:57 +000071 # Download test resources, i.e. video and audio files from Google Storage.
kjellander@webrtc.org89256622014-08-20 12:10:11 +000072 "pattern": ".",
kjellander@webrtc.org80174582013-11-04 12:07:57 +000073 "action": ["download_from_google_storage",
74 "--directory",
75 "--recursive",
76 "--num_threads=10",
wjia@webrtc.org776d8df2014-01-27 19:55:16 +000077 "--no_auth",
kjellander@webrtc.org80174582013-11-04 12:07:57 +000078 "--bucket", "chromium-webrtc-resources",
79 Var("root_dir") + "/resources"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000080 },
81 {
82 # A change to a .gyp, .gypi, or to GYP itself should run the generator.
kjellander@webrtc.org6b0cbcb2014-03-10 09:51:17 +000083 "name": "gyp",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000084 "pattern": ".",
kjellander@webrtc.org7d7f0892014-01-31 09:34:51 +000085 "action": ["python", Var("root_dir") + "/webrtc/build/gyp_webrtc",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +000086 Var("extra_gyp_flag")],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000087 },
88]
89