Fixes for re-enabling more MSVC level 4 warnings: ppapi/ edition
[chromium-blink-merge.git] / DEPS
blob1027fd7283ba5dae4d72a660ba92535914865cca
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": "177730",
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": "13456",
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": "300",
44   "libphonenumber_revision": "621",
45   "libvpx_revision": "280676",
46   "lss_revision": "26",
47   "sfntly_revision": "239",
48   "lighttpd_revision": "33737",
49   "skia_revision": "874a62acef5ec2ecccdbb99ec4d86402a3341e6a",
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": "22291",
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": "6633",
59   "jsoncpp_revision": "248",
60   "nss_revision": "277057",
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": "f37f5121888fbfdb494650daa14ee872a0261c51",
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": "275836",
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": "787fc03f15a0c4440d023659f267175fa3979808",
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": "916ba1fc49098855f8ddd08edd41484d36d84e08",
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": "cb46ea1bca55b448a7a54db2086c6f736f05c35f",
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": "6483",
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": "8af663956519f7302284c0c36b413c0495986e14",
91 deps = {
92   "src/breakpad/src":
93     (Var("googlecode_url") % "google-breakpad") + "/trunk/src@1345",
95   "src/buildtools":
96     Var("chromium_git") + "/chromium/buildtools.git@" +
97      Var("buildtools_revision"),
99   "src/sdch/open-vcdiff":
100     (Var("googlecode_url") % "open-vcdiff") + "/trunk@42",
102   "src/testing/gtest":
103     (Var("googlecode_url") % "googletest") + "/trunk@643",
105   "src/testing/gmock":
106     (Var("googlecode_url") % "googlemock") + "/trunk@410",
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("googlecode_url") % "trace-viewer") + "/trunk@1308",
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@6bed4516fe8522d65512c76ef02e4f0ae8234395",
124   "src/third_party/WebKit/LayoutTests/w3c/csswg-test":
125     Var("chromium_git") +
126     "/external/w3c/csswg-test.git@bacbb4a8dca702cd86646761fde96793db13d4f1",
128   "src/third_party/icu":
129     "/trunk/deps/third_party/icu46@262949",
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@278973",
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@331",
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@170",
162   "src/tools/gyp":
163     (Var("googlecode_url") % "gyp") + "/trunk@1944",
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@7c8cb656a753b6237e50c546c31ad826373abf04",
210   "src/third_party/swig/Lib":
211     "/trunk/deps/third_party/swig/Lib@" + Var("swig_revision"),
213   # Make sure you update the two functional.DEPS and webdriver.DEPS too.
214   "src/third_party/webdriver/pylib":
215     (Var("googlecode_url") % "selenium") + "/trunk/py@18337",
217   "src/third_party/libvpx":
218     "/trunk/deps/third_party/libvpx@" +
219     Var("libvpx_revision"),
221   "src/third_party/ffmpeg":
222     Var("chromium_git") +
223     "/chromium/third_party/ffmpeg.git@f620cda6d1661f1b2f3214d17b9a254f5c89225f",
225   "src/third_party/libjingle/source/talk":
226     (Var("googlecode_url") % "webrtc") + "/trunk/talk@" +
227     Var("webrtc_revision"),
229   "src/third_party/usrsctp/usrsctplib":
230     (Var("googlecode_url") % "sctp-refimpl") +
231     "/trunk/KERN/usrsctp/usrsctplib@8875",
233   "src/third_party/libsrtp":
234     "/trunk/deps/third_party/libsrtp@261337",
236   "src/third_party/speex":
237     "/trunk/deps/third_party/speex@272757",
239   "src/third_party/yasm/source/patched-yasm":
240     "/trunk/deps/third_party/yasm/patched-yasm@167605",
242   "src/third_party/libjpeg_turbo":
243     "/trunk/deps/third_party/libjpeg_turbo@272637",
245   "src/third_party/flac":
246     "/trunk/deps/third_party/flac@222897",
248   "src/third_party/pyftpdlib/src":
249     (Var("googlecode_url") % "pyftpdlib") + "/trunk@977",
251   "src/third_party/scons-2.0.1":
252     Var("nacl_trunk") + "/src/third_party/scons-2.0.1@" +
253         Var("nacl_tools_revision"),
255   "src/third_party/webrtc":
256     (Var("googlecode_url") % "webrtc") + "/trunk/webrtc@" + Var("webrtc_revision"),
258   "src/third_party/openmax_dl":
259     (Var("googlecode_url") % "webrtc") + "/deps/third_party/openmax@" + Var("openmax_dl_revision"),
261   "src/third_party/jsoncpp/source/include":
262     (Var("sourceforge_url") % {"repo": "jsoncpp"}) +
263         "/trunk/jsoncpp/include@" + Var("jsoncpp_revision"),
265   "src/third_party/jsoncpp/source/src/lib_json":
266     (Var("sourceforge_url") % {"repo": "jsoncpp"}) +
267         "/trunk/jsoncpp/src/lib_json@" + Var("jsoncpp_revision"),
269   "src/third_party/libyuv":
270     (Var("googlecode_url") % "libyuv") + "/trunk@1028",
272   "src/third_party/smhasher/src":
273     (Var("googlecode_url") % "smhasher") + "/trunk@152",
275   "src/third_party/libaddressinput/src/cpp":
276     (Var("googlecode_url") % "libaddressinput") + "/trunk/cpp@" +
277         Var("libaddressinput_revision"),
278   "src/third_party/libaddressinput/src/testdata":
279     (Var("googlecode_url") % "libaddressinput") + "/trunk/testdata@" +
280         Var("libaddressinput_revision"),
282   "src/third_party/libphonenumber/src/phonenumbers":
283     (Var("googlecode_url") % "libphonenumber") +
284         "/trunk/cpp/src/phonenumbers@" + Var("libphonenumber_revision"),
285   "src/third_party/libphonenumber/src/test":
286     (Var("googlecode_url") % "libphonenumber") + "/trunk/cpp/test@" +
287         Var("libphonenumber_revision"),
288   "src/third_party/libphonenumber/src/resources":
289     (Var("googlecode_url") % "libphonenumber") + "/trunk/resources@" +
290         Var("libphonenumber_revision"),
292   "src/tools/deps2git":
293     "/trunk/tools/deps2git@276439",
295   "src/third_party/webpagereplay":
296     Var("chromium_git") + "/external/web-page-replay.git@" +
297     "b62c02d3b64cf00a2f65a82cca0721aa42c3d6ad",
299   "src/third_party/pywebsocket/src":
300     (Var("googlecode_url") % "pywebsocket") + "/trunk/src@790",
302   "src/third_party/opus/src":
303     "/trunk/deps/third_party/opus@256783",
305   "src/media/cdm/ppapi/api":
306     "/trunk/deps/cdm@273356",
308   "src/third_party/mesa/src":
309     "/trunk/deps/third_party/mesa@265279",
311   "src/third_party/cld_2/src":
312     (Var("googlecode_url") % "cld2") + "/trunk@161",
314   "src/chrome/browser/resources/pdf/html_office":
315      Var("chromium_git") +
316          "/chromium/html-office-public.git@eeff97614f65e0578529490d44d412032c3d7359",
318   "src/third_party/libwebm/source":
319     Var("chromium_git") +
320       "/webm/libwebm.git@8be63972fdd7ae8c041778f8ba674ade903395c9",
322   "src/third_party/openssl":
323     "/trunk/deps/third_party/openssl@" + Var("openssl_revision"),
325   "src/third_party/pdfium":
326     Var("pdfium_git") + "/pdfium.git@" + Var("pdfium_revision"),
328   "src/third_party/boringssl/src":
329     Var("boringssl_git") + "/boringssl.git@" + Var("boringssl_revision"),
333 deps_os = {
334   "win": {
335     "src/chrome/tools/test/reference_build/chrome_win":
336       "/trunk/deps/reference_builds/chrome_win@273882",
338     "src/third_party/cygwin":
339       "/trunk/deps/third_party/cygwin@231940",
341     "src/third_party/psyco_win32":
342       "/trunk/deps/third_party/psyco_win32@237949",
344     "src/third_party/bison":
345       "/trunk/deps/third_party/bison@147303",
347     "src/third_party/gperf":
348       "/trunk/deps/third_party/gperf@147304",
350     "src/third_party/perl":
351       "/trunk/deps/third_party/perl@147900",
353     "src/third_party/lighttpd":
354       "/trunk/deps/third_party/lighttpd@" + Var("lighttpd_revision"),
356     # Parses Windows PE/COFF executable format.
357     "src/third_party/pefile":
358       Var("chromium_git") + '/external/pefile.git@' +
359       '72c6ae42396cb913bcab63c15585dc3b5c3f92f1',
361     # NSS, for SSLClientSocketNSS.
362     "src/third_party/nss":
363       "/trunk/deps/third_party/nss@" + Var("nss_revision"),
365     "src/third_party/swig/win":
366       "/trunk/deps/third_party/swig/win@" + Var("swig_revision"),
368     # GNU binutils assembler for x86-32.
369     "src/third_party/gnu_binutils":
370       (Var("nacl_trunk") + "/deps/third_party/gnu_binutils@" +
371        Var("nacl_tools_revision")),
372     # GNU binutils assembler for x86-64.
373     "src/third_party/mingw-w64/mingw/bin":
374       (Var("nacl_trunk") + "/deps/third_party/mingw-w64/mingw/bin@" +
375        Var("nacl_tools_revision")),
377     # Dependencies used by libjpeg-turbo
378     "src/third_party/yasm/binaries":
379       "/trunk/deps/third_party/yasm/binaries@154708",
381     # Binaries for nacl sdk.
382     "src/third_party/nacl_sdk_binaries":
383       "/trunk/deps/third_party/nacl_sdk_binaries@111576",
384   },
385   "ios": {
386     "src/third_party/google_toolbox_for_mac/src":
387       (Var("googlecode_url") % "google-toolbox-for-mac") + "/trunk@" +
388       Var("google_toolbox_for_mac_revision"),
390     "src/third_party/nss":
391       "/trunk/deps/third_party/nss@" + Var("nss_revision"),
393     # class-dump utility to generate header files for undocumented SDKs
394     "src/testing/iossim/third_party/class-dump":
395       "/trunk/deps/third_party/class-dump@199203",
397     # Code that's not needed due to not building everything
398     "src/build/util/support": None,
399     "src/chrome/test/data/extensions/api_test/permissions/nacl_enabled/bin": None,
400     "src/chrome/test/data/perf/canvas_bench": None,
401     "src/chrome/test/data/perf/frame_rate/content": None,
402     "src/media/cdm/ppapi/api": None,
403     "src/native_client": None,
404     "src/native_client/src/third_party/ppapi": None,
405     "src/third_party/angle": None,
406     "src/third_party/bidichecker": None,
407     "src/third_party/brotli/src": None,
408     "src/third_party/cld_2/src": None,
409     "src/third_party/ffmpeg": None,
410     "src/third_party/hunspell_dictionaries": None,
411     "src/third_party/hunspell": None,
412     "src/third_party/libc++/trunk": None,
413     "src/third_party/libc++abi/trunk": None,
414     "src/third_party/libexif/sources": None,
415     "src/third_party/libjpeg_turbo": None,
416     "src/third_party/libsrtp": None,
417     "src/third_party/libvpx": None,
418     "src/third_party/libyuv": None,
419     "src/third_party/mesa/src": None,
420     "src/third_party/opus/src": None,
421     "src/third_party/openmax_dl": None,
422     "src/third_party/ots": None,
423     "src/third_party/pymox/src": None,
424     "src/third_party/safe_browsing/testing": None,
425     "src/third_party/scons-2.0.1": None,
426     "src/third_party/sfntly/cpp/src": None,
427     "src/third_party/speex": None,
428     "src/third_party/swig/Lib": None,
429     "src/third_party/usrsctp/usrsctplib": None,
430     "src/third_party/v8-i18n": None,
431     "src/third_party/webdriver/pylib": None,
432     "src/third_party/webgl": None,
433     "src/third_party/webpagereplay": None,
434     "src/third_party/webrtc": None,
435     "src/third_party/WebKit/LayoutTests/w3c/web-platform-tests": None,
436     "src/third_party/WebKit/LayoutTests/w3c/csswg-test": None,
437     "src/third_party/yasm/source/patched-yasm": None,
438     "src/tools/page_cycler/acid3": None,
439     "src/v8": None,
440   },
441   "mac": {
442     "src/chrome/tools/test/reference_build/chrome_mac":
443       "/trunk/deps/reference_builds/chrome_mac@273882",
445     "src/third_party/google_toolbox_for_mac/src":
446       (Var("googlecode_url") % "google-toolbox-for-mac") + "/trunk@" +
447       Var("google_toolbox_for_mac_revision"),
449     "src/third_party/pdfsqueeze":
450       (Var("googlecode_url") % "pdfsqueeze") + "/trunk@5",
452     "src/third_party/lighttpd":
453       "/trunk/deps/third_party/lighttpd@" + Var("lighttpd_revision"),
455     "src/third_party/swig/mac":
456       "/trunk/deps/third_party/swig/mac@" + Var("swig_revision"),
458     # NSS, for SSLClientSocketNSS.
459     "src/third_party/nss":
460       "/trunk/deps/third_party/nss@" + Var("nss_revision"),
462     "src/chrome/installer/mac/third_party/xz/xz":
463       "/trunk/deps/third_party/xz@233311",
464   },
465   "unix": {
466     # Linux, really.
467     "src/chrome/tools/test/reference_build/chrome_linux":
468       "/trunk/deps/reference_builds/chrome_linux64@273882",
470     "src/third_party/xdg-utils":
471       "/trunk/deps/third_party/xdg-utils@203785",
473     "src/third_party/swig/linux":
474       "/trunk/deps/third_party/swig/linux@" + Var("swig_revision"),
476     "src/third_party/lss":
477       ((Var("googlecode_url") % "linux-syscall-support") + "/trunk/lss@" +
478        Var("lss_revision")),
480     # For Linux and Chromium OS.
481     "src/third_party/cros_system_api":
482       Var("chromiumos_git") + "/platform/system_api.git" +
483       "@520b666e3e1690993de0e86d02d47fe90ea48bbc",
485     # Note that this is different from Android's freetype repo.
486     "src/third_party/freetype2/src":
487       Var("chromium_git") + "/chromium/src/third_party/freetype2.git" +
488       "@d699c2994ecc178c4ed05ac2086061b2034c2178",
490     # Build tools for targeting ChromeOS.
491     "src/third_party/chromite":
492       Var("chromiumos_git") + "/chromite.git" +
493       "@df22fd72b22d1905af6e69d23ec373b69c9c75f6",
495     # Dependency of chromite.git.
496     "src/third_party/pyelftools":
497       Var("chromiumos_git") + "/third_party/pyelftools.git" +
498       "@bdc1d380acd88d4bfaf47265008091483b0d614e",
500     "src/third_party/undoview":
501       "/trunk/deps/third_party/undoview@119694",
503     "src/third_party/liblouis/src":
504       Var("chromium_git") +
505       "/external/liblouis.git@3c2daee56250162e5a75830871601d74328d39f5",
507     # Used for embedded builds. CrOS & Linux use the system version.
508     "src/third_party/fontconfig/src":
509       Var("chromium_git") + "/external/fontconfig.git" +
510       "@f16c3118e25546c1b749f9823c51827a60aeb5c1",
511   },
512   "android": {
513     "src/third_party/android_tools":
514       Var("chromium_git") + "/android_tools.git" +
515       "@7e1a9d2fadc6d5aba62b235ffa9a15f3b4be06cb",
517     "src/third_party/aosp":
518       "/trunk/deps/third_party/aosp@148330",
520     "src/third_party/apache-mime4j":
521       "/trunk/deps/third_party/apache-mime4j@170888",
523     "src/third_party/findbugs":
524       "/trunk/deps/third_party/findbugs@245039",
526     "src/third_party/freetype":
527       Var("chromium_git") + "/chromium/src/third_party/freetype.git" +
528       "@a2b9955b49034a51dfbc8bf9f4e9d312149cecac",
530     "src/third_party/guava/src":
531       Var("chromium_git") + "/external/guava-libraries.git" +
532       "@c523556ab7d0f05afadebd20e7768d4c16af8771",
534    "src/third_party/elfutils/src":
535       Var("chromium_git") + "/external/elfutils.git" +
536       "@249673729a7e5dbd5de4f3760bdcaa3d23d154d7",
538     "src/third_party/httpcomponents-client":
539       "/trunk/deps/third_party/httpcomponents-client@170888",
541     "src/third_party/httpcomponents-core":
542       "/trunk/deps/third_party/httpcomponents-core@170888",
544     "src/third_party/jarjar":
545       "/trunk/deps/third_party/jarjar@170888",
547     "src/third_party/jsr-305/src":
548       (Var("googlecode_url") % "jsr-305") + "/trunk@51",
550     "src/third_party/lss":
551       ((Var("googlecode_url") % "linux-syscall-support") + "/trunk/lss@" +
552        Var("lss_revision")),
554     "src/third_party/eyesfree/src/android/java/src/com/googlecode/eyesfree/braille":
555       (Var("googlecode_url") % "eyes-free") + "/trunk/braille/client/src/com/googlecode/eyesfree/braille@797",
556   },
560 include_rules = [
561   # Everybody can use some things.
562   "+base",
563   "+build",
564   "+ipc",
566   # Everybody can use headers generated by tools/generate_library_loader.
567   "+library_loaders",
569   "+testing",
570   "+third_party/icu/source/common/unicode",
571   "+third_party/icu/source/i18n/unicode",
572   "+url",
576 # checkdeps.py shouldn't check include paths for files in these dirs:
577 skip_child_includes = [
578   "breakpad",
579   "delegate_execute",
580   "metro_driver",
581   "native_client_sdk",
582   "o3d",
583   "sdch",
584   "skia",
585   "testing",
586   "third_party",
587   "v8",
588   "win8",
592 hooks = [
593   {
594     # This downloads binaries for Native Client's newlib toolchain.
595     # Done in lieu of building the toolchain from scratch as it can take
596     # anywhere from 30 minutes to 4 hours depending on platform to build.
597     "name": "nacltools",
598     "pattern": ".",
599     "action": [
600         "python", "src/build/download_nacl_toolchains.py",
601         "--exclude", "arm_trusted",
602     ],
603   },
604   {
605     # Downloads an ARM sysroot image to src/arm-sysroot. This image updates
606     # at about the same rate that the chrome build deps change.
607     # This script is a no-op except for linux users who have
608     # target_arch=arm in their GYP_DEFINES.
609     "name": "sysroot",
610     "pattern": ".",
611     "action": ["python", "src/build/linux/install-arm-sysroot.py",
612                "--linux-only"],
613   },
614   {
615     # Downloads the Debian Wheezy sysroot to chrome/installer/linux if needed.
616     # This sysroot updates at about the same rate that the chrome build deps
617     # change. This script is a no-op except for linux users who are doing
618     # official chrome builds.
619     "name": "sysroot",
620     "pattern": ".",
621     "action": [
622         "python",
623         "src/chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py",
624         "--linux-only",
625         "--arch=amd64"],
626   },
627   {
628     # Same as above, but for 32-bit Linux.
629     "name": "sysroot",
630     "pattern": ".",
631     "action": [
632         "python",
633         "src/chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py",
634         "--linux-only",
635         "--arch=i386"],
636   },
637   {
638     # Pull clang if on Mac or clang is requested via GYP_DEFINES.
639     "name": "clang",
640     "pattern": ".",
641     "action": ["python", "src/tools/clang/scripts/update.py", "--if-needed"],
642   },
643   {
644     # Update the Windows toolchain if necessary.
645     "name": "win_toolchain",
646     "pattern": ".",
647     "action": ["python", "src/build/vs_toolchain.py", "update"],
648   },
649   {
650     # Update LASTCHANGE. This is also run by export_tarball.py in
651     # src/tools/export_tarball - please keep them in sync.
652     "name": "lastchange",
653     "pattern": ".",
654     "action": ["python", "src/build/util/lastchange.py",
655                "-o", "src/build/util/LASTCHANGE"],
656   },
657   {
658     # Update LASTCHANGE.blink. This is also run by export_tarball.py in
659     # src/tools/export_tarball - please keep them in sync.
660     "name": "lastchange",
661     "pattern": ".",
662     "action": ["python", "src/build/util/lastchange.py",
663                "-s", "src/third_party/WebKit",
664                "-o", "src/build/util/LASTCHANGE.blink"],
665   },
666   # Pull GN binaries. This needs to be before running GYP below.
667   {
668     "name": "gn_win",
669     "pattern": ".",
670     "action": [ "download_from_google_storage",
671                 "--no_resume",
672                 "--platform=win32",
673                 "--no_auth",
674                 "--bucket", "chromium-gn",
675                 "-s", "src/buildtools/win/gn.exe.sha1",
676     ],
677   },
678   {
679     "name": "gn_mac",
680     "pattern": ".",
681     "action": [ "download_from_google_storage",
682                 "--no_resume",
683                 "--platform=darwin",
684                 "--no_auth",
685                 "--bucket", "chromium-gn",
686                 "-s", "src/buildtools/mac/gn.sha1",
687     ],
688   },
689   {
690     "name": "gn_linux32",
691     "pattern": ".",
692     "action": [ "download_from_google_storage",
693                 "--no_resume",
694                 "--platform=linux*",
695                 "--no_auth",
696                 "--bucket", "chromium-gn",
697                 "-s", "src/buildtools/linux32/gn.sha1",
698     ],
699   },
700   {
701     "name": "gn_linux64",
702     "pattern": ".",
703     "action": [ "download_from_google_storage",
704                 "--no_resume",
705                 "--platform=linux*",
706                 "--no_auth",
707                 "--bucket", "chromium-gn",
708                 "-s", "src/buildtools/linux64/gn.sha1",
709     ],
710   },
711   {
712     # Remove GN binaries from tools/gn/bin that aren't used anymore.
713     # TODO(brettw) remove after the end of July, 2014.
714     "name": "remove_old_gn_binaries",
715     "pattern": ".",
716     "action": ["python", "src/tools/gn/bin/rm_binaries.py"],
717   },
718   # Pull clang-format binaries using checked-in hashes.
719   {
720     "name": "clang_format_win",
721     "pattern": ".",
722     "action": [ "download_from_google_storage",
723                 "--no_resume",
724                 "--platform=win32",
725                 "--no_auth",
726                 "--bucket", "chromium-clang-format",
727                 "-s", "src/buildtools/win/clang-format.exe.sha1",
728     ],
729   },
730   {
731     "name": "clang_format_mac",
732     "pattern": ".",
733     "action": [ "download_from_google_storage",
734                 "--no_resume",
735                 "--platform=darwin",
736                 "--no_auth",
737                 "--bucket", "chromium-clang-format",
738                 "-s", "src/buildtools/mac/clang-format.sha1",
739     ],
740   },
741   {
742     "name": "clang_format_linux",
743     "pattern": ".",
744     "action": [ "download_from_google_storage",
745                 "--no_resume",
746                 "--platform=linux*",
747                 "--no_auth",
748                 "--bucket", "chromium-clang-format",
749                 "-s", "src/buildtools/linux64/clang-format.sha1",
750     ],
751   },
752   {
753     # Remove clang-format binaries from third_party/clang_format/bin that
754     # aren't used anymore.
755     # TODO(jochen) remove this and the .gitignore entry after the end of July,
756     # 2014.
757     "name": "remove_old_clang_format_binaries",
758     "pattern": ".",
759     "action": ["python", "src/third_party/clang_format/bin/rm_binaries.py"],
760   },
761   # Pull binutils for linux, enabled debug fission for faster linking /
762   # debugging when used with clang on Ubuntu Precise.
763   # https://code.google.com/p/chromium/issues/detail?id=352046
764   {
765     "name": "binutils",
766     "pattern": "src/third_party/binutils",
767     "action": [
768         "python",
769         "src/third_party/binutils/download.py",
770     ],
771   },
772   # Pull eu-strip binaries using checked-in hashes.
773   {
774     "name": "eu-strip",
775     "pattern": ".",
776     "action": [ "download_from_google_storage",
777                 "--no_resume",
778                 "--platform=linux*",
779                 "--no_auth",
780                 "--bucket", "chromium-eu-strip",
781                 "-s", "src/build/linux/bin/eu-strip.sha1",
782     ],
783   },
784   {
785     "name": "drmemory",
786     "pattern": ".",
787     "action": [ "download_from_google_storage",
788                 "--no_resume",
789                 "--platform=win32",
790                 "--no_auth",
791                 "--bucket", "chromium-drmemory",
792                 "-s", "src/third_party/drmemory/drmemory-windows-sfx.exe.sha1",
793               ],
794   },
795   # Pull the Syzygy binaries, used for optimization and instrumentation.
796   {
797     "name": "syzygy-binaries",
798     "pattern": ".",
799     "action": ["python",
800                "src/build/get_syzygy_binaries.py",
801                "--output-dir=src/third_party/syzygy/binaries",
802                "--revision=8f3646e5c1d3141a93a14fed6a92f916c20fe135",
803                "--overwrite",
804     ],
805   },
806   {
807     "name": "apache_win32",
808     "pattern": "\\.sha1",
809     "action": [ "download_from_google_storage",
810                 "--no_resume",
811                 "--platform=win32",
812                 "--directory",
813                 "--recursive",
814                 "--no_auth",
815                 "--num_threads=16",
816                 "--bucket", "chromium-apache-win32",
817                 "src/third_party/apache-win32",
818     ],
819   },
820   {
821     # A change to a .gyp, .gypi, or to GYP itself should run the generator.
822     "name": "gyp",
823     "pattern": ".",
824     "action": ["python", "src/build/gyp_chromium"],
825   },