Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: build/check-build-deps.py

Issue 2505413003: Add check_build_deps step to gclient runhooks (Closed)
Patch Set: Add python wrapper for check-build-deps Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | build/install-build-deps.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/check-build-deps.py
diff --git a/build/check-build-deps.py b/build/check-build-deps.py
new file mode 100755
index 0000000000000000000000000000000000000000..a06fc3529c7ddfd7498a218709894134861bd745
--- /dev/null
+++ b/build/check-build-deps.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+"""Checks that the host environment has the necessary packages installed to
+build chrome.
+"""
+
+import subprocess
+import sys
+
+if sys.platform.startswith('linux'):
+ if subprocess.call(['src/build/install-build-deps.sh', '--quick-check']):
+ print ("Missing build dependencies. "
+ "Try running 'build/install-build-deps.sh'")
+ exit(1)
« no previous file with comments | « DEPS ('k') | build/install-build-deps.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698