From dc926a000e1c8054b1d5e0a79431963731f37f1c Mon Sep 17 00:00:00 2001 From: "kjellander@webrtc.org" Date: Tue, 26 Aug 2014 19:22:03 +0000 Subject: [PATCH] Avoid syncing unnecessary Chromium deps for WebRTC. This should save several gigabytes of traffic and disk space. On Linux this is about 2.6 GB: 346M src/chrome/tools/test/reference_build 340M src/native_client 170M src/third_party/ffmpeg 1.5G src/third_party/WebKit 196M src/v8 BUG=2863 TESTED=Removed the directories locally, ran a sync and verified they didn't reappear (or fail because of platform-specific ones). R=iannucci@chromium.org, niklas.enbom@webrtc.org Review URL: https://webrtc-codereview.appspot.com/22189004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6984 4adac7df-926f-26a2-2b94-8c16560cd09d --- chromium/.gclient | 11 ++++++++++- sync_chromium.py | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/chromium/.gclient b/chromium/.gclient index 722ba7d78..ddfe54204 100644 --- a/chromium/.gclient +++ b/chromium/.gclient @@ -3,7 +3,16 @@ solutions = [{ 'url': 'https://chromium.googlesource.com/chromium/src.git', 'deps_file': '.DEPS.git', 'managed': True, - 'custom_deps': {}, + 'custom_deps': { + # Skip syncing some large dependencies WebRTC will never need. + 'src/chrome/tools/test/reference_build/chrome_linux': None, + 'src/chrome/tools/test/reference_build/chrome_mac': None, + 'src/chrome/tools/test/reference_build/chrome_win': None, + 'src/native_client': None, + 'src/third_party/ffmpeg': None, + 'src/third_party/WebKit': None, + 'src/v8': None, + }, 'safesync_url': '' }] diff --git a/sync_chromium.py b/sync_chromium.py index 1957d2174..d02346c97 100755 --- a/sync_chromium.py +++ b/sync_chromium.py @@ -14,7 +14,7 @@ import sys # Bump this whenever the algorithm changes and you need bots/devs to re-sync, # ignoring the .last_sync_chromium file -SCRIPT_VERSION = 1 +SCRIPT_VERSION = 2 ROOT_DIR = os.path.dirname(os.path.abspath(__file__))