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

Unified Diff: third_party/instrumented_libraries/install-build-deps.sh

Issue 711283003: Instrumented libraries: rewrite install-build-deps.sh. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: todo Created 6 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 | « no previous file | third_party/instrumented_libraries/instrumented_libraries.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index d86db48c5309767e2a4f8741cce8122bd1c206e9..9d9e87423dd670647957c256a2e444c039a55f39 100755
--- a/third_party/instrumented_libraries/install-build-deps.sh
+++ b/third_party/instrumented_libraries/install-build-deps.sh
@@ -4,12 +4,74 @@
# 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.
+# 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
+# TODO(earthdok): find a way to pull the list from the build config.
+common_packages="\
+atk1.0 \
+dee \
+freetype \
+libappindicator1 \
+libasound2 \
+libcairo2 \
+libcap2 \
+libcups2 \
+libdbus-1-3 \
+libdbus-glib-1-2 \
+libdbusmenu \
+libdbusmenu-glib4 \
+libexpat1 \
+libffi6 \
+libfontconfig1 \
+libgconf-2-4 \
+libgcrypt11 \
+libgdk-pixbuf2.0-0 \
+libglib2.0-0 \
+libgnome-keyring0 \
+libgpg-error0 \
+libgtk2.0-0 \
+libnspr4 \
+libp11-kit0 \
+libpci3 \
+libpcre3 \
+libpixman-1-0 \
+libpng12-0 \
+libunity9 \
+libx11-6 \
+libxau6 \
+libxcb1 \
+libxcomposite1 \
+libxcursor1 \
+libxdamage1 \
+libxdmcp6 \
+libxext6 \
+libxfixes3 \
+libxi6 \
+libxinerama1 \
+libxrandr2 \
+libxrender1 \
+libxss1 \
+libxtst6 \
+nss \
+overlay-scrollbar \
+pango1.0 \
+pulseaudio \
+udev \
+zlib1g"
+
+precise_specific_packages="libtasn1-3"
+trusty_specific_packages="libtasn1-6"
+
+ubuntu_release=$(lsb_release -cs)
+
+if test "$ubuntu_release" = "precise" ; then
+ packages="$common_packages $precise_specific_packages"
+else
+ packages="$common_packages $trusty_specific_packages"
+fi
+
+echo $packages
+sudo apt-get build-dep -y $packages
# Extra build deps for pulseaudio, which apt-get build-dep may fail to install
# for reasons which are not entirely clear.
« no previous file with comments | « no previous file | third_party/instrumented_libraries/instrumented_libraries.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698