mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-07 06:31:28 +03:00
source code
This commit is contained in:
39
libs/systray-rs/ci/before_install.sh
Normal file
39
libs/systray-rs/ci/before_install.sh
Normal file
@@ -0,0 +1,39 @@
|
||||
set -e
|
||||
pushd ~
|
||||
|
||||
# Workaround for Travis CI macOS bug (https://github.com/travis-ci/travis-ci/issues/6307)
|
||||
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
|
||||
rvm get head || true
|
||||
fi
|
||||
|
||||
function llvm_version_triple() {
|
||||
if [ "$1" == "3.8" ]; then
|
||||
echo "3.8.0"
|
||||
elif [ "$1" == "3.9" ]; then
|
||||
echo "3.9.0"
|
||||
fi
|
||||
}
|
||||
|
||||
function llvm_download() {
|
||||
export LLVM_VERSION_TRIPLE=`llvm_version_triple ${LLVM_VERSION}`
|
||||
export LLVM=clang+llvm-${LLVM_VERSION_TRIPLE}-x86_64-$1
|
||||
|
||||
wget http://llvm.org/releases/${LLVM_VERSION_TRIPLE}/${LLVM}.tar.xz
|
||||
mkdir llvm
|
||||
tar -xf ${LLVM}.tar.xz -C llvm --strip-components=1
|
||||
|
||||
export LLVM_CONFIG_PATH=`pwd`/llvm/bin/llvm-config
|
||||
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
|
||||
cp llvm/lib/libclang.dylib /usr/local/lib/libclang.dylib
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
|
||||
llvm_download linux-gnu-ubuntu-14.04
|
||||
else
|
||||
llvm_download apple-darwin
|
||||
fi
|
||||
|
||||
popd
|
||||
set +e
|
||||
Reference in New Issue
Block a user