Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | vars = { |
michael@0 | 2 | # Use this googlecode_url variable only if there is an internal mirror for it. |
michael@0 | 3 | # If you do not know, use the full path while defining your new deps entry. |
michael@0 | 4 | "googlecode_url": "http://%s.googlecode.com/svn", |
michael@0 | 5 | "chromium_trunk" : "http://src.chromium.org/svn/trunk", |
michael@0 | 6 | "chromium_revision": "162524", |
michael@0 | 7 | # Still needs the libjingle_revision here because some of |
michael@0 | 8 | # the deps have to be pulled from libjingle repository. |
michael@0 | 9 | "libjingle_revision": "204", |
michael@0 | 10 | } |
michael@0 | 11 | |
michael@0 | 12 | # NOTE: Prefer revision numbers to tags for svn deps. Use http rather than |
michael@0 | 13 | # https; the latter can cause problems for users behind proxies. |
michael@0 | 14 | deps = { |
michael@0 | 15 | "trunk/chromium_deps": |
michael@0 | 16 | File(Var("chromium_trunk") + "/src/DEPS@" + Var("chromium_revision")), |
michael@0 | 17 | |
michael@0 | 18 | "trunk/third_party/webrtc": |
michael@0 | 19 | From("trunk/chromium_deps", "src/third_party/webrtc"), |
michael@0 | 20 | |
michael@0 | 21 | # WebRTC deps. |
michael@0 | 22 | "trunk/third_party/libvpx": |
michael@0 | 23 | From("trunk/chromium_deps", "src/third_party/libvpx"), |
michael@0 | 24 | |
michael@0 | 25 | "trunk/third_party/opus/source": |
michael@0 | 26 | "http://git.opus-codec.org/opus.git", |
michael@0 | 27 | |
michael@0 | 28 | "trunk/build": |
michael@0 | 29 | Var("chromium_trunk") + "/src/build@" + Var("chromium_revision"), |
michael@0 | 30 | |
michael@0 | 31 | # Needed by common.gypi. |
michael@0 | 32 | "trunk/google_apis/build": |
michael@0 | 33 | Var("chromium_trunk") + "/src/google_apis/build@" + Var("chromium_revision"), |
michael@0 | 34 | |
michael@0 | 35 | "trunk/testing/gtest": |
michael@0 | 36 | From("trunk/chromium_deps", "src/testing/gtest"), |
michael@0 | 37 | |
michael@0 | 38 | "trunk/tools/gyp": |
michael@0 | 39 | From("trunk/chromium_deps", "src/tools/gyp"), |
michael@0 | 40 | |
michael@0 | 41 | "trunk/tools/clang": |
michael@0 | 42 | Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"), |
michael@0 | 43 | |
michael@0 | 44 | # Needed by build/common.gypi. |
michael@0 | 45 | "trunk/tools/win/supalink": |
michael@0 | 46 | Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"), |
michael@0 | 47 | |
michael@0 | 48 | "trunk/third_party/protobuf": |
michael@0 | 49 | Var("chromium_trunk") + "/src/third_party/protobuf@" + Var("chromium_revision"), |
michael@0 | 50 | |
michael@0 | 51 | "trunk/third_party/libjpeg_turbo/": |
michael@0 | 52 | From("trunk/chromium_deps", "src/third_party/libjpeg_turbo"), |
michael@0 | 53 | |
michael@0 | 54 | "trunk/third_party/libjpeg": |
michael@0 | 55 | Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"), |
michael@0 | 56 | |
michael@0 | 57 | "trunk/third_party/yasm": |
michael@0 | 58 | Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"), |
michael@0 | 59 | |
michael@0 | 60 | "trunk/third_party/expat": |
michael@0 | 61 | Var("chromium_trunk") + "/src/third_party/expat@" + Var("chromium_revision"), |
michael@0 | 62 | |
michael@0 | 63 | "trunk/third_party/yasm/source/patched-yasm": |
michael@0 | 64 | From("trunk/chromium_deps", "src/third_party/yasm/source/patched-yasm"), |
michael@0 | 65 | |
michael@0 | 66 | "trunk/third_party/libyuv": |
michael@0 | 67 | From("trunk/chromium_deps", "src/third_party/libyuv"), |
michael@0 | 68 | |
michael@0 | 69 | # libjingle deps. |
michael@0 | 70 | "trunk/third_party/libjingle/": |
michael@0 | 71 | File(Var("chromium_trunk") + "/src/third_party/libjingle/libjingle.gyp@" + Var("chromium_revision")), |
michael@0 | 72 | |
michael@0 | 73 | "trunk/third_party/libjingle/source": |
michael@0 | 74 | From("trunk/chromium_deps", "src/third_party/libjingle/source"), |
michael@0 | 75 | |
michael@0 | 76 | "trunk/third_party/libjingle/overrides/talk/base": |
michael@0 | 77 | (Var("googlecode_url") % "libjingle") + "/trunk/talk/base@" + Var("libjingle_revision"), |
michael@0 | 78 | |
michael@0 | 79 | "trunk/third_party/libsrtp/": |
michael@0 | 80 | From("trunk/chromium_deps", "src/third_party/libsrtp"), |
michael@0 | 81 | |
michael@0 | 82 | "trunk/third_party/jsoncpp/": |
michael@0 | 83 | Var("chromium_trunk") + "/src/third_party/jsoncpp@" + Var("chromium_revision"), |
michael@0 | 84 | |
michael@0 | 85 | "trunk/third_party/jsoncpp/source": |
michael@0 | 86 | "http://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk/jsoncpp@248", |
michael@0 | 87 | } |
michael@0 | 88 | |
michael@0 | 89 | deps_os = { |
michael@0 | 90 | "win": { |
michael@0 | 91 | "trunk/third_party/cygwin/": |
michael@0 | 92 | Var("chromium_trunk") + "/deps/third_party/cygwin@66844", |
michael@0 | 93 | |
michael@0 | 94 | # Used by libjpeg-turbo |
michael@0 | 95 | "trunk/third_party/yasm/binaries": |
michael@0 | 96 | From("trunk/chromium_deps", "src/third_party/yasm/binaries"), |
michael@0 | 97 | }, |
michael@0 | 98 | "unix": { |
michael@0 | 99 | "trunk/third_party/gold": |
michael@0 | 100 | From("trunk/chromium_deps", "src/third_party/gold"), |
michael@0 | 101 | }, |
michael@0 | 102 | } |
michael@0 | 103 | |
michael@0 | 104 | hooks = [ |
michael@0 | 105 | { |
michael@0 | 106 | # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes |
michael@0 | 107 | # zero seconds to run. If something changed, it downloads a prebuilt clang. |
michael@0 | 108 | "pattern": ".", |
michael@0 | 109 | "action": ["python", "trunk/tools/clang/scripts/update.py", "--mac-only"], |
michael@0 | 110 | }, |
michael@0 | 111 | { |
michael@0 | 112 | # Update the cygwin mount on Windows. |
michael@0 | 113 | # This is necessary to get the correct mapping between e.g. /bin and the |
michael@0 | 114 | # cygwin path on Windows. Without it we can't run bash scripts in actions. |
michael@0 | 115 | # Ideally this should be solved in "pylib/gyp/msvs_emulation.py". |
michael@0 | 116 | "pattern": ".", |
michael@0 | 117 | "action": ["python", "trunk/build/win/setup_cygwin_mount.py", |
michael@0 | 118 | "--win-only"], |
michael@0 | 119 | }, |
michael@0 | 120 | { |
michael@0 | 121 | # A change to a .gyp, .gypi, or to GYP itself should run the generator. |
michael@0 | 122 | "pattern": ".", |
michael@0 | 123 | "action": ["python", "trunk/build/gyp_chromium", "--depth=trunk", "trunk/peerconnection_all.gyp"], |
michael@0 | 124 | }, |
michael@0 | 125 | ] |
michael@0 | 126 |