OPENDINGUX: simplify build scripts

The rs90 and rg99 can use the exact same binary and opk including
the .desktop file

Signed-off-by: Christophe Branchereau <cbranchereau@gmail.com>
This commit is contained in:
Christophe Branchereau 2023-01-15 12:15:49 +01:00 committed by Christophe Branchereau
parent 2994ab025d
commit 2724ce7753
8 changed files with 14 additions and 63 deletions

View file

@ -15,7 +15,9 @@ Running Linux on an x86/amd64 machine:
2. git clone the ScummVM repository 2. git clone the ScummVM repository
3. Run 'backends/platform/sdl/opendingux/build_odbeta.sh x' 3. Run 'backends/platform/sdl/opendingux/build_odbeta.sh x'
where x=gcw0|lepus|rg99 where x=gcw0|lepus|rs90
the rs90 build applies to the rg99
Or if you want a dual opk with one launcher capable of starting games directly Or if you want a dual opk with one launcher capable of starting games directly
for e.g. simplemenu integration : for e.g. simplemenu integration :

View file

@ -12,29 +12,21 @@ fi
case $target in case $target in
gcw0) gcw0)
target2=$target
libc=uclibc libc=uclibc
;; ;;
lepus) lepus | rs90)
target2=$target
libc=musl
;;
rg99 | rs90)
target2=rs90
target=rg99
libc=musl libc=musl
;; ;;
*) *)
echo "please provide a valid target for the build: gcw0, lepus, rg99 or rs90" echo "please provide a valid target for the build: gcw0, lepus or rs90"
exit 1 exit 1
;; ;;
esac esac
TOOLCHAIN=/opt/$target2-toolchain TOOLCHAIN=/opt/$target-toolchain
SYSROOT=$TOOLCHAIN/mipsel-$target2-linux-$libc SYSROOT=$TOOLCHAIN/mipsel-$target-linux-$libc
export PATH=$TOOLCHAIN/usr/bin:$SYSROOT/usr/include:$TOOLCHAIN/bin:$PATH export PATH=$TOOLCHAIN/usr/bin:$SYSROOT/usr/include:$TOOLCHAIN/bin:$PATH
export CXX=mipsel-linux-g++ export CXX=mipsel-linux-g++

View file

@ -1,10 +1,6 @@
OD_EXE_STRIPPED := scummvm_stripped$(EXEEXT) OD_EXE_STRIPPED := scummvm_stripped$(EXEEXT)
bundle = od-opk bundle = od-opk
ifeq ($(OPENDINGUX_TARGET), rg99)
OPKNAME = rg99_rs90
else
OPKNAME = $(OPENDINGUX_TARGET) OPKNAME = $(OPENDINGUX_TARGET)
endif
all: $(OD_EXE_STRIPPED) all: $(OD_EXE_STRIPPED)
@ -15,7 +11,7 @@ $(bundle): all
$(MKDIR) $(bundle) $(MKDIR) $(bundle)
$(CP) $(DIST_FILES_DOCS) $(bundle)/ $(CP) $(DIST_FILES_DOCS) $(bundle)/
ifneq ($(OPENDINGUX_TARGET), rg99) ifneq ($(OPENDINGUX_TARGET), rs90)
$(MKDIR) $(bundle)/themes $(MKDIR) $(bundle)/themes
$(CP) $(DIST_FILES_THEMES) $(bundle)/themes/ $(CP) $(DIST_FILES_THEMES) $(bundle)/themes/
endif endif
@ -23,7 +19,7 @@ endif
ifdef DIST_FILES_ENGINEDATA ifdef DIST_FILES_ENGINEDATA
$(MKDIR) $(bundle)/engine-data $(MKDIR) $(bundle)/engine-data
$(CP) $(DIST_FILES_ENGINEDATA) $(bundle)/engine-data/ $(CP) $(DIST_FILES_ENGINEDATA) $(bundle)/engine-data/
ifeq ($(OPENDINGUX_TARGET), rg99) ifeq ($(OPENDINGUX_TARGET), rs90)
$(CP) $(srcdir)/dists/opendingux/fonts_mini.dat $(bundle)/engine-data/fonts.dat $(CP) $(srcdir)/dists/opendingux/fonts_mini.dat $(bundle)/engine-data/fonts.dat
endif endif
endif endif
@ -44,12 +40,6 @@ endif
ifdef dualopk ifdef dualopk
$(CP) $(srcdir)/dists/opendingux/startGame.$(OPENDINGUX_TARGET).desktop $(bundle)/ $(CP) $(srcdir)/dists/opendingux/startGame.$(OPENDINGUX_TARGET).desktop $(bundle)/
$(CP) $(srcdir)/dists/opendingux/scummvm.sh $(bundle)/ $(CP) $(srcdir)/dists/opendingux/scummvm.sh $(bundle)/
endif
ifeq ($(OPENDINGUX_TARGET), rg99)
$(CP) $(srcdir)/dists/opendingux/startUI.rs90.desktop $(bundle)/
ifdef dualopk
$(CP) $(srcdir)/dists/opendingux/startGame.rs90.desktop $(bundle)/
endif
endif endif
$(CP) $(srcdir)/backends/platform/sdl/opendingux/README.OPENDINGUX $(bundle)/README.man.txt $(CP) $(srcdir)/backends/platform/sdl/opendingux/README.OPENDINGUX $(bundle)/README.man.txt

