forked from vsimon/webrtcbuilds-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck_deps.sh
executable file
·56 lines (51 loc) · 1.19 KB
/
check_deps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
set -eo pipefail
set -x
# This installs all dependencies for building.
# osx deps: homebrew
# lin deps: apt-get
# win deps: curl
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $DIR/environment.sh
if [ $UNAME = 'Darwin' ]; then
# for GNU version of cp: gcp and jq
which jq || brew install jq
which gsed || brew install gnu-sed
which gcp || brew install coreutils
elif [ $UNAME = 'Linux' ]; then
sudo apt-get update && \
sudo apt-get install -y --no-install-recommends \
curl \
wget \
git \
jq \
python \
python-pip \
openjdk-7-jdk \
g++ \
zip \
ruby \
libnss3-dev \
libasound2-dev \
libpulse-dev \
libjpeg-dev \
libxv-dev \
libgtk2.0-dev \
libexpat1-dev \
libxtst-dev \
libxss-dev \
libudev-dev \
libgconf2-dev \
libgnome-keyring-dev \
libpci-dev \
libgl1-mesa-dev \
lib32stdc++6 \
lib32z1
else
# put jq in python_bin in depot_tools because it is ignored by git
curl -L -o $DEPOT_TOOLS/python276_bin/jq.exe https://github.com/stedolan/jq/releases/download/jq-1.4/jq-win32.exe
fi
# for extensibility
if [ -f $DIR/check_deps.local ]; then
$DIR/check_deps.local
fi