pcsx2/.github/workflows/scripts/linux/install-packages-qt.sh

84 lines
1.8 KiB
Bash
Raw Normal View History

2022-07-02 04:00:56 +00:00
#!/bin/bash
SCRIPTDIR=$(dirname "${BASH_SOURCE[0]}")
source "$SCRIPTDIR/functions.sh"
2022-07-02 04:00:56 +00:00
set -e
# Packages - Build and Qt
declare -a BUILD_PACKAGES=(
"build-essential"
"g++"
2022-07-02 04:00:56 +00:00
"git"
"cmake"
"ccache"
"ninja-build"
"patchelf"
"libfuse2"
2022-07-02 04:00:56 +00:00
"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=(
"extra-cmake-modules"
2022-07-02 04:00:56 +00:00
"libaio-dev"
"libasound2-dev"
2022-07-02 04:00:56 +00:00
"libbz2-dev"
"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"
"libudev-dev"
"libx11-xcb-dev"
"libavcodec-dev"
"libavformat-dev"
"libavutil-dev"
"libswresample-dev"
"libswscale-dev"
2022-07-02 04:00:56 +00:00
"pkg-config"
"zlib1g-dev"
)
if [ "${COMPILER}" = "clang" ]; then
2023-06-23 15:37:39 +00:00
BUILD_PACKAGES+=("llvm-16" "lld-16" "clang-16")
# Ubuntu 22.04 doesn't ship with LLVM 16, so we need to pull it from the llvm.org repos.
2023-06-23 15:37:39 +00:00
retry_command wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository -n 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main'
2022-07-02 04:00:56 +00:00
fi
retry_command sudo apt-get -qq update && break
2022-07-02 04:00:56 +00:00
# Install packages needed for building
echo "Will install the following packages for building - ${BUILD_PACKAGES[*]}"
retry_command sudo apt-get -y install "${BUILD_PACKAGES[@]}"
2022-07-02 04:00:56 +00:00
# Install packages needed by pcsx2
PCSX2_PACKAGES=("${PCSX2_PACKAGES[@]}")
echo "Will install the following packages for pcsx2 - ${PCSX2_PACKAGES[*]}"
retry_command sudo apt-get -y install "${PCSX2_PACKAGES[@]}"