This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
2017-10-21 21:46:46 +00:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
cd /citra
|
|
|
|
|
|
|
|
apt-get update
|
2018-04-11 03:09:35 +00:00
|
|
|
apt-get install -y build-essential wget git python-launchpadlib ccache
|
2017-10-21 21:46:46 +00:00
|
|
|
|
|
|
|
# Install specific versions of packages with their dependencies
|
|
|
|
# The apt repositories remove older versions regularly, so we can't use
|
|
|
|
# apt-get and have to pull the packages directly from the archives.
|
|
|
|
/citra/.travis/linux-frozen/install_package.py \
|
2018-02-06 12:25:39 +00:00
|
|
|
libsdl2-dev 2.0.7+dfsg1-3ubuntu1 bionic \
|
|
|
|
qtbase5-dev 5.9.3+dfsg-0ubuntu2 bionic \
|
|
|
|
libqt5opengl5-dev 5.9.3+dfsg-0ubuntu2 bionic \
|
|
|
|
libicu57 57.1-6ubuntu0.2 bionic
|
2017-10-21 21:46:46 +00:00
|
|
|
|
|
|
|
# Get a recent version of CMake
|
2018-02-06 12:25:39 +00:00
|
|
|
wget https://cmake.org/files/v3.10/cmake-3.10.1-Linux-x86_64.sh
|
|
|
|
echo y | sh cmake-3.10.1-Linux-x86_64.sh --prefix=cmake
|
|
|
|
export PATH=/citra/cmake/cmake-3.10.1-Linux-x86_64/bin:$PATH
|
2017-10-21 21:46:46 +00:00
|
|
|
|
|
|
|
mkdir build && cd build
|
2018-04-11 03:09:35 +00:00
|
|
|
CC=/usr/lib/ccache/gcc CXX=/usr/lib/ccache/g++ cmake .. -DCMAKE_BUILD_TYPE=Release -DCITRA_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"}
|
2017-10-21 21:46:46 +00:00
|
|
|
make -j4
|
|
|
|
|
|
|
|
ctest -VV -C Release
|