Index: third_party/instrumented_libraries/install-build-deps.sh |
diff --git a/third_party/instrumented_libraries/install-build-deps.sh b/third_party/instrumented_libraries/install-build-deps.sh |
new file mode 100755 |
index 0000000000000000000000000000000000000000..396cdb135bf962837403b8e8c0e806afeed2d1fd |
--- /dev/null |
+++ b/third_party/instrumented_libraries/install-build-deps.sh |
@@ -0,0 +1,18 @@ |
+#!/bin/bash -e |
+ |
+# Copyright (c) 2014 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. |
+ |
+# Script to install build dependencies of packages which we instrument. |
+ |
+grep \'\<\(\_sanitizer_type \ |
+ $(dirname ${BASH_SOURCE[0]})/instrumented_libraries.gyp | \ |
+ sed "s;\s*'<(_sanitizer_type)-\(.*\)',;\1;" | sort | uniq | \ |
+ xargs sudo apt-get build-dep -y |
+ |
+# Extra build deps for pulseaudio, which apt-get build-dep may fail to install |
+# for reasons which are not entirely clear. |
+sudo apt-get install libltdl3-dev libjson0-dev \ |
+ libsndfile1-dev libspeexdsp-dev \ |
+ chrpath -y # Chrpath is required by fix_rpaths.sh. |