Skip to content

Commit 4576467

Browse files
Merge pull request #17904 from webosbrew/webos
2 parents bd5f47a + 667b169 commit 4576467

4 files changed

Lines changed: 70 additions & 16 deletions

File tree

.github/workflows/webOS.yml

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ name: CI webOS
22

33
on:
44
push:
5+
tags-ignore:
6+
- '*'
7+
branches:
8+
- '*'
59
pull_request:
10+
release:
11+
types: [ published ]
612
repository_dispatch:
7-
types: [run_build]
8-
9-
permissions:
10-
contents: read
13+
types: [ run_build ]
1114

1215
env:
16+
PACKAGE_NAME: com.retroarch.webos
1317
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1418

1519
jobs:
@@ -28,6 +32,14 @@ jobs:
2832
fileName: "ares-package_*.deb"
2933
out-file-path: "temp"
3034

35+
- name: Download Manifest Generator
36+
uses: robinraju/[email protected]
37+
with:
38+
repository: "webosbrew/dev-toolbox-cli"
39+
latest: true
40+
fileName: "webosbrew-toolbox-gen-manifest_*.deb"
41+
out-file-path: "temp"
42+
3143
- name: Update packages
3244
run: sudo apt-get -yq update
3345

@@ -50,6 +62,38 @@ jobs:
5062
./arm-webos-linux-gnueabi_sdk-buildroot/relocate-sdk.sh
5163
5264
- name: Compile RA
65+
shell: bash
5366
run: |
5467
. /tmp/arm-webos-linux-gnueabi_sdk-buildroot/environment-setup
55-
make -f Makefile.webos ADD_SDL2_LIB=1 -j$(getconf _NPROCESSORS_ONLN) info all
68+
make -f Makefile.webos ipk PACKAGE_NAME=${PACKAGE_NAME} ADD_SDL2_LIB=1 -j$(getconf _NPROCESSORS_ONLN)
69+
70+
- name: Get short SHA
71+
id: slug
72+
run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
73+
74+
- uses: actions/upload-artifact@v4
75+
with:
76+
name: com.retroarch.webos_${{ steps.slug.outputs.sha8 }}_arm.ipk
77+
path: |
78+
webos/*.ipk
79+
80+
- name: Generate Manifest
81+
shell: bash
82+
run: |
83+
. version.all
84+
webosbrew-gen-manifest -o webos/${PACKAGE_NAME}.manifest.json \
85+
-p webos/${PACKAGE_NAME}_${RARCH_VERSION}_arm.ipk \
86+
-i https://github.com/webosbrew/RetroArch/raw/webos/webos/icon160.png \
87+
-l https://github.com/webosbrew/RetroArch
88+
89+
- name: Release
90+
if: github.event_name == 'release'
91+
uses: ncipollo/release-action@v1
92+
with:
93+
token: ${{ secrets.GITHUB_TOKEN }}
94+
tag: ${{ github.event.release.tag_name }}
95+
allowUpdates: true
96+
omitNameDuringUpdate: true
97+
omitBody: true
98+
omitPrereleaseDuringUpdate: true
99+
artifacts: webos/*.ipk,webos/*.manifest.json

Makefile.webos

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ ifneq ($(CROSS_COMPILE),arm-webos-linux-gnueabi-)
55
endif
66

77
ifdef SDKTARGETSYSROOT
8-
$(warning OE-based toolchain isn't supported anymore. Please use https://github.com/webosbrew/native-toolchain)
8+
$(warning "OE-based toolchain isn't supported anymore. Please use https://github.com/webosbrew/native-toolchain")
99
STAGING_DIR = $(SDKTARGETSYSROOT)
1010
else ifndef STAGING_DIR
11-
$(error Can't find buildroot based toolchain. Please use https://github.com/webosbrew/native-toolchain)
11+
$(error "Can't find buildroot based toolchain. Please use https://github.com/webosbrew/native-toolchain")
1212
endif
1313

1414
WEBOS_FREETYPE_CONFIG ?= $(STAGING_DIR)/usr/bin/freetype-config
@@ -17,12 +17,12 @@ WEBOS_INC_DIR ?= $(STAGING_DIR)/usr/include
1717
WEBOS_LIB_DIR ?= $(STAGING_DIR)/usr/lib
1818

1919
ADD_SDL2_LIB ?= 0
20-
SDL2_PREBUILT_ARCHIVE ?= https://github.com/webosbrew/SDL-webOS/releases/download/release-2.30.0-webos.2/SDL2-2.30.0-webos.tar.gz
20+
SDL2_PREBUILT_ARCHIVE ?= https://github.com/webosbrew/SDL-webOS/releases/download/release-2.30.8-webos.3/SDL2-2.30.8-webos-abi.tar.gz
2121

2222
#########################
2323
#########################
2424

25-
PACKAGE_NAME = com.retroarch
25+
APP_PACKAGE_NAME ?= com.retroarch.webos
2626
PACKAGE_VERSION := $(patsubst "%",%,$(RARCH_VERSION))
2727

2828
DEBUG ?= 0
@@ -60,8 +60,8 @@ HAVE_DR_MP3 = 1
6060
HAVE_DYNAMIC = 1
6161
HAVE_DYLIB = 1
6262
HAVE_EGL = 0
63-
HAVE_FREETYPE = 0
64-
HAVE_GDI = 1
63+
HAVE_FREETYPE = 1
64+
HAVE_GDI = 0
6565
HAVE_GETADDRINFO = 1
6666
HAVE_GETOPT_LONG = 1
6767
HAVE_GLSL = 1
@@ -107,7 +107,7 @@ HAVE_RUNAHEAD = 1
107107
HAVE_SDL = 0
108108
HAVE_SDL2 = 1
109109
HAVE_SHADERPIPELINE = 1
110-
HAVE_STB_FONT = 1
110+
HAVE_STB_FONT = 0
111111
HAVE_STB_IMAGE = 1
112112
HAVE_STB_VORBIS = 1
113113
HAVE_STDIN_CMD = 1
@@ -151,6 +151,8 @@ DEFINES += -DHAVE_FILTERS_BUILTIN
151151
DEFINES += -DHAVE_SDL2
152152
DEFINES += -DHAVE_PULSE
153153
DEFINES += -DHAVE_NETWORKING -DHAVE_IFINFO -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES
154+
DEFINES += -DHAVE_NETWORKGAMEPAD
155+
DEFINES += -DHAVE_FREETYPE
154156
DEFINES += -DHAVE_UPDATE_CORE_INFO
155157

156158
PKG_CONFIG=pkg-config
@@ -159,6 +161,10 @@ SDL2_CFLAGS := $(shell $(PKG_CONFIG) --cflags sdl2)
159161
SDL2_LIBS := $(shell $(PKG_CONFIG) --libs sdl2)
160162
OPENGLES_LIBS = -lGLESv2
161163
PULSE_LIBS = $(shell $(PKG_CONFIG) --libs libpulse)
164+
FREETYPE_CFLAGS := $(shell $(PKG_CONFIG) --cflags freetype2)
165+
FREETYPE_LIBS := $(shell $(PKG_CONFIG) --libs freetype2)
166+
FONTCONFIG_CFLAGS := $(shell $(PKG_CONFIG) --cflags fontconfig)
167+
FONTCONFIG_LIBS := $(shell $(PKG_CONFIG) --libs fontconfig)
162168
MMAP_LIBS = -lc
163169
NEON_CFLAGS = -mfpu=neon
164170
NEON_ASFLAGS = -mfpu=neon
@@ -191,7 +197,7 @@ RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
191197

192198
define APPINFO
193199
{
194-
"id": "$(PACKAGE_NAME)",
200+
"id": "$(APP_PACKAGE_NAME)",
195201
"version": "$(PACKAGE_VERSION)",
196202
"vendor": "webosbrew.org",
197203
"title": "RetroArch",
@@ -285,10 +291,10 @@ endif
285291
cd webos && ares-package dist
286292

287293
install: ipk
288-
ares-install webos/$(PACKAGE_NAME)_$(PACKAGE_VERSION)_$(ARCH).ipk
294+
ares-install webos/$(APP_PACKAGE_NAME)_$(PACKAGE_VERSION)_$(ARCH).ipk
289295

290296
launch: install
291-
ares-launch com.retroarch
297+
ares-launch $(APP_PACKAGE_NAME)
292298

293299
.PHONY: all clean ipk
294300

gfx/drivers_context/sdl_gl_ctx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static void *sdl_ctx_init(void *video_driver)
109109
#ifdef WEBOS
110110
SDL_SetHint(SDL_HINT_WEBOS_ACCESS_POLICY_KEYS_BACK, "true");
111111
SDL_SetHint(SDL_HINT_WEBOS_ACCESS_POLICY_KEYS_EXIT, "true");
112-
SDL_SetHint(SDL_HINT_WEBOS_CURSOR_SLEEP_TIME, "1000");
112+
SDL_SetHint(SDL_HINT_WEBOS_CURSOR_SLEEP_TIME, "5000");
113113
#endif
114114

115115
/* Initialise graphics subsystem, if required */

gfx/drivers_font_renderer/freetype.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,10 @@ static const char *font_paths[] = {
403403
"/Library/Fonts/Microsoft/Candara.ttf",
404404
"/Library/Fonts/Verdana.ttf",
405405
"/Library/Fonts/Tahoma.ttf",
406+
#elif defined(WEBOS)
407+
"/usr/share/fonts/MuseoSans-Medium.ttf",
408+
"/usr/share/fonts/LG_Smart_UI-Regular.ttf",
409+
"/usr/share/fonts/DroidSans.ttf",
406410
#else
407411
"/usr/share/fonts/TTF/DejaVuSansMono.ttf",
408412
"/usr/share/fonts/TTF/DejaVuSans.ttf",

0 commit comments

Comments
 (0)