Add azure-pipelines build and test definitions (#20840)
[platform/upstream/coreclr.git] / eng / install-native-dependencies.sh
1 #!/usr/bin/env sh
2
3 if [ "$1" = "Linux" ]; then
4     sudo apt update
5     if [ "$?" != "0" ]; then
6        exit 1;
7     fi
8     sudo apt install cmake llvm-3.9 clang-3.9 lldb-3.9 liblldb-3.9-dev libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev libcurl4-openssl-dev libssl-dev libkrb5-dev libnuma-dev
9     if [ "$?" != "0"]; then
10         exit 1;
11     fi
12 elif [ "$1" = "OSX" ]; then
13     brew install icu4c openssl
14     if [ "$?" != "0" ]; then
15         exit 1;
16     fi
17     brew link --force icu4c
18     if [ "$?" != "0"]; then
19         exit 1;
20     fi
21 else
22     echo "Must pass \"Linux\" or \"OSX\" as first argument."
23     exit 1
24 fi
25