c5593ef1aa
When running https://code.google.com/p/chromium/codesearch#chromium/tools/deps2git/deps2git.py on our DEPS file, an error is caused by the formatting pretty printing of the converted DEPS -> .DEPS.git output. Since this needs to work in order to switch our bots to bot_update (uses Git) and the fact that changing deps2git.py is high risk, it's better to work around this problem by altering the Python inline code. The fact that deps2git will go away when the remaining projects have switched to Git also motivates not taking the risk of changing deps2git for this case only. BUG=3534 TESTED=Ran gclient runhooks and verified the script executed when there was a trunk/check_root_dir.py file. R=phoglund@chromium.org, phoglund@webrtc.org Review URL: https://webrtc-codereview.appspot.com/22999004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7417 4adac7df-926f-26a2-2b94-8c16560cd09d
97 lines
2.9 KiB
Python
97 lines
2.9 KiB
Python
# 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 = {
|
|
"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": "2d714fae183152299b3cbf0056eab5fe8bb75e87",
|
|
}
|
|
|
|
# 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.
|
|
"src/third_party/gflags/src":
|
|
(Var("googlecode_url") % "gflags") + "/trunk/src@84",
|
|
|
|
"src/third_party/junit/":
|
|
(Var("googlecode_url") % "webrtc") + "/deps/third_party/junit@3367",
|
|
}
|
|
|
|
deps_os = {
|
|
"win": {
|
|
"src/third_party/winsdk_samples/src":
|
|
(Var("googlecode_url") % "webrtc") + "/deps/third_party/winsdk_samples_v71@3145",
|
|
},
|
|
}
|
|
|
|
# Define rules for which include paths are allowed in our source.
|
|
include_rules = [
|
|
# Base is only used to build Android APK tests and may not be referenced by
|
|
# WebRTC production code.
|
|
"-base",
|
|
"-chromium",
|
|
'+gflags',
|
|
'+net',
|
|
'+talk',
|
|
'+testing',
|
|
'+third_party',
|
|
'+webrtc',
|
|
]
|
|
|
|
# checkdeps.py shouldn't check include paths for files in these dirs:
|
|
skip_child_includes = [
|
|
'webrtc/overrides',
|
|
]
|
|
|
|
hooks = [
|
|
{
|
|
# Check for legacy named top-level dir (named 'trunk').
|
|
"name": "check_root_dir_name",
|
|
"pattern": ".",
|
|
"action": ["python","-c",
|
|
("import os,sys;"
|
|
"script = os.path.join('trunk','check_root_dir.py');"
|
|
"_ = os.system('%s %s' % (sys.executable,script)) "
|
|
"if os.path.exists(script) else 0")],
|
|
},
|
|
{
|
|
# Clone chromium and its deps.
|
|
"name": "sync chromium",
|
|
"pattern": ".",
|
|
"action": ["python", "-u", "src/sync_chromium.py",
|
|
"--target-revision", Var("chromium_revision")],
|
|
},
|
|
{
|
|
# Create links to shared dependencies in Chromium.
|
|
"name": "setup_links",
|
|
"pattern": ".",
|
|
"action": ["python", "src/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",
|
|
"src/resources"],
|
|
},
|
|
{
|
|
# A change to a .gyp, .gypi, or to GYP itself should run the generator.
|
|
"name": "gyp",
|
|
"pattern": ".",
|
|
"action": ["python", "src/webrtc/build/gyp_webrtc",
|
|
Var("extra_gyp_flag")],
|
|
},
|
|
]
|
|
|