OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Script to install everything needed to build chromium (well, ideally, anyway) | 7 # Script to install everything needed to build chromium (well, ideally, anyway) |
8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions | 8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions |
9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit | 9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 # Packages needed for chromeos only | 93 # Packages needed for chromeos only |
94 chromeos_dev_list="libbluetooth-dev" | 94 chromeos_dev_list="libbluetooth-dev" |
95 | 95 |
96 # Packages needed for development | 96 # Packages needed for development |
97 dev_list="apache2.2-bin bison curl dpkg-dev elfutils devscripts fakeroot flex | 97 dev_list="apache2.2-bin bison curl dpkg-dev elfutils devscripts fakeroot flex |
98 fonts-thai-tlwg g++ git-core gperf language-pack-da language-pack-fr | 98 fonts-thai-tlwg g++ git-core gperf language-pack-da language-pack-fr |
99 language-pack-he language-pack-zh-hant libapache2-mod-php5 | 99 language-pack-he language-pack-zh-hant libapache2-mod-php5 |
100 libasound2-dev libbrlapi-dev libbz2-dev libcairo2-dev libcap-dev | 100 libasound2-dev libbrlapi-dev libbz2-dev libcairo2-dev libcap-dev |
101 libcups2-dev libcurl4-gnutls-dev libdrm-dev libelf-dev libexif-dev | 101 libcups2-dev libcurl4-gnutls-dev libdrm-dev libelf-dev libexif-dev |
102 libgconf2-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev | 102 libgbm-dev libgconf2-dev libgl1-mesa-dev libglib2.0-dev |
103 libgnome-keyring-dev libgtk2.0-dev libkrb5-dev libnspr4-dev | 103 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev libkrb5-dev |
104 libnss3-dev libpam0g-dev libpci-dev libpulse-dev libsctp-dev | 104 libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libpulse-dev |
105 libspeechd-dev libsqlite3-dev libssl-dev libudev-dev libwww-perl | 105 libsctp-dev libspeechd-dev libsqlite3-dev libssl-dev libudev-dev |
106 libxslt1-dev libxss-dev libxt-dev libxtst-dev mesa-common-dev openbox | 106 libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev |
107 patch perl php5-cgi pkg-config python python-cherrypy3 python-dev | 107 mesa-common-dev openbox patch perl php5-cgi pkg-config python |
108 python-psutil rpm ruby subversion ttf-dejavu-core ttf-indic-fonts | 108 python-cherrypy3 python-dev python-psutil rpm ruby subversion |
109 ttf-kochi-gothic ttf-kochi-mincho wdiff xfonts-mathml zip | 109 ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic ttf-kochi-mincho |
110 $chromeos_dev_list" | 110 wdiff xfonts-mathml zip $chromeos_dev_list" |
111 | 111 |
112 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built | 112 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built |
113 # NaCl binaries. These are always needed, regardless of whether or not we want | 113 # NaCl binaries. These are always needed, regardless of whether or not we want |
114 # the full 32-bit "cross-compile" support (--lib32). | 114 # the full 32-bit "cross-compile" support (--lib32). |
115 if file /sbin/init | grep -q 'ELF 64-bit'; then | 115 if file /sbin/init | grep -q 'ELF 64-bit'; then |
116 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" | 116 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" |
117 fi | 117 fi |
118 | 118 |
119 # Run-time libraries required by chromeos only | 119 # Run-time libraries required by chromeos only |
120 chromeos_lib_list="libpulse0 libbz2-1.0" | 120 chromeos_lib_list="libpulse0 libbz2-1.0" |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 sed -e 's/[.]so[.][0-9].*/.so/' | | 576 sed -e 's/[.]so[.][0-9].*/.so/' | |
577 sort -u); do | 577 sort -u); do |
578 [ "x${i##*/}" = "xld-linux.so" ] && continue | 578 [ "x${i##*/}" = "xld-linux.so" ] && continue |
579 [ -r "$i" ] && continue | 579 [ -r "$i" ] && continue |
580 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 580 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
581 sort -n | tail -n 1)" | 581 sort -n | tail -n 1)" |
582 [ -r "$i.$j" ] || continue | 582 [ -r "$i.$j" ] || continue |
583 sudo ln -s "${i##*/}.$j" "$i" | 583 sudo ln -s "${i##*/}.$j" "$i" |
584 done | 584 done |
585 fi | 585 fi |
OLD | NEW |