Add a webOS platform target

This commit is contained in:
Craig Carnell 2025-06-03 13:06:07 +01:00
parent 04b09bde20
commit 110aae93b5
2 changed files with 30 additions and 0 deletions

17
libretro-build-webos.sh Normal file
View File

@ -0,0 +1,17 @@
#! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
SCRIPT="${0#./}"
BASE_DIR="${SCRIPT%/*}"
WORKDIR="$PWD"
if [ "$BASE_DIR" = "$SCRIPT" ]; then
BASE_DIR="$WORKDIR"
else
if [[ "$0" != /* ]]; then
# Make the path absolute
BASE_DIR="$WORKDIR/$BASE_DIR"
fi
fi
platform=webos ${BASE_DIR}/libretro-build.sh $@

View File

@ -678,6 +678,19 @@ case "$platform" in
CXX11="clang++ -std=c++11 -stdlib=libc++ -miphoneos-version-min=5.0"
;;
webos)
DIST_DIR="webos"
FORMAT_EXT=so
FORMAT_COMPILER_TARGET=webos
# Makefile.libretro per core will need a webos section, but for now:
WEBOS_CFLAGS="-mcpu=cortex-a9 -mtune=cortex-a53 -mfloat-abi=softfp"
CC="arm-webos-linux-gnueabi-gcc $WEBOS_CFLAGS"
CXX="arm-webos-linux-gnueabi-g++ $WEBOS_CFLAGS"
CXX11="arm-webos-linux-gnueabi-g++ -std=c++11 -stdlib=libc++ $WEBOS_CFLAGS"
CXX17="arm-webos-linux-gnueabi-g++ -std=c++17 -stdlib=libc++ $WEBOS_CFLAGS"
;;
##
## Original libretro-config path