From 20045d38679c35f3b5886c665706dac4cbb003b4 Mon Sep 17 00:00:00 2001 From: Mark Mentovai Date: Thu, 5 Nov 2015 13:48:27 -0500 Subject: [PATCH] Add buildtools to make depot_tools-wrapped clang-format work Crashpad is mostly friendly with clang-format and has its own .clang-format file. Adding buildtools makes it possible to use the depot_tools clang-format wrapper. R=scottmg@chromium.org Review URL: https://codereview.chromium.org/1414903006 . --- DEPS | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/DEPS b/DEPS index 34313f8e..b5e38f1b 100644 --- a/DEPS +++ b/DEPS @@ -29,9 +29,40 @@ deps = { 'crashpad/third_party/mini_chromium/mini_chromium': Var('chromium_git') + '/chromium/mini_chromium@' + '8e12d3df2f1c0fcd84d649f4619323558db63a85', + 'buildtools': + Var('chromium_git') + '/chromium/buildtools.git@' + + 'c2f259809d5ede3275df5ea0842f0431990c4f98', } hooks = [ + { + 'name': 'clang_format_mac', + 'pattern': '.', + 'action': [ + 'download_from_google_storage', + '--platform=^darwin$', + '--no_resume', + '--no_auth', + '--bucket=chromium-clang-format', + '--output=buildtools/mac/clang-format', + '--sha1_file', + 'buildtools/mac/clang-format.sha1', + ], + }, + { + 'name': 'clang_format_win', + 'pattern': '.', + 'action': [ + 'download_from_google_storage', + '--platform=^win32$', + '--no_resume', + '--no_auth', + '--bucket=chromium-clang-format', + '--output=buildtools/win/clang-format.exe', + '--sha1_file', + 'buildtools/win/clang-format.exe.sha1', + ], + }, { 'name': 'gyp', 'pattern': '\.gypi?$',