
WebRTC standalone shares a lot of dependencies and build tools with Chromium. To make the build work, many of the paths of a Chromium checkout is now emulated by creating symlinks to files and directories. All DEPS entries that previously used Var("chromium_trunk") to reference a Chromium checkout or From("chromium_deps"..) to reference the Chromium DEPS file are now removed and replaced by symlink entries in setup_links.py. The script also handles cleanup of the legacy Subversion-based dependencies that's needed for the transition. Windows: One Windows-specific important change is that gclient sync|runhooks must now be run from a shell with Administrator privileges in order to be able to create symlinks. This also means that Windows XP is no longer supported. To transition a previously created checkout: Run "python setup_links.py --force" to cleanup the old SVN-based dependencies that have been synced by gclient sync. For Buildbots, the --force flag is automatically enabled for their syncs. BUG=2863, chromium:339647 TEST=Manual testing on Linux, Mac and Windows. R=andrew@webrtc.org, iannucci@chromium.org, phoglund@webrtc.org Review URL: https://webrtc-codereview.appspot.com/18379005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6938 4adac7df-926f-26a2-2b94-8c16560cd09d
80 lines
2.6 KiB
Python
80 lines
2.6 KiB
Python
use_relative_paths = True
|
|
|
|
# This file contains dependencies for WebRTC that are not shared with Chromium.
|
|
# If you wish to add a dependency that is present in Chromium's src/DEPS or a
|
|
# directory from the Chromium checkout, you should add it to setup_links.py
|
|
# instead.
|
|
|
|
vars = {
|
|
# Override root_dir in your .gclient's custom_vars to specify a custom root
|
|
# folder name.
|
|
"root_dir": "trunk",
|
|
"extra_gyp_flag": "-Dextra_gyp_flag=0",
|
|
|
|
# Use this googlecode_url variable only if there is an internal mirror for it.
|
|
# If you do not know, use the full path while defining your new deps entry.
|
|
"googlecode_url": "http://%s.googlecode.com/svn",
|
|
"chromium_revision": "3da41f9378f9d075a94cc278f99ce4344f9acc7b",
|
|
}
|
|
|
|
# NOTE: Prefer revision numbers to tags for svn deps. Use http rather than
|
|
# https; the latter can cause problems for users behind proxies.
|
|
deps = {
|
|
# When rolling gflags, also update deps/third_party/webrtc/webrtc.DEPS/DEPS
|
|
# in Chromium's repo.
|
|
"third_party/gflags/src":
|
|
(Var("googlecode_url") % "gflags") + "/trunk/src@84",
|
|
|
|
"third_party/junit/":
|
|
(Var("googlecode_url") % "webrtc") + "/deps/third_party/junit@3367",
|
|
}
|
|
|
|
deps_os = {
|
|
"win": {
|
|
"third_party/winsdk_samples/src":
|
|
(Var("googlecode_url") % "webrtc") + "/deps/third_party/winsdk_samples_v71@3145",
|
|
},
|
|
|
|
"android": {
|
|
# Precompiled tools needed for Android test execution. Needed since we can't
|
|
# compile them from source in WebRTC since they depend on Chromium's base.
|
|
"tools/android":
|
|
(Var("googlecode_url") % "webrtc") + "/deps/tools/android@6306",
|
|
},
|
|
}
|
|
|
|
hooks = [
|
|
{
|
|
# Clone chromium and its deps.
|
|
"name": "sync chromium",
|
|
"pattern": ".",
|
|
"action": ["python", "-u", Var("root_dir") + "/sync_chromium.py",
|
|
"--target-revision", Var("chromium_revision")],
|
|
},
|
|
{
|
|
# Create links to shared dependencies in Chromium.
|
|
"name": "setup_links",
|
|
"pattern": ".",
|
|
"action": ["python", Var("root_dir") + "/setup_links.py"],
|
|
},
|
|
{
|
|
# Download test resources, i.e. video and audio files from Google Storage.
|
|
"pattern": ".",
|
|
"action": ["download_from_google_storage",
|
|
"--directory",
|
|
"--recursive",
|
|
"--num_threads=10",
|
|
"--no_auth",
|
|
"--bucket", "chromium-webrtc-resources",
|
|
Var("root_dir") + "/resources"],
|
|
},
|
|
{
|
|
# A change to a .gyp, .gypi, or to GYP itself should run the generator.
|
|
"name": "gyp",
|
|
"pattern": ".",
|
|
"action": ["python", Var("root_dir") + "/webrtc/build/gyp_webrtc",
|
|
Var("extra_gyp_flag")],
|
|
},
|
|
]
|
|
|