andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 1 | use_relative_paths = True |
| 2 | |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 3 | vars = { |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 4 | # Override root_dir in your .gclient's custom_vars to specify a custom root |
| 5 | # folder name. |
| 6 | "root_dir": "trunk", |
andrew@webrtc.org | ea5d0e5 | 2012-08-09 17:37:03 +0000 | [diff] [blame] | 7 | "extra_gyp_flag": "-Dextra_gyp_flag=0", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 8 | |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 9 | # Use this googlecode_url variable only if there is an internal mirror for it. |
| 10 | # If you do not know, use the full path while defining your new deps entry. |
| 11 | "googlecode_url": "http://%s.googlecode.com/svn", |
| 12 | "chromium_trunk" : "http://src.chromium.org/svn/trunk", |
fischman@webrtc.org | 3d496fb | 2013-07-30 17:14:35 +0000 | [diff] [blame^] | 13 | "chromium_revision": "214260", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 14 | |
kjellander@webrtc.org | 430464c | 2013-06-04 16:29:45 +0000 | [diff] [blame] | 15 | # A small subset of WebKit is needed for the Android Python test framework. |
| 16 | "webkit_trunk": "http://src.chromium.org/blink/trunk", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | # NOTE: Prefer revision numbers to tags for svn deps. Use http rather than |
| 20 | # https; the latter can cause problems for users behind proxies. |
| 21 | deps = { |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 22 | "../chromium_deps": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 23 | File(Var("chromium_trunk") + "/src/DEPS@" + Var("chromium_revision")), |
| 24 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 25 | "build": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 26 | Var("chromium_trunk") + "/src/build@" + Var("chromium_revision"), |
| 27 | |
andrew@webrtc.org | b9d2064 | 2012-09-19 23:08:50 +0000 | [diff] [blame] | 28 | # Needed by common.gypi. |
| 29 | "google_apis/build": |
| 30 | Var("chromium_trunk") + "/src/google_apis/build@" + Var("chromium_revision"), |
| 31 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 32 | "testing": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 33 | Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"), |
| 34 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 35 | "testing/gmock": |
| 36 | From("chromium_deps", "src/testing/gmock"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 37 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 38 | "testing/gtest": |
| 39 | From("chromium_deps", "src/testing/gtest"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 40 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 41 | "third_party/expat": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 42 | Var("chromium_trunk") + "/src/third_party/expat@" + Var("chromium_revision"), |
| 43 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 44 | "third_party/google-gflags/src": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 45 | (Var("googlecode_url") % "google-gflags") + "/trunk/src@45", |
| 46 | |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 +0000 | [diff] [blame] | 47 | "third_party/icu/": |
| 48 | From("chromium_deps", "src/third_party/icu"), |
| 49 | |
| 50 | "third_party/jsoncpp/": |
| 51 | Var("chromium_trunk") + "/src/third_party/jsoncpp@" + Var("chromium_revision"), |
| 52 | |
| 53 | "third_party/jsoncpp/source": |
| 54 | "http://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk/jsoncpp@248", |
| 55 | |
| 56 | "third_party/junit/": |
| 57 | (Var("googlecode_url") % "webrtc") + "/deps/third_party/junit@3367", |
| 58 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 59 | "third_party/libjpeg": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 60 | Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"), |
| 61 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 62 | "third_party/libjpeg_turbo": |
| 63 | From("chromium_deps", "src/third_party/libjpeg_turbo"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 64 | |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 +0000 | [diff] [blame] | 65 | "third_party/libsrtp/": |
| 66 | From("chromium_deps", "src/third_party/libsrtp"), |
| 67 | |
andrew@webrtc.org | e6e344a | 2013-02-12 19:35:18 +0000 | [diff] [blame] | 68 | "third_party/libvpx": |
fischman@webrtc.org | e691b4f | 2013-07-25 21:22:41 +0000 | [diff] [blame] | 69 | Var("chromium_trunk") + "/deps/third_party/libvpx@212975", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 70 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 71 | "third_party/libyuv": |
fbarchard@google.com | 2ef9513 | 2013-06-11 22:03:29 +0000 | [diff] [blame] | 72 | (Var("googlecode_url") % "libyuv") + "/trunk@723", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 73 | |
tina.legrand@webrtc.org | 1f8c02a | 2012-10-25 12:37:08 +0000 | [diff] [blame] | 74 | "third_party/opus": |
tina.legrand@webrtc.org | e86f43b | 2013-03-22 12:39:54 +0000 | [diff] [blame] | 75 | Var("chromium_trunk") + "/src/third_party/opus@185405", |
tina.legrand@webrtc.org | 1f8c02a | 2012-10-25 12:37:08 +0000 | [diff] [blame] | 76 | |
| 77 | "third_party/opus/src": |
tina.legrand@webrtc.org | e86f43b | 2013-03-22 12:39:54 +0000 | [diff] [blame] | 78 | Var("chromium_trunk") + "/deps/third_party/opus@185324", |
tina.legrand@webrtc.org | 1f8c02a | 2012-10-25 12:37:08 +0000 | [diff] [blame] | 79 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 80 | "third_party/protobuf": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 81 | Var("chromium_trunk") + "/src/third_party/protobuf@" + Var("chromium_revision"), |
| 82 | |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 +0000 | [diff] [blame] | 83 | "third_party/sqlite/": |
| 84 | Var("chromium_trunk") + "/src/third_party/sqlite@" + Var("chromium_revision"), |
| 85 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 86 | "third_party/yasm": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 87 | Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"), |
| 88 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 89 | "third_party/yasm/source/patched-yasm": |
| 90 | From("chromium_deps", "src/third_party/yasm/source/patched-yasm"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 91 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 92 | "tools/clang": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 93 | Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"), |
| 94 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 95 | "tools/gyp": |
| 96 | From("chromium_deps", "src/tools/gyp"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 97 | |
andrew@webrtc.org | 225f2b8 | 2013-05-20 21:12:58 +0000 | [diff] [blame] | 98 | "tools/protoc_wrapper": |
| 99 | Var("chromium_trunk") + "/src/tools/protoc_wrapper@" + Var("chromium_revision"), |
| 100 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 101 | "tools/python": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 102 | Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"), |
| 103 | |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 104 | "tools/valgrind": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 105 | Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"), |
| 106 | |
| 107 | # Needed by build/common.gypi. |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 108 | "tools/win/supalink": |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 109 | Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"), |
| 110 | } |
| 111 | |
| 112 | deps_os = { |
| 113 | "win": { |
| 114 | # Use our own, stripped down, version of Cygwin (required by GYP). |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 115 | "third_party/cygwin": |
andrew@webrtc.org | 7b2e919 | 2012-08-28 15:56:40 +0000 | [diff] [blame] | 116 | (Var("googlecode_url") % "webrtc") + "/deps/third_party/cygwin@2672", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 117 | |
andrew@webrtc.org | 8cd18c5 | 2012-11-21 18:46:45 +0000 | [diff] [blame] | 118 | "third_party/winsdk_samples/src": |
| 119 | (Var("googlecode_url") % "webrtc") + "/deps/third_party/winsdk_samples_v71@3145", |
| 120 | |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 121 | # Used by libjpeg-turbo. |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 122 | "third_party/yasm/binaries": |
| 123 | From("chromium_deps", "src/third_party/yasm/binaries"), |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 +0000 | [diff] [blame] | 124 | |
| 125 | # NSS, for SSLClientSocketNSS. |
| 126 | "third_party/nss": |
| 127 | From("chromium_deps", "src/third_party/nss"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 128 | }, |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 +0000 | [diff] [blame] | 129 | |
| 130 | "mac": { |
| 131 | # NSS, for SSLClientSocketNSS. |
| 132 | "third_party/nss": |
| 133 | From("chromium_deps", "src/third_party/nss"), |
| 134 | }, |
| 135 | |
| 136 | "ios": { |
| 137 | # NSS, for SSLClientSocketNSS. |
| 138 | "third_party/nss": |
| 139 | From("chromium_deps", "src/third_party/nss"), |
| 140 | }, |
| 141 | |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 142 | "unix": { |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 143 | "third_party/gold": |
| 144 | From("chromium_deps", "src/third_party/gold"), |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 +0000 | [diff] [blame] | 145 | |
| 146 | "third_party/openssl": |
| 147 | From("chromium_deps", "src/third_party/openssl"), |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 148 | }, |
kjellander@webrtc.org | 18a21a0 | 2013-02-11 17:43:19 +0000 | [diff] [blame] | 149 | "android": { |
kjellander@webrtc.org | 6cfe178 | 2013-06-18 07:14:33 +0000 | [diff] [blame] | 150 | # Precompiled tools needed for Android test execution. Needed since we can't |
| 151 | # compile them from source in WebRTC since they depend on Chromium's base. |
| 152 | "tools/android": |
yujie.mao@webrtc.org | 9f07ea4 | 2013-07-18 01:57:04 +0000 | [diff] [blame] | 153 | (Var("googlecode_url") % "webrtc") + "/deps/tools/android@4258", |
kjellander@webrtc.org | 6cfe178 | 2013-06-18 07:14:33 +0000 | [diff] [blame] | 154 | |
kjellander@webrtc.org | 2d7617a | 2013-06-19 09:10:49 +0000 | [diff] [blame] | 155 | "tools/android-dummy-test": |
| 156 | (Var("googlecode_url") % "webrtc") + "/deps/tools/android-dummy-test@4244", |
| 157 | |
kjellander@webrtc.org | 18a21a0 | 2013-02-11 17:43:19 +0000 | [diff] [blame] | 158 | "third_party/android_tools": |
| 159 | From("chromium_deps", "src/third_party/android_tools"), |
| 160 | |
| 161 | "third_party/android_testrunner": |
| 162 | Var("chromium_trunk") + "/src/third_party/android_testrunner@" + Var("chromium_revision"), |
kjellander@webrtc.org | 430464c | 2013-06-04 16:29:45 +0000 | [diff] [blame] | 163 | |
| 164 | "third_party/WebKit/Tools/Scripts": |
| 165 | Var("webkit_trunk") + "/Tools/Scripts@151677", |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 +0000 | [diff] [blame] | 166 | |
| 167 | "third_party/openssl": |
| 168 | From("chromium_deps", "src/third_party/openssl"), |
kjellander@webrtc.org | 18a21a0 | 2013-02-11 17:43:19 +0000 | [diff] [blame] | 169 | }, |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 170 | } |
| 171 | |
| 172 | hooks = [ |
| 173 | { |
andrew@webrtc.org | 14b43be | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 174 | # Create a supplement.gypi file under trunk/webrtc. This file will be picked |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 175 | # up by gyp and used to enable the standalone build. |
| 176 | "pattern": ".", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 177 | "action": ["python", Var("root_dir") + "/tools/create_supplement_gypi.py", |
andrew@webrtc.org | 14b43be | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 178 | Var("root_dir") + "/webrtc/supplement.gypi"], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 179 | }, |
| 180 | { |
| 181 | # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes |
| 182 | # zero seconds to run. If something changed, it downloads a prebuilt clang. |
| 183 | "pattern": ".", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 184 | "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py", |
| 185 | "--mac-only"], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 186 | }, |
| 187 | { |
stefan@webrtc.org | c311583 | 2012-08-17 06:57:58 +0000 | [diff] [blame] | 188 | # Update the cygwin mount on Windows. |
| 189 | # This is necessary to get the correct mapping between e.g. /bin and the |
| 190 | # cygwin path on Windows. Without it we can't run bash scripts in actions. |
| 191 | # Ideally this should be solved in "pylib/gyp/msvs_emulation.py". |
| 192 | "pattern": ".", |
| 193 | "action": ["python", Var("root_dir") + "/build/win/setup_cygwin_mount.py", |
| 194 | "--win-only"], |
| 195 | }, |
| 196 | { |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 197 | # Download test resources, i.e. video and audio files. If the latest |
| 198 | # version is already downloaded, this takes zero seconds to run. |
| 199 | # If a newer version or no current download exists, it will download |
| 200 | # the resources and extract them. |
| 201 | "pattern": ".", |
henrike@webrtc.org | 34773d9 | 2013-07-08 14:55:23 +0000 | [diff] [blame] | 202 | "action": ["python", Var("root_dir") + "/webrtc/tools/update_resources.py"], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 203 | }, |
| 204 | { |
| 205 | # A change to a .gyp, .gypi, or to GYP itself should run the generator. |
| 206 | "pattern": ".", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 207 | "action": ["python", Var("root_dir") + "/build/gyp_chromium", |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 +0000 | [diff] [blame] | 208 | "--depth=" + Var("root_dir"), Var("root_dir") + "/all.gyp", |
andrew@webrtc.org | ea5d0e5 | 2012-08-09 17:37:03 +0000 | [diff] [blame] | 209 | Var("extra_gyp_flag")], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 210 | }, |
| 211 | ] |
| 212 | |