2022-07-02 04:00:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Packages - Build and Qt
|
|
|
|
declare -a BUILD_PACKAGES=(
|
|
|
|
"build-essential"
|
|
|
|
"git"
|
|
|
|
"cmake"
|
|
|
|
"ccache"
|
|
|
|
"ninja-build"
|
|
|
|
"libclang-dev" # Qt goes hunting for libclang-11 specifically.
|
|
|
|
"libclang-11-dev"
|
|
|
|
"libclang-12-dev"
|
|
|
|
"patchelf"
|
|
|
|
"libglib2.0-dev"
|
|
|
|
"libfontconfig1-dev"
|
|
|
|
"libharfbuzz-dev"
|
|
|
|
"libjpeg-dev"
|
|
|
|
"libpng-dev"
|
|
|
|
"libfreetype-dev"
|
|
|
|
"libinput-dev"
|
|
|
|
"libxcb-*-dev"
|
|
|
|
"libxkbcommon-dev"
|
|
|
|
"libxkbcommon-x11-dev"
|
|
|
|
"libxrender-dev"
|
|
|
|
"libwayland-dev"
|
|
|
|
"libgl1-mesa-dev"
|
|
|
|
"libegl-dev"
|
|
|
|
"libegl1-mesa-dev"
|
|
|
|
"libgl1-mesa-dev"
|
|
|
|
"libssl-dev"
|
|
|
|
)
|
|
|
|
|
|
|
|
# Packages - PCSX2
|
|
|
|
declare -a PCSX2_PACKAGES=(
|
|
|
|
"libaio-dev"
|
2022-09-29 14:26:36 +00:00
|
|
|
"libasound2-dev"
|
2022-07-02 04:00:56 +00:00
|
|
|
"libbz2-dev"
|
2022-10-07 10:05:49 +00:00
|
|
|
"libcurl4-openssl-dev"
|
2022-07-02 04:00:56 +00:00
|
|
|
"libegl1-mesa-dev"
|
|
|
|
"libgl1-mesa-dev"
|
|
|
|
"libgtk-3-dev"
|
|
|
|
"libharfbuzz-dev"
|
|
|
|
"libjpeg-dev"
|
|
|
|
"liblzma-dev"
|
|
|
|
"libpcap0.8-dev"
|
|
|
|
"libpng-dev"
|
|
|
|
"libpulse-dev"
|
|
|
|
"librsvg2-dev"
|
|
|
|
"libsamplerate0-dev"
|
|
|
|
"libsoundtouch-dev"
|
|
|
|
"libudev-dev"
|
|
|
|
"libx11-xcb-dev"
|
|
|
|
"pkg-config"
|
|
|
|
"zlib1g-dev"
|
|
|
|
)
|
|
|
|
|
|
|
|
if [ "${COMPILER}" = "gcc" ]; then
|
|
|
|
BUILD_PACKAGES+=("g++-10")
|
|
|
|
else
|
|
|
|
BUILD_PACKAGES+=("llvm-12" "lld-12" "clang-12")
|
|
|
|
fi
|
|
|
|
|
|
|
|
sudo apt-get -qq update
|
|
|
|
|
|
|
|
# Install packages needed for building
|
|
|
|
echo "Will install the following packages for building - ${BUILD_PACKAGES[*]}"
|
|
|
|
sudo apt-get -y install "${BUILD_PACKAGES[@]}"
|
|
|
|
|
|
|
|
# Install packages needed by pcsx2
|
|
|
|
PCSX2_PACKAGES=("${PCSX2_PACKAGES[@]}")
|
|
|
|
echo "Will install the following packages for pcsx2 - ${PCSX2_PACKAGES[*]}"
|
|
|
|
sudo apt-get -y install "${PCSX2_PACKAGES[@]}"
|