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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 fi | 91 fi |
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 fakeroot flex g++ git-core | 97 dev_list="apache2.2-bin bison curl dpkg-dev elfutils fakeroot flex g++ git-core |
98 gperf language-pack-da language-pack-fr language-pack-he | 98 gperf language-pack-da language-pack-fr language-pack-he |
99 language-pack-zh-hant libapache2-mod-php5 libasound2-dev libbrlapi-dev | 99 language-pack-zh-hant libapache2-mod-php5 libasound2-dev libbrlapi-dev |
100 libbz2-dev libcairo2-dev libcap-dev libcups2-dev libcurl4-gnutls-dev | 100 libbz2-dev libcairo2-dev libcap-dev libcups2-dev libcurl4-gnutls-dev |
101 libdrm-dev libelf-dev libgconf2-dev libgl1-mesa-dev libglib2.0-dev | 101 libdrm-dev libelf-dev libexif-dev libgconf2-dev libgl1-mesa-dev |
102 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev libkrb5-dev | 102 libglib2.0-dev libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev |
103 libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libpulse-dev | 103 libkrb5-dev libnspr4-dev libnss3-dev libpam0g-dev libpci-dev |
104 libsctp-dev libspeechd-dev libsqlite3-dev libssl-dev libudev-dev | 104 libpulse-dev libsctp-dev libspeechd-dev libsqlite3-dev libssl-dev |
105 libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev | 105 libudev-dev libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev |
106 mesa-common-dev openbox patch perl php5-cgi pkg-config python | 106 mesa-common-dev openbox patch perl php5-cgi pkg-config python |
107 python-cherrypy3 python-dev python-psutil rpm ruby subversion | 107 python-cherrypy3 python-dev python-psutil rpm ruby subversion |
108 ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic ttf-kochi-mincho | 108 ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic ttf-kochi-mincho |
109 wdiff xfonts-mathml $chromeos_dev_list" | 109 wdiff xfonts-mathml $chromeos_dev_list" |
110 | 110 |
111 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built | 111 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built |
112 # NaCl binaries. These are always needed, regardless of whether or not we want | 112 # NaCl binaries. These are always needed, regardless of whether or not we want |
113 # the full 32-bit "cross-compile" support (--lib32). | 113 # the full 32-bit "cross-compile" support (--lib32). |
114 if file /sbin/init | grep -q 'ELF 64-bit'; then | 114 if file /sbin/init | grep -q 'ELF 64-bit'; then |
115 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" | 115 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" |
116 fi | 116 fi |
117 | 117 |
118 # Run-time libraries required by chromeos only | 118 # Run-time libraries required by chromeos only |
119 chromeos_lib_list="libpulse0 libbz2-1.0" | 119 chromeos_lib_list="libpulse0 libbz2-1.0" |
120 | 120 |
121 # Full list of required run-time libraries | 121 # Full list of required run-time libraries |
122 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcap2 libcups2 libexpat1 | 122 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcap2 libcups2 libexpat1 |
123 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 | 123 libexif12 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 |
124 libgtk2.0-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0 | 124 libgtk2.0-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0 |
125 libpng12-0 libspeechd2 libstdc++6 libsqlite3-0 libx11-6 | 125 libpng12-0 libspeechd2 libstdc++6 libsqlite3-0 libx11-6 |
126 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 | 126 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 |
127 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 | 127 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 |
128 libxtst6 zlib1g $chromeos_lib_list" | 128 libxtst6 zlib1g $chromeos_lib_list" |
129 | 129 |
130 # Debugging symbols for all of the run-time libraries | 130 # Debugging symbols for all of the run-time libraries |
131 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg | 131 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg |
132 libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg | 132 libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg |
133 libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg | 133 libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 sed -e 's/[.]so[.][0-9].*/.so/' | | 583 sed -e 's/[.]so[.][0-9].*/.so/' | |
584 sort -u); do | 584 sort -u); do |
585 [ "x${i##*/}" = "xld-linux.so" ] && continue | 585 [ "x${i##*/}" = "xld-linux.so" ] && continue |
586 [ -r "$i" ] && continue | 586 [ -r "$i" ] && continue |
587 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 587 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
588 sort -n | tail -n 1)" | 588 sort -n | tail -n 1)" |
589 [ -r "$i.$j" ] || continue | 589 [ -r "$i.$j" ] || continue |
590 sudo ln -s "${i##*/}.$j" "$i" | 590 sudo ln -s "${i##*/}.$j" "$i" |
591 done | 591 done |
592 fi | 592 fi |
OLD | NEW |