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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 # Packages needed for chromeos only | 59 # Packages needed for chromeos only |
60 chromeos_dev_list="libbluetooth-dev libpulse-dev" | 60 chromeos_dev_list="libbluetooth-dev libpulse-dev" |
61 | 61 |
62 # Packages need for development | 62 # Packages need for development |
63 dev_list="apache2.2-bin bison curl elfutils fakeroot flex g++ gperf | 63 dev_list="apache2.2-bin bison curl elfutils fakeroot flex g++ gperf |
64 language-pack-fr libapache2-mod-php5 libasound2-dev libbz2-dev | 64 language-pack-fr libapache2-mod-php5 libasound2-dev libbz2-dev |
65 libcairo2-dev libcups2-dev libcurl4-gnutls-dev libelf-dev | 65 libcairo2-dev libcups2-dev libcurl4-gnutls-dev libelf-dev |
66 libgconf2-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev | 66 libgconf2-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev |
67 libgnome-keyring-dev libgtk2.0-dev libwebkit-dev libkrb5-dev | 67 libgnome-keyring-dev libgtk2.0-dev libwebkit-dev libkrb5-dev |
68 libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libsctp-dev | 68 libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libsctp-dev |
69 libsqlite3-dev libssl-dev libudev-dev libwww-perl libxslt1-dev | 69 libspeechd-dev libsqlite3-dev libssl-dev libudev-dev libwww-perl |
70 libxss-dev libxt-dev libxtst-dev mesa-common-dev patch perl php5-cgi | 70 libxslt1-dev libxss-dev libxt-dev libxtst-dev mesa-common-dev patch |
71 pkg-config python python-cherrypy3 python-dev python-psutil rpm ruby | 71 perl php5-cgi pkg-config python python-cherrypy3 python-dev |
72 subversion ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic | 72 python-psutil rpm ruby subversion ttf-dejavu-core ttf-indic-fonts |
73 ttf-kochi-mincho ttf-thai-tlwg wdiff git-core $chromeos_dev_list" | 73 ttf-kochi-gothic ttf-kochi-mincho ttf-thai-tlwg wdiff git-core |
| 74 $chromeos_dev_list" |
74 | 75 |
75 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built | 76 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built |
76 # NaCl binaries. These are always needed, regardless of whether or not we want | 77 # NaCl binaries. These are always needed, regardless of whether or not we want |
77 # the full 32-bit "cross-compile" support (--lib32). | 78 # the full 32-bit "cross-compile" support (--lib32). |
78 if [ "$(uname -m)" = "x86_64" ]; then | 79 if [ "$(uname -m)" = "x86_64" ]; then |
79 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" | 80 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" |
80 fi | 81 fi |
81 | 82 |
82 # Run-time libraries required by chromeos only | 83 # Run-time libraries required by chromeos only |
83 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" | 84 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" |
84 | 85 |
85 # Full list of required run-time libraries | 86 # Full list of required run-time libraries |
86 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcups2 libexpat1 | 87 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcups2 libexpat1 |
87 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 | 88 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 |
88 libgtk2.0-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0 | 89 libgtk2.0-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0 |
89 libpng12-0 libstdc++6 libsqlite3-0 libudev0 libx11-6 libxau6 libxcb1 | 90 libpng12-0 libspeechd2 libstdc++6 libsqlite3-0 libudev0 libx11-6 |
90 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 | 91 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 |
91 libxi6 libxinerama1 libxrandr2 libxrender1 libxtst6 zlib1g | 92 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 |
92 $chromeos_lib_list" | 93 libxtst6 zlib1g $chromeos_lib_list" |
93 | 94 |
94 # Debugging symbols for all of the run-time libraries | 95 # Debugging symbols for all of the run-time libraries |
95 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg | 96 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg libfontconfig1-dbg |
96 libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg | 97 libglib2.0-0-dbg libgtk2.0-0-dbg libpango1.0-0-dbg libpcre3-dbg |
97 libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg | 98 libpixman-1-0-dbg libsqlite3-0-dbg libx11-6-dbg libxau6-dbg |
98 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg | 99 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg |
99 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg | 100 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg |
100 libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg" | 101 libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg" |
101 | 102 |
102 # arm cross toolchain packages needed to build chrome on arm | 103 # arm cross toolchain packages needed to build chrome on arm |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 sed -e 's/[.]so[.][0-9].*/.so/' | | 436 sed -e 's/[.]so[.][0-9].*/.so/' | |
436 sort -u); do | 437 sort -u); do |
437 [ "x${i##*/}" = "xld-linux.so" ] && continue | 438 [ "x${i##*/}" = "xld-linux.so" ] && continue |
438 [ -r "$i" ] && continue | 439 [ -r "$i" ] && continue |
439 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 440 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
440 sort -n | tail -n 1)" | 441 sort -n | tail -n 1)" |
441 [ -r "$i.$j" ] || continue | 442 [ -r "$i.$j" ] || continue |
442 sudo ln -s "${i##*/}.$j" "$i" | 443 sudo ln -s "${i##*/}.$j" "$i" |
443 done | 444 done |
444 fi | 445 fi |
OLD | NEW |