OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 # Packages need for development | 135 # Packages need for development |
136 dev_list="apache2 bison fakeroot flex g++ g++-multilib gperf libapache2-mod-php5 | 136 dev_list="apache2 bison fakeroot flex g++ g++-multilib gperf libapache2-mod-php5 |
137 libasound2-dev libbz2-dev libcairo2-dev libgconf2-dev libgl1-mesa-dev | 137 libasound2-dev libbz2-dev libcairo2-dev libgconf2-dev libgl1-mesa-dev |
138 libglu1-mesa-dev libglib2.0-dev libgtk2.0-dev libjpeg62-dev | 138 libglu1-mesa-dev libglib2.0-dev libgtk2.0-dev libjpeg62-dev |
139 libnspr4-dev libnss3-dev libpam0g-dev libsqlite3-dev libxslt1-dev | 139 libnspr4-dev libnss3-dev libpam0g-dev libsqlite3-dev libxslt1-dev |
140 libxss-dev lighttpd mesa-common-dev msttcorefonts patch perl php5-cgi | 140 libxss-dev lighttpd mesa-common-dev msttcorefonts patch perl php5-cgi |
141 pkg-config python python2.5-dev rpm subversion wdiff" | 141 pkg-config python python2.5-dev rpm subversion wdiff" |
142 | 142 |
143 # Full list of required run-time libraries | 143 # Full list of required run-time libraries |
144 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libexpat1 | 144 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libdbus-glib-1-dev libexpat1 |
145 libfontconfig1 libfreetype6 libglib2.0-0 libgtk2.0-0 libnspr4-0d | 145 libfontconfig1 libfreetype6 libglib2.0-0 libgtk2.0-0 libnspr4-0d |
146 libnss3-1d libpango1.0-0 libpcre3 libpixman-1-0 libpng12-0 libstdc++6 | 146 libnss3-1d libpango1.0-0 libpcre3 libpixman-1-0 libpng12-0 libstdc++6 |
147 libsqlite3-0 libx11-6 libxau6 libxcb1 libxcomposite1 | 147 libsqlite3-0 libx11-6 libxau6 libxcb1 libxcomposite1 |
148 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 | 148 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 |
149 libxinerama1 libxrandr2 libxrender1 zlib1g" | 149 libxinerama1 libxrandr2 libxrender1 zlib1g" |
150 | 150 |
151 # Debugging symbols for all of the run-time libraries | 151 # Debugging symbols for all of the run-time libraries |
152 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg | 152 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libdbus-glib-1-2-dbg |
153 libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg libnss3-1d-dbg | 153 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg |
154 libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg libx11-6-dbg | 154 libnss3-1d-dbg libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg |
155 libxau6-dbg libxcb1-dbg libxcomposite1-dbg | 155 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg |
156 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg | 156 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg |
157 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg | 157 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg |
158 libxrender1-dbg zlib1g-dbg" | 158 libxrender1-dbg zlib1g-dbg" |
159 | 159 |
160 # Standard 32bit compatibility libraries | 160 # Standard 32bit compatibility libraries |
161 cmp_list="ia32-libs lib32asound2-dev lib32readline-dev lib32stdc++6 lib32z1 | 161 cmp_list="ia32-libs lib32asound2-dev lib32readline-dev lib32stdc++6 lib32z1 |
162 lib32z1-dev libc6-dev-i386 libc6-i386" | 162 lib32z1-dev libc6-dev-i386 libc6-i386" |
163 | 163 |
164 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is | 164 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is |
165 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has | 165 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 sed -e 's/[.]so[.][0-9].*/.so/' | | 431 sed -e 's/[.]so[.][0-9].*/.so/' | |
432 sort -u); do | 432 sort -u); do |
433 [ "x${i##*/}" = "xld-linux.so" ] && continue | 433 [ "x${i##*/}" = "xld-linux.so" ] && continue |
434 [ -r "$i" ] && continue | 434 [ -r "$i" ] && continue |
435 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 435 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
436 sort -n | tail -n 1)" | 436 sort -n | tail -n 1)" |
437 [ -r "$i.$j" ] || continue | 437 [ -r "$i.$j" ] || continue |
438 sudo ln -s "${i##*/}.$j" "$i" | 438 sudo ln -s "${i##*/}.$j" "$i" |
439 done | 439 done |
440 fi | 440 fi |
OLD | NEW |