Skip to content

Commit 6253cf6

Browse files
authored
Merge pull request #1906 from cscarnell98/webos-target-platform
Add a webOS platform target
2 parents 480ff78 + 110aae9 commit 6253cf6

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

libretro-build-webos.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#! /usr/bin/env bash
2+
# vim: set ts=3 sw=3 noet ft=sh : bash
3+
4+
SCRIPT="${0#./}"
5+
BASE_DIR="${SCRIPT%/*}"
6+
WORKDIR="$PWD"
7+
8+
if [ "$BASE_DIR" = "$SCRIPT" ]; then
9+
BASE_DIR="$WORKDIR"
10+
else
11+
if [[ "$0" != /* ]]; then
12+
# Make the path absolute
13+
BASE_DIR="$WORKDIR/$BASE_DIR"
14+
fi
15+
fi
16+
17+
platform=webos ${BASE_DIR}/libretro-build.sh $@

libretro-config.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,19 @@ case "$platform" in
678678
CXX11="clang++ -std=c++11 -stdlib=libc++ -miphoneos-version-min=5.0"
679679

680680
;;
681+
webos)
682+
DIST_DIR="webos"
683+
FORMAT_EXT=so
684+
FORMAT_COMPILER_TARGET=webos
685+
686+
# Makefile.libretro per core will need a webos section, but for now:
687+
WEBOS_CFLAGS="-mcpu=cortex-a9 -mtune=cortex-a53 -mfloat-abi=softfp"
688+
689+
CC="arm-webos-linux-gnueabi-gcc $WEBOS_CFLAGS"
690+
CXX="arm-webos-linux-gnueabi-g++ $WEBOS_CFLAGS"
691+
CXX11="arm-webos-linux-gnueabi-g++ -std=c++11 -stdlib=libc++ $WEBOS_CFLAGS"
692+
CXX17="arm-webos-linux-gnueabi-g++ -std=c++17 -stdlib=libc++ $WEBOS_CFLAGS"
693+
;;
681694

682695
##
683696
## Original libretro-config path

0 commit comments

Comments
 (0)