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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 libxtst6 zlib1g $chromeos_lib_list" | 112 libxtst6 zlib1g $chromeos_lib_list" |
113 | 113 |
114 # Debugging symbols for all of the run-time libraries | 114 # Debugging symbols for all of the run-time libraries |
115 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg | 115 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg |
116 libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg | 116 libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg |
117 libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg | 117 libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg |
118 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg | 118 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg |
119 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg | 119 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg |
120 libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg" | 120 libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg" |
121 | 121 |
122 # arm cross toolchain packages needed to build chrome on arm | 122 # arm cross toolchain packages needed to build chrome on armhf |
123 arm_list="libc6-armel-cross libc6-dev-armel-cross libgcc1-armel-cross | 123 arm_list="libc6-armhf-cross libc6-dev-armhf-cross libgcc1-armhf-cross |
124 libgomp1-armel-cross linux-libc-dev-armel-cross | 124 libgomp1-armhf-cross linux-libc-dev-armhf-cross |
125 libgcc1-dbg-armel-cross libgomp1-dbg-armel-cross | 125 libgcc1-dbg-armhf-cross libgomp1-dbg-armhf-cross |
126 binutils-arm-linux-gnueabi cpp-arm-linux-gnueabi | 126 binutils-arm-linux-gnueabihf cpp-arm-linux-gnueabihf |
127 gcc-arm-linux-gnueabi g++-arm-linux-gnueabi | 127 gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf |
128 libmudflap0-dbg-armel-cross" | 128 libmudflap0-dbg-armhf-cross" |
129 | |
130 | 129 |
131 # Some package names have changed over time | 130 # Some package names have changed over time |
132 if package_exists ttf-mscorefonts-installer; then | 131 if package_exists ttf-mscorefonts-installer; then |
133 dev_list="${dev_list} ttf-mscorefonts-installer" | 132 dev_list="${dev_list} ttf-mscorefonts-installer" |
134 else | 133 else |
135 dev_list="${dev_list} msttcorefonts" | 134 dev_list="${dev_list} msttcorefonts" |
136 fi | 135 fi |
137 if package_exists libnspr4-dbg; then | 136 if package_exists libnspr4-dbg; then |
138 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg" | 137 dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg" |
139 lib_list="${lib_list} libnspr4 libnss3" | 138 lib_list="${lib_list} libnspr4 libnss3" |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 sed -e 's/[.]so[.][0-9].*/.so/' | | 511 sed -e 's/[.]so[.][0-9].*/.so/' | |
513 sort -u); do | 512 sort -u); do |
514 [ "x${i##*/}" = "xld-linux.so" ] && continue | 513 [ "x${i##*/}" = "xld-linux.so" ] && continue |
515 [ -r "$i" ] && continue | 514 [ -r "$i" ] && continue |
516 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 515 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
517 sort -n | tail -n 1)" | 516 sort -n | tail -n 1)" |
518 [ -r "$i.$j" ] || continue | 517 [ -r "$i.$j" ] || continue |
519 sudo ln -s "${i##*/}.$j" "$i" | 518 sudo ln -s "${i##*/}.$j" "$i" |
520 done | 519 done |
521 fi | 520 fi |
OLD | NEW |