You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.2 KiB
Bash
22 lines
1.2 KiB
Bash
#!/bin/sh
|
|
|
|
if [ "${ANALYZE}" ]; then
|
|
echo "yes" | sudo add-apt-repository "deb http://llvm.org/apt/`lsb_release -sc`/ llvm-toolchain-`lsb_release -sc`-3.6 main"
|
|
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
|
|
fi
|
|
|
|
echo "yes" | sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
|
|
echo "yes" | sudo apt-add-repository ppa:openmw/openmw
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -qq libgtest-dev google-mock
|
|
sudo apt-get install -qq libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev
|
|
sudo apt-get install -qq libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev
|
|
sudo apt-get install -qq libbullet-dev libopenscenegraph-dev libmygui-dev libsdl2-dev libunshield-dev libtinyxml-dev libopenal-dev qtbase5-dev
|
|
if [ "${ANALYZE}" ]; then sudo apt-get install -qq clang-3.6; fi
|
|
sudo mkdir /usr/src/gtest/build
|
|
cd /usr/src/gtest/build
|
|
sudo cmake .. -DBUILD_SHARED_LIBS=1 -DDESIRED_QT_VERSION=5
|
|
sudo make -j4
|
|
sudo ln -s /usr/src/gtest/build/libgtest.so /usr/lib/libgtest.so
|
|
sudo ln -s /usr/src/gtest/build/libgtest_main.so /usr/lib/libgtest_main.so
|