libretro: adjust some option text
[pcsx_rearmed.git] / .github / build-libretro-zip.sh
CommitLineData
6edf40e5 1#!/bin/bash
2set -e
3
4if [[ $# -lt 2 ]]; then
5 echo "usage: $0 <arch> <platform> [make_args]"
6 exit 1
7fi
8
9if [[ $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
14elif [[ $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
19else
20 echo "unsupported platform $1"
21 exit 1
22fi
23shift
24plat=$1
25shift
26
27
28make -f Makefile.libretro platform=$plat "$@"
29zip -9 "pcsx_rearmed_libretro_${aname}_${plat}.zip" pcsx_rearmed_libretro.so
30make -f Makefile.libretro platform=$plat clean