7
configure vendored
View file

@ -840,8 +840,7 @@ Special configuration feature:
n64 for Nintendo 64 n64 for Nintendo 64
opendingux-gcw0 for GCW0 with Opendingux Beta opendingux-gcw0 for GCW0 with Opendingux Beta
opendingux-lepus for Lepus with Opendingux Beta opendingux-lepus for Lepus with Opendingux Beta
opendingux-rg99 for RG99 and RS90 with Opendingux Beta opendingux-rs90 for RS90 and RG99 with Opendingux Beta
opendingux-rs90 for RG99 and RS90 with Opendingux Beta
openpandora for OpenPandora openpandora for OpenPandora
ouya for OUYA ouya for OUYA
ps3 for PlayStation 3 ps3 for PlayStation 3
@ -3615,14 +3614,14 @@ if test -n "$_host"; then
_highres=no _highres=no
_build_hq_scalers=no _build_hq_scalers=no
;; ;;
opendingux-rg99 | opendingux-rs90) opendingux-rs90)
append_var DEFINES "-DRS90 -DDISABLE_FANCY_THEMES" append_var DEFINES "-DRS90 -DDISABLE_FANCY_THEMES"
_16bit=no _16bit=no
_highres=no _highres=no
# Scaling is handled by IPU # Scaling is handled by IPU
_build_aspect=no _build_aspect=no
_build_scalers=no _build_scalers=no
_host=opendingux-rg99 _host=opendingux-rs90
;; ;;
*) *)
echo "WARNING: Unknown OpenDingux target" echo "WARNING: Unknown OpenDingux target"

View file

@ -1,16 +0,0 @@
[Desktop Entry]
Name=ScummVM
Comment=Interpreter for several adventure games
Comment[pl]=Interpreter graficznych gier przygodowych
Comment[sv]=Tolk för flera äventyrsspel
Comment[he]=פרשן למספר משחקי הרפתקאות
Comment[de]=Interpreter für diverse Abenteuerspiele
Comment[es]=Intérprete para varias aventuras gráficas
Comment[ca]=Intèrpret per diverses aventures gràfiques
Exec=env SDL_VIDEO_KMSDRM_SCALING_MODE=1 ./scummvm.sh %f
Icon=scummvm
Terminal=false
Type=Application
Categories=games;
StartupNotify=false
X-OD-Manual=README.man.txt

View file

@ -7,7 +7,7 @@ Comment[he]=פרשן למספר משחקי הרפתקאות
Comment[de]=Interpreter für diverse Abenteuerspiele Comment[de]=Interpreter für diverse Abenteuerspiele
Comment[es]=Intérprete para varias aventuras gráficas Comment[es]=Intérprete para varias aventuras gráficas
Comment[ca]=Intèrpret per diverses aventures gràfiques Comment[ca]=Intèrpret per diverses aventures gràfiques
Exec=env SDL_VIDEO_KMSDRM_SCALING_MODE=1 ./scummvm.sh %f Exec=scummvm.sh %f
Icon=scummvm Icon=scummvm
Terminal=false Terminal=false
Type=Application Type=Application

View file

@ -1,16 +0,0 @@
[Desktop Entry]
Name=ScummVM UI
Comment=Interpreter for several adventure games
Comment[pl]=Interpreter graficznych gier przygodowych
Comment[sv]=Tolk för flera äventyrsspel
Comment[he]=פרשן למספר משחקי הרפתקאות
Comment[de]=Interpreter für diverse Abenteuerspiele
Comment[es]=Intérprete para varias aventuras gráficas
Comment[ca]=Intèrpret per diverses aventures gràfiques
Exec=env SDL_VIDEO_KMSDRM_SCALING_MODE=1 ./scummvm
Icon=scummvm
Terminal=false
Type=Application
Categories=games;
StartupNotify=false
X-OD-Manual=README.man.txt

View file

@ -7,7 +7,7 @@ Comment[he]=פרשן למספר משחקי הרפתקאות
Comment[de]=Interpreter für diverse Abenteuerspiele Comment[de]=Interpreter für diverse Abenteuerspiele
Comment[es]=Intérprete para varias aventuras gráficas Comment[es]=Intérprete para varias aventuras gráficas
Comment[ca]=Intèrpret per diverses aventures gràfiques Comment[ca]=Intèrpret per diverses aventures gràfiques
Exec=env SDL_VIDEO_KMSDRM_SCALING_MODE=1 ./scummvm Exec=scummvm
Icon=scummvm Icon=scummvm
Terminal=false Terminal=false
Type=Application Type=Application