(Reland) Switch builds to clang by default for Linux and OS X.
[pdfium.git] / DEPS
diff --git a/DEPS b/DEPS
index 455150d..220f0c6 100644 (file)
--- a/DEPS
+++ b/DEPS
@@ -16,6 +16,9 @@ deps = {
   "testing/gtest":
      "https://chromium.googlesource.com/external/googletest.git@8245545b6dc9c4703e6496d1efd19e975ad2b038",
 
+  "tools/clang":
+    "https://chromium.googlesource.com/chromium/src/tools/clang",
+
   "v8":
     "https://chromium.googlesource.com/v8/v8.git@2607e2b06b0be40a4c3f762c1a666a389dc28a99",
 
@@ -76,4 +79,10 @@ hooks = [
                 '-s', 'pdfium/buildtools/linux64/clang-format.sha1',
     ],
   },
+  {
+    # Pull clang if needed or requested via GYP_DEFINES.
+    'name': 'clang',
+    'pattern': '.',
+    'action': ['python', 'pdfium/tools/clang/scripts/update.py', '--if-needed'],
+  },
 ]