Fix DisownOpener and related tests.
[chromium-blink-merge.git] / DEPS
blob4003b52c9f9858430a3dfe9bc125d2a2e9869b6e
1 # This file is automatically processed to create .DEPS.git which is the file
2 # that gclient uses under git.
4 # See http://code.google.com/p/chromium/wiki/UsingGit
6 # To test manually, run:
7 #   python tools/deps2git/deps2git.py -o .DEPS.git -w <gclientdir>
8 # where <gcliendir> is the absolute path to the directory containing the
9 # .gclient file (the parent of "src").
11 # Then commit .DEPS.git locally (gclient doesn't like dirty trees) and run
12 #   gclient sync
13 # Verify the thing happened you wanted. Then revert your .DEPS.git change
14 # DO NOT CHECK IN CHANGES TO .DEPS.git upstream. It will be automatically
15 # updated by a bot when you modify this one.
17 # When adding a new dependency, please update the top-level .gitignore file
18 # to list the dependency's destination directory.
20 vars = {
21   # Use this googlecode_url variable only if there is an internal mirror for it.
22   # If you do not know, use the full path while defining your new deps entry.
23   "googlecode_url": "http://%s.googlecode.com/svn",
24   "sourceforge_url": "http://svn.code.sf.net/p/%(repo)s/code",
25   "llvm_url": "http://src.chromium.org/llvm-project",
26   "llvm_git": "https://llvm.googlesource.com",
27   "libcxx_revision": "206024",
28   "libcxxabi_revision": "206024",
29   "webkit_trunk": "http://src.chromium.org/blink/trunk",
30   "nacl_trunk": "http://src.chromium.org/native_client/trunk",
31   "webkit_revision": "180790",
32   "chromium_git": "https://chromium.googlesource.com",
33   "chromiumos_git": "https://chromium.googlesource.com/chromiumos",
34   "pdfium_git": "https://pdfium.googlesource.com",
35   "skia_git": "https://skia.googlesource.com",
36   "boringssl_git": "https://boringssl.googlesource.com",
37   "swig_revision": "230490",
38   "nacl_revision": "13637",
39   # After changing nacl_revision, run 'glient sync' and check native_client/DEPS
40   # to update other nacl_*_revision's.
41   "nacl_tools_revision": "13077",  # native_client/DEPS: tools_rev
42   "google_toolbox_for_mac_revision": "662",
43   "libaddressinput_revision": "327",
44   "libphonenumber_revision": "621",
45   "libvpx_revision": "291091",
46   "lss_revision": "31",
47   "sfntly_revision": "239",
48   "lighttpd_revision": "33737",
49   "skia_revision": "3e42a4638559d71481ba598857f2d0c715c8d4b3",
50   # Three lines of non-changing comments so that
51   # the commit queue can handle CLs rolling Skia
52   # and V8 without interference from each other.
53   "v8_branch": "trunk",
54   "v8_revision": "23287",
55   # Three lines of non-changing comments so that
56   # the commit queue can handle CLs rolling WebRTC
57   # and V8 without interference from each other.
58   "webrtc_revision": "6955",
59   "jsoncpp_revision": "248",
60   "nss_revision": "289430",
61   # Three lines of non-changing comments so that
62   # the commit queue can handle CLs rolling swarming_client
63   # and whatever else without interference from each other.
64   "swarming_revision": "b8aeeaef087fa2571aaaf64a8a8dbec06a0e0e41",
65   # Three lines of non-changing comments so that
66   # the commit queue can handle CLs rolling openssl
67   # and whatever else without interference from each other.
68   "openssl_revision": "284247",
69   # Three lines of non-changing comments so that
70   # the commit queue can handle CLs rolling ANGLE
71   # and whatever else without interference from each other.
72   "angle_revision": "bc75f36b04c8bab99bcecf8cdca16ecee3ac58ee",
73   # Three lines of non-changing comments so that
74   # the commit queue can handle CLs rolling build tools
75   # and whatever else without interference from each other.
76   "buildtools_revision": "f79f8ef8691cb0c91ecf36392f6defabd824af60",
77   # Three lines of non-changing comments so that
78   # the commit queue can handle CLs rolling PDFIum
79   # and whatever else without interference from each other.
80   "pdfium_revision": "635e82ec20b3d5ffcb24f9a1b1be9f1f24d8a3f4",
81   # Three lines of non-changing comments so that
82   # the commit queue can handle CLs rolling openmax_dl
83   # and whatever else without interference from each other.
84   "openmax_dl_revision": "6925",
85   # Three lines of non-changing comments so that
86   # the commit queue can handle CLs rolling BoringSSL
87   # and whatever else without interference from each other.
88   "boringssl_revision": "5213df4e9ed9ca130c40f142893cb91f2e18eee1",
91 deps = {
92   "src/breakpad/src":
93     Var("chromium_git") + "/external/google-breakpad/src.git@17f614cd8365f5b78577ffcc237300a970db9813", # from svn revision 1359
95   "src/buildtools":
96     Var("chromium_git") + "/chromium/buildtools.git@" +
97      Var("buildtools_revision"),
99   "src/sdch/open-vcdiff":
100     Var("chromium_git") + "/external/open-vcdiff.git@438f2a5be6d809bc21611a94cd37bfc8c28ceb33", # from svn revision 41
102   "src/testing/gtest":
103     Var("chromium_git") + "/external/googletest.git@4650552ff637bb44ecf7784060091cbed3252211", # from svn revision 692
105   "src/testing/gmock":
106     Var("chromium_git") + "/external/googlemock.git@896ba0e03f520fb9b6ed582bde2bd00847e3c3f2", # from svn revision 485
108   "src/third_party/angle":
109     Var("chromium_git") + "/angle/angle.git@" + Var("angle_revision"),
111   "src/third_party/colorama/src":
112     Var("chromium_git") + "/external/colorama.git@799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8",
114   "src/third_party/trace-viewer":
115     Var("chromium_git") + "/external/trace-viewer.git@e99ce9ec59a7b8bcd13fdf62e51c2cfa285a2a94", # from svn revision 1518
117   "src/third_party/WebKit":
118     Var("webkit_trunk") + "@" + Var("webkit_revision"),
120   "src/third_party/WebKit/LayoutTests/w3c/web-platform-tests":
121     Var("chromium_git") +
122     "/external/w3c/web-platform-tests.git@3e0f28376857901b2d3eefda82a3b622bbcabd41",
124   "src/third_party/WebKit/LayoutTests/w3c/csswg-test":
125     Var("chromium_git") +
126     "/external/w3c/csswg-test.git@0b12ea22689ee2179f3e9bff389db22f4efd6ed5",
128   "src/third_party/icu":
129     "/trunk/deps/third_party/icu52@291179",
131   "src/third_party/libexif/sources":
132     "/trunk/deps/third_party/libexif/sources@265008",
134   "src/third_party/hunspell":
135     "/trunk/deps/third_party/hunspell@287123",
137   "src/third_party/hunspell_dictionaries":
138     "/trunk/deps/third_party/hunspell_dictionaries@255132",
140   "src/third_party/safe_browsing/testing":
141     (Var("googlecode_url") % "google-safe-browsing") + "/trunk/testing@112",
143   "src/third_party/cacheinvalidation/src":
144     (Var("googlecode_url") % "google-cache-invalidation-api") +
145     "/trunk/src@335",
147   "src/third_party/leveldatabase/src":
148     (Var("googlecode_url") % "leveldb") + "/trunk@80",
150   "src/third_party/libc++/trunk":
151     Var("llvm_url") + "/libcxx/trunk@" + Var("libcxx_revision"),
153   "src/third_party/libc++abi/trunk":
154     Var("llvm_url") + "/libcxxabi/trunk@" + Var("libcxxabi_revision"),
156   "src/third_party/snappy/src":
157     (Var("googlecode_url") % "snappy") + "/trunk@80",
159   "src/tools/grit":
160     (Var("googlecode_url") % "grit-i18n") + "/trunk@172",
162   "src/tools/gyp":
163     (Var("googlecode_url") % "gyp") + "/trunk@1967",
165   "src/tools/swarming_client":
166     Var("chromium_git") + "/external/swarming.client.git@" +
167         Var("swarming_revision"),
169   "src/v8":
170     (Var("googlecode_url") % "v8") + "/" + Var("v8_branch") + "@" +
171     Var("v8_revision"),
173   "src/native_client":
174     Var("nacl_trunk") + "/src/native_client@" + Var("nacl_revision"),
176   "src/chrome/test/data/extensions/api_test/permissions/nacl_enabled/bin":
177     Var("nacl_trunk") + "/src/native_client/tests/prebuilt@" +
178     Var("nacl_revision"),
180   "src/third_party/sfntly/cpp/src":
181     (Var("googlecode_url") % "sfntly") + "/trunk/cpp/src@" +
182     Var("sfntly_revision"),
184   "src/third_party/skia":
185     Var("chromium_git") + "/skia.git@" + Var("skia_revision"),
187   "src/third_party/ots":
188     (Var("googlecode_url") % "ots") + "/trunk@115",
190   "src/third_party/brotli/src":
191     Var("chromium_git") +
192     "/external/font-compression-reference.git@6cef49677dc4c650ef6e3f56041e0a41803afa8c",
194   "src/tools/page_cycler/acid3":
195     "/trunk/deps/page_cycler/acid3@171600",
197   "src/chrome/test/data/perf/canvas_bench":
198     "/trunk/deps/canvas_bench@122605",
200   "src/chrome/test/data/perf/frame_rate/content":
201     "/trunk/deps/frame_rate/content@93671",
203   "src/third_party/bidichecker":
204     (Var("googlecode_url") % "bidichecker") + "/trunk/lib@4",
206   "src/third_party/webgl/src":
207     Var("chromium_git") +
208     "/external/khronosgroup/webgl.git@e44dae1d413514e3a632838449fe317713b6f0af",
210   "src/third_party/swig/Lib":
211     "/trunk/deps/third_party/swig/Lib@" + Var("swig_revision"),
213   "src/third_party/webdriver/pylib":
214     (Var("googlecode_url") % "selenium") + "/trunk/py@18456",
216   "src/third_party/libvpx":
217     "/trunk/deps/third_party/libvpx@" +
218     Var("libvpx_revision"),
220   "src/third_party/ffmpeg":
221     Var("chromium_git") +
222     "/chromium/third_party/ffmpeg.git@98ca32e50f6e38447bc81705d0689ebceb6ac649",
224   "src/third_party/libjingle/source/talk":
225     (Var("googlecode_url") % "webrtc") + "/trunk/talk@" +
226     Var("webrtc_revision"),
228   "src/third_party/usrsctp/usrsctplib":
229     (Var("googlecode_url") % "sctp-refimpl") +
230     "/trunk/KERN/usrsctp/usrsctplib@8912",
232   "src/third_party/libsrtp":
233     "/trunk/deps/third_party/libsrtp@283418",
235   "src/third_party/speex":
236     "/trunk/deps/third_party/speex@272757",
238   "src/third_party/yasm/source/patched-yasm":
239     "/trunk/deps/third_party/yasm/patched-yasm@167605",
241   "src/third_party/libjpeg_turbo":
242     "/trunk/deps/third_party/libjpeg_turbo@290390",
244   "src/third_party/flac":
245     "/trunk/deps/third_party/flac@287124",
247   "src/third_party/pyftpdlib/src":
248     (Var("googlecode_url") % "pyftpdlib") + "/trunk@977",
250   "src/third_party/scons-2.0.1":
251     Var("nacl_trunk") + "/src/third_party/scons-2.0.1@" +
252         Var("nacl_tools_revision"),
254   "src/third_party/webrtc":
255     (Var("googlecode_url") % "webrtc") + "/trunk/webrtc@" + Var("webrtc_revision"),
257   "src/third_party/openmax_dl":
258     (Var("googlecode_url") % "webrtc") + "/deps/third_party/openmax@" + Var("openmax_dl_revision"),
260   "src/third_party/jsoncpp/source/include":
261     (Var("sourceforge_url") % {"repo": "jsoncpp"}) +
262         "/trunk/jsoncpp/include@" + Var("jsoncpp_revision"),
264   "src/third_party/jsoncpp/source/src/lib_json":
265     (Var("sourceforge_url") % {"repo": "jsoncpp"}) +
266         "/trunk/jsoncpp/src/lib_json@" + Var("jsoncpp_revision"),
268   "src/third_party/libyuv":
269     (Var("googlecode_url") % "libyuv") + "/trunk@1038",
271   "src/third_party/smhasher/src":
272     (Var("googlecode_url") % "smhasher") + "/trunk@152",
274   "src/third_party/libaddressinput/src":
275     (Var("googlecode_url") % "libaddressinput") + "/trunk@" +
276         Var("libaddressinput_revision"),
278   "src/third_party/libphonenumber/src/phonenumbers":
279     (Var("googlecode_url") % "libphonenumber") +
280         "/trunk/cpp/src/phonenumbers@" + Var("libphonenumber_revision"),
281   "src/third_party/libphonenumber/src/test":
282     (Var("googlecode_url") % "libphonenumber") + "/trunk/cpp/test@" +
283         Var("libphonenumber_revision"),
284   "src/third_party/libphonenumber/src/resources":
285     (Var("googlecode_url") % "libphonenumber") + "/trunk/resources@" +
286         Var("libphonenumber_revision"),
288   "src/tools/deps2git":
289     "/trunk/tools/deps2git@276439",
291   "src/third_party/webpagereplay":
292     Var("chromium_git") + "/external/web-page-replay.git@" +
293     "b62c02d3b64cf00a2f65a82cca0721aa42c3d6ad",
295   "src/third_party/pywebsocket/src":
296     (Var("googlecode_url") % "pywebsocket") + "/trunk/src@790",
298   "src/third_party/opus/src":
299     "/trunk/deps/third_party/opus@289085",
301   "src/media/cdm/ppapi/api":
302     "/trunk/deps/cdm@288172",
304   "src/third_party/mesa/src":
305     "/trunk/deps/third_party/mesa@265279",
307   "src/third_party/cld_2/src":
308     (Var("googlecode_url") % "cld2") + "/trunk@167",
310   "src/chrome/browser/resources/pdf/html_office":
311      Var("chromium_git") +
312          "/chromium/html-office-public.git@eeff97614f65e0578529490d44d412032c3d7359",
314   "src/third_party/libwebm/source":
315     Var("chromium_git") +
316       "/webm/libwebm.git@0d4cb404ea4195e5e21d04db2c955615535ce62e",
318   "src/third_party/openssl":
319     "/trunk/deps/third_party/openssl@" + Var("openssl_revision"),
321   "src/third_party/pdfium":
322     Var("pdfium_git") + "/pdfium.git@" + Var("pdfium_revision"),
324   "src/third_party/boringssl/src":
325     Var("boringssl_git") + "/boringssl.git@" + Var("boringssl_revision"),
329 deps_os = {
330   "win": {
331     "src/chrome/tools/test/reference_build/chrome_win":
332       "/trunk/deps/reference_builds/chrome_win@291530",
334     "src/third_party/cygwin":
335       "/trunk/deps/third_party/cygwin@231940",
337     "src/third_party/psyco_win32":
338       "/trunk/deps/third_party/psyco_win32@237949",
340     "src/third_party/bison":
341       "/trunk/deps/third_party/bison@147303",
343     "src/third_party/gperf":
344       "/trunk/deps/third_party/gperf@147304",
346     "src/third_party/perl":
347       "/trunk/deps/third_party/perl@147900",
349     "src/third_party/lighttpd":
350       "/trunk/deps/third_party/lighttpd@" + Var("lighttpd_revision"),
352     # Parses Windows PE/COFF executable format.
353     "src/third_party/pefile":
354       Var("chromium_git") + "/external/pefile.git@" +
355       "72c6ae42396cb913bcab63c15585dc3b5c3f92f1",
357     # NSS, for SSLClientSocketNSS.
358     "src/third_party/nss":
359       "/trunk/deps/third_party/nss@" + Var("nss_revision"),
361     "src/third_party/swig/win":
362       "/trunk/deps/third_party/swig/win@" + Var("swig_revision"),
364     # GNU binutils assembler for x86-32.
365     "src/third_party/gnu_binutils":
366       (Var("nacl_trunk") + "/deps/third_party/gnu_binutils@" +
367        Var("nacl_tools_revision")),
368     # GNU binutils assembler for x86-64.
369     "src/third_party/mingw-w64/mingw/bin":
370       (Var("nacl_trunk") + "/deps/third_party/mingw-w64/mingw/bin@" +
371        Var("nacl_tools_revision")),
373     # Dependencies used by libjpeg-turbo
374     "src/third_party/yasm/binaries":
375       "/trunk/deps/third_party/yasm/binaries@154708",
377     # Binaries for nacl sdk.
378     "src/third_party/nacl_sdk_binaries":
379       "/trunk/deps/third_party/nacl_sdk_binaries@111576",
380   },
381   "ios": {
382     "src/third_party/google_toolbox_for_mac/src":
383       (Var("googlecode_url") % "google-toolbox-for-mac") + "/trunk@" +
384       Var("google_toolbox_for_mac_revision"),
386     "src/third_party/nss":
387       "/trunk/deps/third_party/nss@" + Var("nss_revision"),
389     # class-dump utility to generate header files for undocumented SDKs
390     "src/testing/iossim/third_party/class-dump":
391       "/trunk/deps/third_party/class-dump@199203",
393     # Code that's not needed due to not building everything
394     "src/build/util/support": None,
395     "src/chrome/test/data/extensions/api_test/permissions/nacl_enabled/bin": None,
396     "src/chrome/test/data/perf/canvas_bench": None,
397     "src/chrome/test/data/perf/frame_rate/content": None,
398     "src/media/cdm/ppapi/api": None,
399     "src/native_client": None,
400     "src/native_client/src/third_party/ppapi": None,
401     "src/third_party/bidichecker": None,
402     "src/third_party/brotli/src": None,
403     "src/third_party/cld_2/src": None,
404     "src/third_party/ffmpeg": None,
405     "src/third_party/hunspell_dictionaries": None,
406     "src/third_party/hunspell": None,
407     "src/third_party/libc++/trunk": None,
408     "src/third_party/libc++abi/trunk": None,
409     "src/third_party/libexif/sources": None,
410     "src/third_party/libjpeg_turbo": None,
411     "src/third_party/libsrtp": None,
412     "src/third_party/mesa/src": None,
413     "src/third_party/opus/src": None,
414     "src/third_party/openmax_dl": None,
415     "src/third_party/ots": None,
416     "src/third_party/pymox/src": None,
417     "src/third_party/safe_browsing/testing": None,
418     "src/third_party/scons-2.0.1": None,
419     "src/third_party/sfntly/cpp/src": None,
420     "src/third_party/speex": None,
421     "src/third_party/swig/Lib": None,
422     "src/third_party/usrsctp/usrsctplib": None,
423     "src/third_party/v8-i18n": None,
424     "src/third_party/webdriver/pylib": None,
425     "src/third_party/webgl": None,
426     "src/third_party/webpagereplay": None,
427     "src/third_party/WebKit/LayoutTests/w3c/web-platform-tests": None,
428     "src/third_party/WebKit/LayoutTests/w3c/csswg-test": None,
429     "src/third_party/yasm/source/patched-yasm": None,
430     "src/tools/page_cycler/acid3": None,
431     "src/v8": None,
432   },
433   "mac": {
434     "src/chrome/tools/test/reference_build/chrome_mac":
435       "/trunk/deps/reference_builds/chrome_mac@291530",
437     "src/third_party/google_toolbox_for_mac/src":
438       (Var("googlecode_url") % "google-toolbox-for-mac") + "/trunk@" +
439       Var("google_toolbox_for_mac_revision"),
441     "src/third_party/pdfsqueeze":
442       (Var("googlecode_url") % "pdfsqueeze") + "/trunk@5",
444     "src/third_party/lighttpd":
445       "/trunk/deps/third_party/lighttpd@" + Var("lighttpd_revision"),
447     "src/third_party/swig/mac":
448       "/trunk/deps/third_party/swig/mac@" + Var("swig_revision"),
450     # NSS, for SSLClientSocketNSS.
451     "src/third_party/nss":
452       "/trunk/deps/third_party/nss@" + Var("nss_revision"),
454     "src/chrome/installer/mac/third_party/xz/xz":
455       "/trunk/deps/third_party/xz@233311",
456   },
457   "unix": {
458     # Linux, really.
459     "src/chrome/tools/test/reference_build/chrome_linux":
460       "/trunk/deps/reference_builds/chrome_linux64@291530",
462     "src/third_party/xdg-utils":
463       "/trunk/deps/third_party/xdg-utils@203785",
465     "src/third_party/swig/linux":
466       "/trunk/deps/third_party/swig/linux@" + Var("swig_revision"),
468     "src/third_party/lss":
469       ((Var("googlecode_url") % "linux-syscall-support") + "/trunk/lss@" +
470        Var("lss_revision")),
472     # For Linux and Chromium OS.
473     "src/third_party/cros_system_api":
474       Var("chromiumos_git") + "/platform/system_api.git" +
475       "@e59913eb5a1562e23256b0527fb709be967bedc9",
477     # Note that this is different from Android's freetype repo.
478     "src/third_party/freetype2/src":
479       Var("chromium_git") + "/chromium/src/third_party/freetype2.git" +
480       "@d699c2994ecc178c4ed05ac2086061b2034c2178",
482     # Build tools for Chrome OS.
483     "src/third_party/chromite":
484       Var("chromiumos_git") + "/chromite.git" +
485       "@1ae4638a4cd3313799f2d2598c39ff0e8941aef6",
487     # Dependency of chromite.git.
488     "src/third_party/pyelftools":
489       Var("chromiumos_git") + "/third_party/pyelftools.git" +
490       "@bdc1d380acd88d4bfaf47265008091483b0d614e",
492     "src/third_party/undoview":
493       "/trunk/deps/third_party/undoview@119694",
495     "src/third_party/liblouis/src":
496       Var("chromium_git") +
497       "/external/liblouis.git@3c2daee56250162e5a75830871601d74328d39f5",
499     # Used for embedded builds. CrOS & Linux use the system version.
500     "src/third_party/fontconfig/src":
501       Var("chromium_git") + "/external/fontconfig.git" +
502       "@f16c3118e25546c1b749f9823c51827a60aeb5c1",
503   },
504   "android": {
505     "src/third_party/android_tools":
506       Var("chromium_git") + "/android_tools.git" +
507       "@31869996507de16812bb53a3d0aaa15cd6194c16",
509     "src/third_party/aosp":
510       "/trunk/deps/third_party/aosp@148330",
512     "src/third_party/apache-mime4j":
513       "/trunk/deps/third_party/apache-mime4j@170888",
515     "src/third_party/findbugs":
516       "/trunk/deps/third_party/findbugs@245039",
518     "src/third_party/freetype":
519       Var("chromium_git") + "/chromium/src/third_party/freetype.git" +
520       "@a2b9955b49034a51dfbc8bf9f4e9d312149cecac",
522     "src/third_party/guava/src":
523       Var("chromium_git") + "/external/guava-libraries.git" +
524       "@c523556ab7d0f05afadebd20e7768d4c16af8771",
526    "src/third_party/elfutils/src":
527       Var("chromium_git") + "/external/elfutils.git" +
528       "@249673729a7e5dbd5de4f3760bdcaa3d23d154d7",
530     "src/third_party/httpcomponents-client":
531       "/trunk/deps/third_party/httpcomponents-client@170888",
533     "src/third_party/httpcomponents-core":
534       "/trunk/deps/third_party/httpcomponents-core@170888",
536     "src/third_party/jarjar":
537       "/trunk/deps/third_party/jarjar@170888",
539     "src/third_party/jsr-305/src":
540       (Var("googlecode_url") % "jsr-305") + "/trunk@51",
542     "src/third_party/lss":
543       ((Var("googlecode_url") % "linux-syscall-support") + "/trunk/lss@" +
544        Var("lss_revision")),
546     "src/third_party/eyesfree/src/android/java/src/com/googlecode/eyesfree/braille":
547       (Var("googlecode_url") % "eyes-free") + "/trunk/braille/client/src/com/googlecode/eyesfree/braille@797",
548   },
552 include_rules = [
553   # Everybody can use some things.
554   "+base",
555   "+build",
556   "+ipc",
558   # Everybody can use headers generated by tools/generate_library_loader.
559   "+library_loaders",
561   "+testing",
562   "+third_party/icu/source/common/unicode",
563   "+third_party/icu/source/i18n/unicode",
564   "+url",
568 # checkdeps.py shouldn't check include paths for files in these dirs:
569 skip_child_includes = [
570   "breakpad",
571   "delegate_execute",
572   "metro_driver",
573   "native_client_sdk",
574   "o3d",
575   "sdch",
576   "skia",
577   "testing",
578   "third_party",
579   "v8",
580   "win8",
584 hooks = [
585   {
586     # This clobbers when necessary (based on get_landmines.py). It must be the
587     # first hook so that other things that get/generate into the output
588     # directory will not subsequently be clobbered.
589     "name": "landmines",
590     "pattern": ".",
591     "action": [
592         "python",
593         "src/build/landmines.py",
594     ],
595   },
596   {
597     # This downloads binaries for Native Client's newlib toolchain.
598     # Done in lieu of building the toolchain from scratch as it can take
599     # anywhere from 30 minutes to 4 hours depending on platform to build.
600     "name": "nacltools",
601     "pattern": ".",
602     "action": [
603         "python", "src/build/download_nacl_toolchains.py",
604         "--exclude", "arm_trusted",
605     ],
606   },
607   {
608     # Downloads an ARM sysroot image to src/arm-sysroot. This image updates
609     # at about the same rate that the chrome build deps change.
610     # This script is a no-op except for linux users who have
611     # target_arch=arm in their GYP_DEFINES.
612     "name": "sysroot",
613     "pattern": ".",
614     "action": ["python", "src/build/linux/install-arm-sysroot.py",
615                "--linux-only"],
616   },
617   {
618     # Downloads the Debian Wheezy sysroot to chrome/installer/linux if needed.
619     # This sysroot updates at about the same rate that the chrome build deps
620     # change. This script is a no-op except for linux users who are doing
621     # official chrome builds.
622     "name": "sysroot",
623     "pattern": ".",
624     "action": [
625         "python",
626         "src/chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py",
627         "--linux-only",
628         "--arch=amd64"],
629   },
630   {
631     # Same as above, but for 32-bit Linux.
632     "name": "sysroot",
633     "pattern": ".",
634     "action": [
635         "python",
636         "src/chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py",
637         "--linux-only",
638         "--arch=i386"],
639   },
640   {
641     # Pull clang if on Mac or clang is requested via GYP_DEFINES.
642     "name": "clang",
643     "pattern": ".",
644     "action": ["python", "src/tools/clang/scripts/update.py", "--if-needed"],
645   },
646   {
647     # Update the Windows toolchain if necessary.
648     "name": "win_toolchain",
649     "pattern": ".",
650     "action": ["python", "src/build/vs_toolchain.py", "update"],
651   },
652   {
653     # Update LASTCHANGE. This is also run by export_tarball.py in
654     # src/tools/export_tarball - please keep them in sync.
655     "name": "lastchange",
656     "pattern": ".",
657     "action": ["python", "src/build/util/lastchange.py",
658                "-o", "src/build/util/LASTCHANGE"],
659   },
660   {
661     # Update LASTCHANGE.blink. This is also run by export_tarball.py in
662     # src/tools/export_tarball - please keep them in sync.
663     "name": "lastchange",
664     "pattern": ".",
665     "action": ["python", "src/build/util/lastchange.py",
666                "-s", "src/third_party/WebKit",
667                "-o", "src/build/util/LASTCHANGE.blink"],
668   },
669   # Pull GN binaries. This needs to be before running GYP below.
670   {
671     "name": "gn_win",
672     "pattern": ".",
673     "action": [ "download_from_google_storage",
674                 "--no_resume",
675                 "--platform=win32",
676                 "--no_auth",
677                 "--bucket", "chromium-gn",
678                 "-s", "src/buildtools/win/gn.exe.sha1",
679     ],
680   },
681   {
682     "name": "gn_mac",
683     "pattern": ".",
684     "action": [ "download_from_google_storage",
685                 "--no_resume",
686                 "--platform=darwin",
687                 "--no_auth",
688                 "--bucket", "chromium-gn",
689                 "-s", "src/buildtools/mac/gn.sha1",
690     ],
691   },
692   {
693     "name": "gn_linux32",
694     "pattern": ".",
695     "action": [ "download_from_google_storage",
696                 "--no_resume",
697                 "--platform=linux*",
698                 "--no_auth",
699                 "--bucket", "chromium-gn",
700                 "-s", "src/buildtools/linux32/gn.sha1",
701     ],
702   },
703   {
704     "name": "gn_linux64",
705     "pattern": ".",
706     "action": [ "download_from_google_storage",
707                 "--no_resume",
708                 "--platform=linux*",
709                 "--no_auth",
710                 "--bucket", "chromium-gn",
711                 "-s", "src/buildtools/linux64/gn.sha1",
712     ],
713   },
714   {
715     # Remove GN binaries from tools/gn/bin that aren't used anymore.
716     # TODO(brettw) remove after the end of July, 2014.
717     "name": "remove_old_gn_binaries",
718     "pattern": ".",
719     "action": ["python", "src/tools/gn/bin/rm_binaries.py"],
720   },
721   # Pull clang-format binaries using checked-in hashes.
722   {
723     "name": "clang_format_win",
724     "pattern": ".",
725     "action": [ "download_from_google_storage",
726                 "--no_resume",
727                 "--platform=win32",
728                 "--no_auth",
729                 "--bucket", "chromium-clang-format",
730                 "-s", "src/buildtools/win/clang-format.exe.sha1",
731     ],
732   },
733   {
734     "name": "clang_format_mac",
735     "pattern": ".",
736     "action": [ "download_from_google_storage",
737                 "--no_resume",
738                 "--platform=darwin",
739                 "--no_auth",
740                 "--bucket", "chromium-clang-format",
741                 "-s", "src/buildtools/mac/clang-format.sha1",
742     ],
743   },
744   {
745     "name": "clang_format_linux",
746     "pattern": ".",
747     "action": [ "download_from_google_storage",
748                 "--no_resume",
749                 "--platform=linux*",
750                 "--no_auth",
751                 "--bucket", "chromium-clang-format",
752                 "-s", "src/buildtools/linux64/clang-format.sha1",
753     ],
754   },
755   # Pull binutils for linux, enabled debug fission for faster linking /
756   # debugging when used with clang on Ubuntu Precise.
757   # https://code.google.com/p/chromium/issues/detail?id=352046
758   {
759     "name": "binutils",
760     "pattern": "src/third_party/binutils",
761     "action": [
762         "python",
763         "src/third_party/binutils/download.py",
764     ],
765   },
766   # Pull eu-strip binaries using checked-in hashes.
767   {
768     "name": "eu-strip",
769     "pattern": ".",
770     "action": [ "download_from_google_storage",
771                 "--no_resume",
772                 "--platform=linux*",
773                 "--no_auth",
774                 "--bucket", "chromium-eu-strip",
775                 "-s", "src/build/linux/bin/eu-strip.sha1",
776     ],
777   },
778   {
779     "name": "drmemory",
780     "pattern": ".",
781     "action": [ "download_from_google_storage",
782                 "--no_resume",
783                 "--platform=win32",
784                 "--no_auth",
785                 "--bucket", "chromium-drmemory",
786                 "-s", "src/third_party/drmemory/drmemory-windows-sfx.exe.sha1",
787               ],
788   },
789   # Pull the Syzygy binaries, used for optimization and instrumentation.
790   {
791     "name": "syzygy-binaries",
792     "pattern": ".",
793     "action": ["python",
794                "src/build/get_syzygy_binaries.py",
795                "--output-dir=src/third_party/syzygy/binaries",
796                "--revision=363bc02a09c380b6f5f397606cc0744d85d54a51",
797                "--overwrite",
798     ],
799   },
800   {
801     "name": "apache_win32",
802     "pattern": "\\.sha1",
803     "action": [ "download_from_google_storage",
804                 "--no_resume",
805                 "--platform=win32",
806                 "--directory",
807                 "--recursive",
808                 "--no_auth",
809                 "--num_threads=16",
810                 "--bucket", "chromium-apache-win32",
811                 "src/third_party/apache-win32",
812     ],
813   },
814   {
815     # A change to a .gyp, .gypi, or to GYP itself should run the generator.
816     "name": "gyp",
817     "pattern": ".",
818     "action": ["python", "src/build/gyp_chromium"],
819   },
820   {
821     # Verify committers' ~/.netc, gclient and git are properly configured for
822     # write access to the git repo. To be removed sometime after Chrome to git
823     # migration completes (let's say Sep 1 2014).
824     "name": "check_git_config",
825     "pattern": ".",
826     "action": [
827         "python",
828         "src/tools/check_git_config.py",
829         "--running-as-hook",
830     ],
831   },