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 https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_i
nstructions.md | 8 # See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_i
nstructions.md |
9 | 9 |
10 usage() { | 10 usage() { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 echo "Running as non-root user." | 91 echo "Running as non-root user." |
92 echo "You might have to enter your password one or more times for 'sudo'." | 92 echo "You might have to enter your password one or more times for 'sudo'." |
93 echo | 93 echo |
94 fi | 94 fi |
95 | 95 |
96 # Packages needed for chromeos only | 96 # Packages needed for chromeos only |
97 chromeos_dev_list="libbluetooth-dev libxkbcommon-dev realpath" | 97 chromeos_dev_list="libbluetooth-dev libxkbcommon-dev realpath" |
98 | 98 |
99 # Packages needed for development | 99 # Packages needed for development |
100 dev_list="bison cdbs curl dpkg-dev elfutils devscripts fakeroot | 100 dev_list="bison cdbs curl dpkg-dev elfutils devscripts fakeroot |
101 flex fonts-ipafont fonts-thai-tlwg g++ git-core git-svn gperf | 101 flex fonts-thai-tlwg g++ git-core git-svn gperf language-pack-da |
102 language-pack-da language-pack-fr language-pack-he | 102 language-pack-fr language-pack-he language-pack-zh-hant |
103 language-pack-zh-hant libasound2-dev libbrlapi-dev libav-tools | 103 libasound2-dev libbrlapi-dev libav-tools |
104 libbz2-dev libcairo2-dev libcap-dev libcups2-dev libcurl4-gnutls-dev | 104 libbz2-dev libcairo2-dev libcap-dev libcups2-dev libcurl4-gnutls-dev |
105 libdrm-dev libelf-dev libffi-dev libgconf2-dev libglib2.0-dev | 105 libdrm-dev libelf-dev libffi-dev libgconf2-dev libglib2.0-dev |
106 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev libkrb5-dev | 106 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev libkrb5-dev |
107 libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libpulse-dev | 107 libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libpulse-dev |
108 libsctp-dev libspeechd-dev libsqlite3-dev libssl-dev libudev-dev | 108 libsctp-dev libspeechd-dev libsqlite3-dev libssl-dev libudev-dev |
109 libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev openbox | 109 libwww-perl libxslt1-dev libxss-dev libxt-dev libxtst-dev openbox |
110 patch perl pkg-config python python-cherrypy3 python-crypto | 110 patch perl pkg-config python python-cherrypy3 python-crypto |
111 python-dev python-numpy python-opencv python-openssl python-psutil | 111 python-dev python-numpy python-opencv python-openssl python-psutil |
112 python-yaml rpm ruby subversion ttf-dejavu-core wdiff xcompmgr zip | 112 python-yaml rpm ruby subversion ttf-dejavu-core wdiff xcompmgr zip |
113 $chromeos_dev_list" | 113 $chromeos_dev_list" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 if package_exists fonts-indic; then | 250 if package_exists fonts-indic; then |
251 dev_list="${dev_list} fonts-indic" | 251 dev_list="${dev_list} fonts-indic" |
252 else | 252 else |
253 dev_list="${dev_list} ttf-indic-fonts" | 253 dev_list="${dev_list} ttf-indic-fonts" |
254 fi | 254 fi |
255 if package_exists php7.0-cgi; then | 255 if package_exists php7.0-cgi; then |
256 dev_list="${dev_list} php7.0-cgi libapache2-mod-php7.0" | 256 dev_list="${dev_list} php7.0-cgi libapache2-mod-php7.0" |
257 else | 257 else |
258 dev_list="${dev_list} php5-cgi libapache2-mod-php5" | 258 dev_list="${dev_list} php5-cgi libapache2-mod-php5" |
259 fi | 259 fi |
| 260 # Ubuntu 16.04 has this package deleted. |
| 261 if package_exists ttf-kochi-gothic; then |
| 262 dev_list="${dev_list} ttf-kochi-gothic" |
| 263 fi |
| 264 # Ubuntu 16.04 has this package deleted. |
| 265 if package_exists ttf-kochi-mincho; then |
| 266 dev_list="${dev_list} ttf-kochi-mincho" |
| 267 fi |
260 | 268 |
261 # Some packages are only needed if the distribution actually supports | 269 # Some packages are only needed if the distribution actually supports |
262 # installing them. | 270 # installing them. |
263 if package_exists appmenu-gtk; then | 271 if package_exists appmenu-gtk; then |
264 lib_list="$lib_list appmenu-gtk" | 272 lib_list="$lib_list appmenu-gtk" |
265 fi | 273 fi |
266 | 274 |
267 # When cross building for arm/Android on 64-bit systems the host binaries | 275 # When cross building for arm/Android on 64-bit systems the host binaries |
268 # that are part of v8 need to be compiled with -m32 which means | 276 # that are part of v8 need to be compiled with -m32 which means |
269 # that basic multilib support is needed. | 277 # that basic multilib support is needed. |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 # only contains libcrypto.so.1.0.0 and not the symlink needed for | 498 # only contains libcrypto.so.1.0.0 and not the symlink needed for |
491 # linking (libcrypto.so). | 499 # linking (libcrypto.so). |
492 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ | 500 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ |
493 /usr/lib/i386-linux-gnu/libcrypto.so | 501 /usr/lib/i386-linux-gnu/libcrypto.so |
494 | 502 |
495 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ | 503 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ |
496 /usr/lib/i386-linux-gnu/libssl.so | 504 /usr/lib/i386-linux-gnu/libssl.so |
497 else | 505 else |
498 echo "Skipping symbolic links for NaCl." | 506 echo "Skipping symbolic links for NaCl." |
499 fi | 507 fi |
OLD | NEW |