|
|
|
@ -1,7 +1,12 @@
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
export CXX=g++
|
|
|
|
|
export CC=gcc
|
|
|
|
|
if [ "${ANALYZE}" ]; then
|
|
|
|
|
if [ $(lsb_release -sc) = "precise" ]; then
|
|
|
|
|
echo "yes" | sudo apt-add-repository ppa:ubuntu-toolchain-r/test
|
|
|
|
|
fi
|
|
|
|
|
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
|
|
|
|
@ -10,6 +15,7 @@ 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 libboost-wave-dev
|
|
|
|
|
sudo apt-get install -qq libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libavresample-dev
|
|
|
|
|
sudo apt-get install -qq libbullet-dev libogre-1.9-dev libmygui-dev libsdl2-dev libunshield-dev libtinyxml-dev libopenal-dev libqt4-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
|
|
|
|
|