mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 22:52:55 +00:00

This also removes the included SHA1 and MD5 implementations in favour of those from OpenSSL. Thanks to @jyrkive for helping to get the CMake build working and ensuring the game still compiles with OpenSSL 1.1.0. (The SHA_xxx() aliases were removed in OpenSSL 1.1.0.)
35 lines
946 B
Bash
Executable File
35 lines
946 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ev
|
|
|
|
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
|
|
|
brew update
|
|
brew install scons cairo pango moreutils sdl2_image sdl2_ttf sdl2_mixer openssl
|
|
|
|
else
|
|
|
|
if [ "$CXXSTD" == "1y" ]; then
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y;
|
|
fi
|
|
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -qq libboost-filesystem-dev libboost-iostreams-dev libboost-random-dev libboost-program-options-dev libboost-regex-dev libboost-system-dev libboost-test-dev libboost-locale-dev libboost-thread-dev
|
|
sudo apt-get install -qq libcairo2-dev libfribidi-dev libpango1.0-dev
|
|
sudo apt-get install -qq libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libvorbis-dev
|
|
sudo apt-get install gdb moreutils xvfb libssl-dev
|
|
|
|
if [ "$USE_CMAKE" = true ]; then
|
|
sudo apt-get install -qq cmake;
|
|
else
|
|
sudo apt-get install -qq scons;
|
|
fi
|
|
|
|
if [ "$CXXSTD" == "1y" ]; then
|
|
sudo apt-get install -qq g++-5;
|
|
export CXX=g++-5;
|
|
export CC=gcc-5;
|
|
fi
|
|
|
|
fi
|