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.
2021-10-22 00:13:40 +00:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
TOPDIR="$(dirname "$0")"
|
|
|
|
|
|
|
|
for i in "$TOPDIR"/../patches/*.patch; do
|
|
|
|
echo "Applying $i ..."
|
|
|
|
patch -Np1 -i "$i"
|
|
|
|
done
|
|
|
|
|
2021-12-27 01:10:00 +00:00
|
|
|
CFLAGS="-ftree-vectorize -flto"
|
|
|
|
if [[ "$(uname -m)" == "aarch64" ]]; then
|
|
|
|
CFLAGS="$CFLAGS -march=armv8-a+crc+crypto"
|
|
|
|
fi
|
|
|
|
export CFLAGS
|
2021-10-22 00:13:40 +00:00
|
|
|
export CXXFLAGS="$CFLAGS"
|
|
|
|
export LDFLAGS="-flto -fuse-linker-plugin"
|
|
|
|
|
|
|
|
mkdir -p build && cd build
|
|
|
|
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DENABLE_QT=OFF -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=OFF -DUSE_DISCORD_PRESENCE=OFF -DENABLE_FFMPEG_VIDEO_DUMPER=OFF
|
|
|
|
ninja citra-room
|
|
|
|
strip ./bin/Release/citra-room
|