libretro: adjust some option text
[pcsx_rearmed.git] / .github / build-libretro-zip.sh
1 #!/bin/bash
2 set -e
3
4 if [[ $# -lt 2 ]]; then
5   echo "usage: $0 <arch> <platform> [make_args]"
6   exit 1
7 fi
8
9 if [[ $1 = "arm32" ]]; then
10   export CC=arm-linux-gnueabihf-gcc
11   export CXX=arm-linux-gnueabihf-g++
12   export LD=arm-linux-gnueabihf-ld
13   aname=arm32
14 elif [[ $1 = "arm64" ]]; then
15   export CC=aarch64-linux-gnu-gcc
16   export CXX=aarch64-linux-gnu-g++
17   export LD=aarch64-linux-gnu-ld
18   aname=arm64
19 else
20   echo "unsupported platform $1"
21   exit 1
22 fi
23 shift
24 plat=$1
25 shift
26
27
28 make -f Makefile.libretro platform=$plat "$@"
29 zip -9 "pcsx_rearmed_libretro_${aname}_${plat}.zip" pcsx_rearmed_libretro.so
30 make -f Makefile.libretro platform=$plat clean