kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 1 | use_relative_paths = True |
| 2 | |
mikhal@webrtc.org | 878ada4 | 2011-09-30 00:55:01 +0000 | [diff] [blame] | 3 | vars = { |
| 4 | "libyuv_trunk" : "https://libyuv.googlecode.com/svn/trunk", |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 5 | |
| 6 | # Override root_dir in your .gclient's custom_vars to specify a custom root |
| 7 | # folder name. |
| 8 | "root_dir": "trunk", |
| 9 | "extra_gyp_flag": "-Dextra_gyp_flag=0", |
| 10 | |
mikhal@webrtc.org | 878ada4 | 2011-09-30 00:55:01 +0000 | [diff] [blame] | 11 | # Use this googlecode_url variable only if there is an internal mirror for it. |
| 12 | # If you do not know, use the full path while defining your new deps entry. |
| 13 | "googlecode_url": "http://%s.googlecode.com/svn", |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 14 | "chromium_trunk" : "http://src.chromium.org/svn/trunk", |
fbarchard@google.com | af08b9d | 2013-03-05 08:00:34 +0000 | [diff] [blame] | 15 | # chrome://version/ for revision of canary Chrome. |
fbarchard@google.com | c669cd2 | 2014-03-26 02:08:51 +0000 | [diff] [blame] | 16 | # http://chromium-status.appspot.com/lkgr is a last known good revision. |
kjellander@google.com | f34649b | 2014-07-03 08:00:03 +0000 | [diff] [blame] | 17 | "chromium_revision": "280149", |
mikhal@webrtc.org | 878ada4 | 2011-09-30 00:55:01 +0000 | [diff] [blame] | 18 | } |
| 19 | |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 20 | # NOTE: Prefer revision numbers to tags for svn deps. Use http rather than |
| 21 | # https; the latter can cause problems for users behind proxies. |
mikhal@webrtc.org | 878ada4 | 2011-09-30 00:55:01 +0000 | [diff] [blame] | 22 | deps = { |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 23 | "../chromium_deps": |
| 24 | File(Var("chromium_trunk") + "/src/DEPS@" + Var("chromium_revision")), |
| 25 | |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 26 | "../chromium_gn": |
| 27 | File(Var("chromium_trunk") + "/src/.gn@" + Var("chromium_revision")), |
| 28 | |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 29 | "build": |
frkoenig@google.com | 6123c60 | 2011-10-04 17:10:18 +0000 | [diff] [blame] | 30 | Var("chromium_trunk") + "/src/build@" + Var("chromium_revision"), |
| 31 | |
kjellander@google.com | f34649b | 2014-07-03 08:00:03 +0000 | [diff] [blame] | 32 | "buildtools": |
| 33 | From("chromium_deps", "src/buildtools"), |
| 34 | |
fbarchard@google.com | 7411455 | 2012-10-22 16:15:25 +0000 | [diff] [blame] | 35 | # Needed by common.gypi. |
| 36 | "google_apis/build": |
| 37 | Var("chromium_trunk") + "/src/google_apis/build@" + Var("chromium_revision"), |
| 38 | |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 39 | "testing": |
frkoenig@google.com | 6123c60 | 2011-10-04 17:10:18 +0000 | [diff] [blame] | 40 | Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"), |
| 41 | |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 42 | "testing/gtest": |
| 43 | From("chromium_deps", "src/testing/gtest"), |
frkoenig@google.com | 6123c60 | 2011-10-04 17:10:18 +0000 | [diff] [blame] | 44 | |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 45 | "tools/clang": |
| 46 | Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"), |
| 47 | |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 48 | "tools/gn": |
| 49 | Var("chromium_trunk") + "/src/tools/gn@" + Var("chromium_revision"), |
| 50 | |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 51 | "tools/gyp": |
| 52 | From("chromium_deps", "src/tools/gyp"), |
mikhal@webrtc.org | 878ada4 | 2011-09-30 00:55:01 +0000 | [diff] [blame] | 53 | |
kjellander@google.com | f34649b | 2014-07-03 08:00:03 +0000 | [diff] [blame] | 54 | "tools/memory": |
| 55 | Var("chromium_trunk") + "/src/tools/memory@" + Var("chromium_revision"), |
| 56 | |
kjellander@google.com | f57c197 | 2012-09-05 06:19:46 +0000 | [diff] [blame] | 57 | "tools/python": |
| 58 | Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"), |
| 59 | |
kjellander@google.com | f34649b | 2014-07-03 08:00:03 +0000 | [diff] [blame] | 60 | "tools/sanitizer_options": |
| 61 | File(Var("chromium_trunk") + "/src/base/debug/sanitizer_options.cc@" + Var("chromium_revision")), |
| 62 | |
| 63 | "tools/tsan_suppressions": |
| 64 | File(Var("chromium_trunk") + "/src/base/debug/tsan_suppressions.cc@" + Var("chromium_revision")), |
| 65 | |
kjellander@google.com | f57c197 | 2012-09-05 06:19:46 +0000 | [diff] [blame] | 66 | "tools/valgrind": |
| 67 | Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"), |
| 68 | |
fbarchard@google.com | 724d0c1 | 2012-02-23 00:25:29 +0000 | [diff] [blame] | 69 | # Needed by build/common.gypi. |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 70 | "tools/win/supalink": |
fbarchard@google.com | 724d0c1 | 2012-02-23 00:25:29 +0000 | [diff] [blame] | 71 | Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"), |
| 72 | |
fbarchard@google.com | 05c4c71 | 2014-04-11 23:40:41 +0000 | [diff] [blame] | 73 | "third_party/binutils": |
| 74 | Var("chromium_trunk") + "/src/third_party/binutils@" + Var("chromium_revision"), |
| 75 | |
kjellander@google.com | f34649b | 2014-07-03 08:00:03 +0000 | [diff] [blame] | 76 | "third_party/libc++": |
| 77 | Var("chromium_trunk") + "/src/third_party/libc++@" + Var("chromium_revision"), |
| 78 | |
| 79 | "third_party/libc++/trunk": |
| 80 | From("chromium_deps", "src/third_party/libc++/trunk"), |
| 81 | |
| 82 | "third_party/libc++abi": |
| 83 | Var("chromium_trunk") + "/src/third_party/libc++abi@" + Var("chromium_revision"), |
| 84 | |
| 85 | "third_party/libc++abi/trunk": |
| 86 | From("chromium_deps", "src/third_party/libc++abi/trunk"), |
| 87 | |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 88 | "third_party/libjpeg_turbo": |
| 89 | From("chromium_deps", "src/third_party/libjpeg_turbo"), |
fbarchard@google.com | 69fe6bd | 2012-02-17 19:46:26 +0000 | [diff] [blame] | 90 | |
fbarchard@google.com | 724d0c1 | 2012-02-23 00:25:29 +0000 | [diff] [blame] | 91 | # Yasm assember required for libjpeg_turbo |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 92 | "third_party/yasm": |
fbarchard@google.com | 0f00506 | 2013-01-22 00:53:46 +0000 | [diff] [blame] | 93 | Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"), |
fbarchard@google.com | 724d0c1 | 2012-02-23 00:25:29 +0000 | [diff] [blame] | 94 | |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 95 | "third_party/yasm/source/patched-yasm": |
fbarchard@google.com | 0f00506 | 2013-01-22 00:53:46 +0000 | [diff] [blame] | 96 | Var("chromium_trunk") + "/deps/third_party/yasm/patched-yasm@" + Var("chromium_revision"), |
fbarchard@google.com | 724d0c1 | 2012-02-23 00:25:29 +0000 | [diff] [blame] | 97 | } |
| 98 | |
| 99 | deps_os = { |
| 100 | "win": { |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 101 | # Use WebRTC's, stripped down, version of Cygwin (required by GYP). |
| 102 | "third_party/cygwin": |
| 103 | (Var("googlecode_url") % "webrtc") + "/deps/third_party/cygwin@2672", |
| 104 | |
fbarchard@google.com | 67aeada | 2012-09-12 01:00:58 +0000 | [diff] [blame] | 105 | # Used by libjpeg-turbo. |
| 106 | # TODO(fbarchard): Remove binaries and run yasm from build folder. |
| 107 | "third_party/yasm/binaries": |
fbarchard@google.com | 0f00506 | 2013-01-22 00:53:46 +0000 | [diff] [blame] | 108 | Var("chromium_trunk") + "/deps/third_party/yasm/binaries@" + Var("chromium_revision"), |
fbarchard@google.com | 67aeada | 2012-09-12 01:00:58 +0000 | [diff] [blame] | 109 | "third_party/yasm": None, |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 110 | |
| 111 | "tools/find_depot_tools": |
| 112 | File(Var("chromium_trunk") + "/src/tools/find_depot_tools.py@" + Var("chromium_revision")), |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 113 | }, |
fbarchard@google.com | 30cfb5b | 2013-11-21 18:27:36 +0000 | [diff] [blame] | 114 | "android": { |
| 115 | "third_party/android_tools": |
| 116 | From("chromium_deps", "src/third_party/android_tools"), |
fbarchard@google.com | 31ca874 | 2013-12-13 00:25:28 +0000 | [diff] [blame] | 117 | |
| 118 | "third_party/libjpeg": |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 119 | Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"), |
fbarchard@google.com | 30cfb5b | 2013-11-21 18:27:36 +0000 | [diff] [blame] | 120 | }, |
fbarchard@google.com | 08b24a4 | 2013-10-25 07:39:43 +0000 | [diff] [blame] | 121 | "ios": { |
| 122 | # NSS, for SSLClientSocketNSS. |
| 123 | "third_party/nss": |
| 124 | From("chromium_deps", "src/third_party/nss"), |
| 125 | |
| 126 | "net/third_party/nss": |
| 127 | Var("chromium_trunk") + "/src/net/third_party/nss@" + Var("chromium_revision"), |
| 128 | |
| 129 | # class-dump utility to generate header files for undocumented SDKs. |
| 130 | "testing/iossim/third_party/class-dump": |
| 131 | From("chromium_deps", "src/testing/iossim/third_party/class-dump"), |
| 132 | |
| 133 | # Helper for running under the simulator. |
| 134 | "testing/iossim": |
| 135 | Var("chromium_trunk") + "/src/testing/iossim@" + Var("chromium_revision"), |
| 136 | }, |
mikhal@webrtc.org | 878ada4 | 2011-09-30 00:55:01 +0000 | [diff] [blame] | 137 | } |
| 138 | |
mikhal@webrtc.org | 878ada4 | 2011-09-30 00:55:01 +0000 | [diff] [blame] | 139 | hooks = [ |
mikhal@webrtc.org | 878ada4 | 2011-09-30 00:55:01 +0000 | [diff] [blame] | 140 | { |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 141 | # Copy .gn from temporary place (../chromium_gn) to root_dir. |
| 142 | "name": "copy .gn", |
| 143 | "pattern": ".", |
| 144 | "action": ["python", Var("root_dir") + "/build/cp.py", |
| 145 | Var("root_dir") + "/../chromium_gn/.gn", |
| 146 | Var("root_dir")], |
| 147 | }, |
| 148 | # Pull GN binaries. This needs to be before running GYP below. |
| 149 | { |
| 150 | "name": "gn_win", |
kjellander@google.com | 973da21 | 2014-04-02 18:01:51 +0000 | [diff] [blame] | 151 | "pattern": ".", |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 152 | "action": [ "download_from_google_storage", |
| 153 | "--no_resume", |
| 154 | "--platform=win32", |
| 155 | "--no_auth", |
| 156 | "--bucket", "chromium-gn", |
kjellander@google.com | f34649b | 2014-07-03 08:00:03 +0000 | [diff] [blame] | 157 | "-s", Var("root_dir") + "/buildtools/win/gn.exe.sha1", |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 158 | ], |
| 159 | }, |
| 160 | { |
| 161 | "name": "gn_mac", |
kjellander@google.com | 973da21 | 2014-04-02 18:01:51 +0000 | [diff] [blame] | 162 | "pattern": ".", |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 163 | "action": [ "download_from_google_storage", |
| 164 | "--no_resume", |
| 165 | "--platform=darwin", |
| 166 | "--no_auth", |
| 167 | "--bucket", "chromium-gn", |
kjellander@google.com | f34649b | 2014-07-03 08:00:03 +0000 | [diff] [blame] | 168 | "-s", Var("root_dir") + "/buildtools/mac/gn.sha1", |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 169 | ], |
| 170 | }, |
| 171 | { |
| 172 | "name": "gn_linux", |
kjellander@google.com | 973da21 | 2014-04-02 18:01:51 +0000 | [diff] [blame] | 173 | "pattern": ".", |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 174 | "action": [ "download_from_google_storage", |
| 175 | "--no_resume", |
| 176 | "--platform=linux*", |
| 177 | "--no_auth", |
| 178 | "--bucket", "chromium-gn", |
kjellander@google.com | f34649b | 2014-07-03 08:00:03 +0000 | [diff] [blame] | 179 | "-s", Var("root_dir") + "/buildtools/linux64/gn.sha1", |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 180 | ], |
| 181 | }, |
| 182 | { |
| 183 | "name": "gn_linux32", |
kjellander@google.com | 973da21 | 2014-04-02 18:01:51 +0000 | [diff] [blame] | 184 | "pattern": ".", |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 185 | "action": [ "download_from_google_storage", |
| 186 | "--no_resume", |
| 187 | "--platform=linux*", |
| 188 | "--no_auth", |
| 189 | "--bucket", "chromium-gn", |
kjellander@google.com | f34649b | 2014-07-03 08:00:03 +0000 | [diff] [blame] | 190 | "-s", Var("root_dir") + "/buildtools/linux32/gn.sha1", |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 191 | ], |
| 192 | }, |
| 193 | { |
kjellander@google.com | f34649b | 2014-07-03 08:00:03 +0000 | [diff] [blame] | 194 | # Remove GN binaries from tools/gn/bin that aren't used anymore. |
| 195 | # TODO(kjellander) remove after the end of July, 2014. |
| 196 | "name": "remove_old_gn_binaries", |
| 197 | "pattern": ".", |
| 198 | "action": ["python", Var("root_dir") + "/tools/gn/bin/rm_binaries.py"], |
| 199 | }, |
| 200 | { |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 201 | # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes |
| 202 | # zero seconds to run. If something changed, it downloads a prebuilt clang. |
mikhal@webrtc.org | 878ada4 | 2011-09-30 00:55:01 +0000 | [diff] [blame] | 203 | "pattern": ".", |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 204 | "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py", |
kjellander@google.com | 973da21 | 2014-04-02 18:01:51 +0000 | [diff] [blame] | 205 | "--if-needed"], |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 206 | }, |
| 207 | { |
fbarchard@google.com | 05c4c71 | 2014-04-11 23:40:41 +0000 | [diff] [blame] | 208 | # Update the Windows toolchain if necessary. |
| 209 | "name": "win_toolchain", |
| 210 | "pattern": ".", |
| 211 | "action": ["python", Var("root_dir") + "/download_vs_toolchain.py", |
| 212 | "update"], |
| 213 | }, |
| 214 | { |
fbarchard@google.com | c8970f1 | 2014-04-10 18:13:35 +0000 | [diff] [blame] | 215 | # Pull binutils for gold. |
| 216 | "name": "binutils", |
| 217 | "pattern": ".", |
| 218 | "action": ["python", Var("root_dir") + "/third_party/binutils/download.py"], |
fbarchard@google.com | 05c4c71 | 2014-04-11 23:40:41 +0000 | [diff] [blame] | 219 | }, |
fbarchard@google.com | c8970f1 | 2014-04-10 18:13:35 +0000 | [diff] [blame] | 220 | { |
kjellander@google.com | f55d99f | 2012-08-28 14:20:19 +0000 | [diff] [blame] | 221 | # A change to a .gyp, .gypi, or to GYP itself should run the generator. |
| 222 | "pattern": ".", |
fbarchard@google.com | 4a18360 | 2014-03-28 17:26:06 +0000 | [diff] [blame] | 223 | "action": ["python", Var("root_dir") + "/gyp_libyuv"], |
fbarchard@google.com | e0b63e4 | 2012-11-13 10:12:28 +0000 | [diff] [blame] | 224 | }, |
mikhal@webrtc.org | 878ada4 | 2011-09-30 00:55:01 +0000 | [diff] [blame] | 225 | ] |