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.
2022-08-16 06:47:21 +00:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
TOPDIR="$(dirname "$0")"
|
|
|
|
|
|
|
|
git config user.name "github-actions"
|
|
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
|
|
git am "$TOPDIR"/../patches/*.patch
|
|
|
|
|
|
|
|
CFLAGS="-ftree-vectorize -flto"
|
|
|
|
if [[ "$(uname -m)" == "aarch64" ]]; then
|
|
|
|
CFLAGS="$CFLAGS -march=armv8-a+crc+crypto"
|
|
|
|
elif [[ "$(uname -m)" == "x86_64" ]]; then
|
|
|
|
# those three of you still using Prescott should just compile this yourselves
|
|
|
|
CFLAGS="$CFLAGS -march=core2 -mtune=intel"
|
|
|
|
fi
|
|
|
|
if [[ "$USE_CCACHE" != '0' ]]; then
|
|
|
|
echo '[+] Enabled ccache'
|
|
|
|
ccache -s
|
|
|
|
export CC='/usr/lib/ccache/gcc'
|
|
|
|
export CXX='/usr/lib/ccache/g++'
|
|
|
|
fi
|
|
|
|
|
|
|
|
export CFLAGS
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
|
|
|
export LDFLAGS="-flto -fuse-linker-plugin -fuse-ld=gold"
|
|
|
|
|
|
|
|
# build and install dependencies
|
|
|
|
"$TOPDIR"/deps.sh
|
|
|
|
|
|
|
|
mkdir -p build && cd build
|
2023-01-08 07:35:03 +00:00
|
|
|
cmake .. -GNinja -DYUZU_USE_BUNDLED_FFMPEG=ON -DYUZU_TESTS=OFF -DENABLE_LIBUSB=OFF -DCMAKE_BUILD_TYPE=Release -DENABLE_SDL2=OFF -DENABLE_QT=OFF -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=OFF -DUSE_DISCORD_PRESENCE=OFF
|
2022-08-16 06:47:21 +00:00
|
|
|
ninja yuzu-room
|
|
|
|
strip ./bin/yuzu-room
|