blob: 8da3f9db13d801a6d24edbb4881f2267c1a24707 [file] [log] [blame]
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +00001use_relative_paths = True
2
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +00003vars = {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +00004 # Override root_dir in your .gclient's custom_vars to specify a custom root
5 # folder name.
6 "root_dir": "trunk",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +00007 "extra_gyp_flag": "-Dextra_gyp_flag=0",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +00008
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +00009 # 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",
pbos@webrtc.org62e5af42013-08-20 09:19:16 +000012 "sourceforge_url": "http://svn.code.sf.net/p/%(repo)s/code",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000013 "chromium_trunk" : "http://src.chromium.org/svn/trunk",
fischman@webrtc.orgdde7d4c2013-08-15 23:31:30 +000014 "chromium_revision": "217707",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000015
kjellander@webrtc.org430464c2013-06-04 16:29:45 +000016 # A small subset of WebKit is needed for the Android Python test framework.
17 "webkit_trunk": "http://src.chromium.org/blink/trunk",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000018}
19
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.
22deps = {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000023 "../chromium_deps":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000024 File(Var("chromium_trunk") + "/src/DEPS@" + Var("chromium_revision")),
25
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000026 "build":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000027 Var("chromium_trunk") + "/src/build@" + Var("chromium_revision"),
28
andrew@webrtc.orgb9d20642012-09-19 23:08:50 +000029 # Needed by common.gypi.
30 "google_apis/build":
31 Var("chromium_trunk") + "/src/google_apis/build@" + Var("chromium_revision"),
32
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000033 "testing":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000034 Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"),
35
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000036 "testing/gmock":
37 From("chromium_deps", "src/testing/gmock"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000038
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000039 "testing/gtest":
40 From("chromium_deps", "src/testing/gtest"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000041
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000042 "third_party/expat":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000043 Var("chromium_trunk") + "/src/third_party/expat@" + Var("chromium_revision"),
44
fischman@webrtc.orgdde7d4c2013-08-15 23:31:30 +000045 "third_party/gflags/src":
46 (Var("googlecode_url") % "gflags") + "/trunk/src@84",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000047
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000048 "third_party/icu/":
49 From("chromium_deps", "src/third_party/icu"),
50
51 "third_party/jsoncpp/":
52 Var("chromium_trunk") + "/src/third_party/jsoncpp@" + Var("chromium_revision"),
53
54 "third_party/jsoncpp/source":
pbos@webrtc.org62e5af42013-08-20 09:19:16 +000055 (Var("sourceforge_url") % {"repo": "jsoncpp"}) + "/trunk/jsoncpp@248",
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000056
57 "third_party/junit/":
58 (Var("googlecode_url") % "webrtc") + "/deps/third_party/junit@3367",
59
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000060 "third_party/libjpeg":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000061 Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"),
62
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000063 "third_party/libjpeg_turbo":
64 From("chromium_deps", "src/third_party/libjpeg_turbo"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000065
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000066 "third_party/libsrtp/":
67 From("chromium_deps", "src/third_party/libsrtp"),
68
andrew@webrtc.orge6e344a2013-02-12 19:35:18 +000069 "third_party/libvpx":
fischman@webrtc.orge691b4f2013-07-25 21:22:41 +000070 Var("chromium_trunk") + "/deps/third_party/libvpx@212975",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000071
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000072 "third_party/libyuv":
fbarchard@google.com2ef95132013-06-11 22:03:29 +000073 (Var("googlecode_url") % "libyuv") + "/trunk@723",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000074
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +000075 "third_party/opus":
tina.legrand@webrtc.orge86f43b2013-03-22 12:39:54 +000076 Var("chromium_trunk") + "/src/third_party/opus@185405",
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +000077
78 "third_party/opus/src":
tina.legrand@webrtc.orge86f43b2013-03-22 12:39:54 +000079 Var("chromium_trunk") + "/deps/third_party/opus@185324",
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +000080
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000081 "third_party/protobuf":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000082 Var("chromium_trunk") + "/src/third_party/protobuf@" + Var("chromium_revision"),
83
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000084 "third_party/sqlite/":
85 Var("chromium_trunk") + "/src/third_party/sqlite@" + Var("chromium_revision"),
86
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000087 "third_party/yasm":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000088 Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"),
89
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000090 "third_party/yasm/source/patched-yasm":
91 From("chromium_deps", "src/third_party/yasm/source/patched-yasm"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000092
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000093 "tools/clang":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000094 Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"),
95
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000096 "tools/gyp":
97 From("chromium_deps", "src/tools/gyp"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000098
andrew@webrtc.org225f2b82013-05-20 21:12:58 +000099 "tools/protoc_wrapper":
100 Var("chromium_trunk") + "/src/tools/protoc_wrapper@" + Var("chromium_revision"),
101
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000102 "tools/python":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000103 Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"),
104
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000105 "tools/valgrind":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000106 Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"),
107
108 # Needed by build/common.gypi.
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000109 "tools/win/supalink":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000110 Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"),
111}
112
113deps_os = {
114 "win": {
115 # Use our own, stripped down, version of Cygwin (required by GYP).
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000116 "third_party/cygwin":
andrew@webrtc.org7b2e9192012-08-28 15:56:40 +0000117 (Var("googlecode_url") % "webrtc") + "/deps/third_party/cygwin@2672",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000118
andrew@webrtc.org8cd18c52012-11-21 18:46:45 +0000119 "third_party/winsdk_samples/src":
120 (Var("googlecode_url") % "webrtc") + "/deps/third_party/winsdk_samples_v71@3145",
121
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000122 # Used by libjpeg-turbo.
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000123 "third_party/yasm/binaries":
124 From("chromium_deps", "src/third_party/yasm/binaries"),
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000125
126 # NSS, for SSLClientSocketNSS.
127 "third_party/nss":
128 From("chromium_deps", "src/third_party/nss"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000129 },
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000130
131 "mac": {
132 # NSS, for SSLClientSocketNSS.
133 "third_party/nss":
134 From("chromium_deps", "src/third_party/nss"),
fischman@webrtc.org1bc19542013-08-01 18:29:45 +0000135
136 # TODO(fischman): delete this in favor of the copy in "ios" below, once the
137 # webrtc iOS bots are fixed to target_os=['ios'] in their .gclient
138 # https://code.google.com/p/webrtc/issues/detail?id=2152
139 "net/third_party/nss":
140 Var("chromium_trunk") + "/src/net/third_party/nss@" + Var("chromium_revision"),
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000141 },
142
143 "ios": {
144 # NSS, for SSLClientSocketNSS.
145 "third_party/nss":
146 From("chromium_deps", "src/third_party/nss"),
fischman@webrtc.org1bc19542013-08-01 18:29:45 +0000147
148 "net/third_party/nss":
149 Var("chromium_trunk") + "/src/net/third_party/nss@" + Var("chromium_revision"),
150
151 # class-dump utility to generate header files for undocumented SDKs.
152 "testing/iossim/third_party/class-dump":
153 From("chromium_deps", "src/testing/iossim/third_party/class-dump"),
154
155 # Helper for running under the simulator.
156 "testing/iossim":
157 Var("chromium_trunk") + "/src/testing/iossim@" + Var("chromium_revision"),
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000158 },
159
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000160 "unix": {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000161 "third_party/gold":
162 From("chromium_deps", "src/third_party/gold"),
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000163
164 "third_party/openssl":
165 From("chromium_deps", "src/third_party/openssl"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000166 },
kjellander@webrtc.org18a21a02013-02-11 17:43:19 +0000167 "android": {
kjellander@webrtc.org6cfe1782013-06-18 07:14:33 +0000168 # Precompiled tools needed for Android test execution. Needed since we can't
169 # compile them from source in WebRTC since they depend on Chromium's base.
170 "tools/android":
yujie.mao@webrtc.org9f07ea42013-07-18 01:57:04 +0000171 (Var("googlecode_url") % "webrtc") + "/deps/tools/android@4258",
kjellander@webrtc.org6cfe1782013-06-18 07:14:33 +0000172
kjellander@webrtc.org2d7617a2013-06-19 09:10:49 +0000173 "tools/android-dummy-test":
174 (Var("googlecode_url") % "webrtc") + "/deps/tools/android-dummy-test@4244",
175
kjellander@webrtc.org18a21a02013-02-11 17:43:19 +0000176 "third_party/android_tools":
177 From("chromium_deps", "src/third_party/android_tools"),
178
179 "third_party/android_testrunner":
180 Var("chromium_trunk") + "/src/third_party/android_testrunner@" + Var("chromium_revision"),
kjellander@webrtc.org430464c2013-06-04 16:29:45 +0000181
182 "third_party/WebKit/Tools/Scripts":
183 Var("webkit_trunk") + "/Tools/Scripts@151677",
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000184
185 "third_party/openssl":
186 From("chromium_deps", "src/third_party/openssl"),
kjellander@webrtc.org18a21a02013-02-11 17:43:19 +0000187 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000188}
189
190hooks = [
191 {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000192 # Create a supplement.gypi file under trunk/webrtc. This file will be picked
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000193 # up by gyp and used to enable the standalone build.
194 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000195 "action": ["python", Var("root_dir") + "/tools/create_supplement_gypi.py",
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000196 Var("root_dir") + "/webrtc/supplement.gypi"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000197 },
198 {
199 # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes
200 # zero seconds to run. If something changed, it downloads a prebuilt clang.
201 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000202 "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py",
203 "--mac-only"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000204 },
205 {
stefan@webrtc.orgc3115832012-08-17 06:57:58 +0000206 # Update the cygwin mount on Windows.
207 # This is necessary to get the correct mapping between e.g. /bin and the
208 # cygwin path on Windows. Without it we can't run bash scripts in actions.
209 # Ideally this should be solved in "pylib/gyp/msvs_emulation.py".
210 "pattern": ".",
211 "action": ["python", Var("root_dir") + "/build/win/setup_cygwin_mount.py",
212 "--win-only"],
213 },
214 {
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000215 # Download test resources, i.e. video and audio files. If the latest
216 # version is already downloaded, this takes zero seconds to run.
217 # If a newer version or no current download exists, it will download
218 # the resources and extract them.
219 "pattern": ".",
henrike@webrtc.org34773d92013-07-08 14:55:23 +0000220 "action": ["python", Var("root_dir") + "/webrtc/tools/update_resources.py"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000221 },
222 {
223 # A change to a .gyp, .gypi, or to GYP itself should run the generator.
224 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000225 "action": ["python", Var("root_dir") + "/build/gyp_chromium",
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +0000226 "--depth=" + Var("root_dir"), Var("root_dir") + "/all.gyp",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +0000227 Var("extra_gyp_flag")],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000228 },
229]
230