[retro-gtk] Add org.gnome.Retro.DemoSamplesTest.json
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] Add org.gnome.Retro.DemoSamplesTest.json
- Date: Thu, 11 May 2017 05:52:54 +0000 (UTC)
commit ad79dbed39383adf1c15b60b1c8bba6f0a3355be
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue May 9 11:07:31 2017 +0200
Add org.gnome.Retro.DemoSamplesTest.json
Add the org.gnome.Retro.DemoSamplesTest.json flatpak-builder manifest
and the libretro_test.so testing Libretro core, allowing to test
retro-gtk interactively.
https://bugzilla.gnome.org/show_bug.cgi?id=780919
flatpak/libretro-cores/libretro-samples.json | 23 ++++++++
flatpak/libretro-cores/samples-Makefile | 13 ++++
flatpak/org.gnome.Retro.DemoSamplesTest.desktop | 3 +
flatpak/org.gnome.Retro.DemoSamplesTest.json | 68 +++++++++++++++++++++++
flatpak/retro-demo-samples-test | 2 +
5 files changed, 109 insertions(+), 0 deletions(-)
---
diff --git a/flatpak/libretro-cores/libretro-samples.json b/flatpak/libretro-cores/libretro-samples.json
new file mode 100644
index 0000000..8efe460
--- /dev/null
+++ b/flatpak/libretro-cores/libretro-samples.json
@@ -0,0 +1,23 @@
+ {
+ "name": "libretro-samples",
+ "no-autogen": true,
+ "make-args": [
+ "--makefile=Makefile",
+ "prefix=/app"
+ ],
+ "make-install-args": [
+ "--makefile=Makefile",
+ "prefix=/app"
+ ],
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://github.com/libretro/libretro-samples.git"
+ },
+ {
+ "type": "file",
+ "path": "libretro-cores/samples-Makefile",
+ "dest-filename": "Makefile"
+ }
+ ]
+ }
diff --git a/flatpak/libretro-cores/samples-Makefile b/flatpak/libretro-cores/samples-Makefile
new file mode 100644
index 0000000..d06f421
--- /dev/null
+++ b/flatpak/libretro-cores/samples-Makefile
@@ -0,0 +1,13 @@
+NULL=
+
+CORES= \
+ tests/test/test_libretro.so \
+ $(NULL)
+
+all: tests/test/test_libretro.so
+
+tests/test/test_libretro.so:
+ make -C $(@D)
+
+install: $(CORES)
+ install -Dp -m755 tests/test/test_libretro.so $(DESTDIR)$(prefix)/lib/libretro/test_libretro.so
diff --git a/flatpak/org.gnome.Retro.DemoSamplesTest.desktop b/flatpak/org.gnome.Retro.DemoSamplesTest.desktop
new file mode 100644
index 0000000..1840bbd
--- /dev/null
+++ b/flatpak/org.gnome.Retro.DemoSamplesTest.desktop
@@ -0,0 +1,3 @@
+[Desktop Entry]
+Name=org.gnome.Retro.DemoSamplesTest
+Exec=retro-demo-samples-test
diff --git a/flatpak/org.gnome.Retro.DemoSamplesTest.json b/flatpak/org.gnome.Retro.DemoSamplesTest.json
new file mode 100644
index 0000000..d47cc6e
--- /dev/null
+++ b/flatpak/org.gnome.Retro.DemoSamplesTest.json
@@ -0,0 +1,68 @@
+{
+ "app-id": "org.gnome.Retro.DemoSamplesTest",
+ "runtime": "org.gnome.Platform",
+ "runtime-version": "master",
+ "sdk": "org.gnome.Sdk",
+ "command": "retro-demo-samples-test",
+ "tags": ["nightly"],
+ "desktop-file-name-prefix": "(Nightly) ",
+ "finish-args": [
+ /* X11 + XShm access */
+ "--share=ipc", "--socket=x11",
+ /* Wayland access */
+ "--socket=wayland",
+ /* PulseAudio access */
+ "--device=dri", "--socket=pulseaudio"
+ ],
+ "build-options" : {
+ "cflags": "-O2 -g",
+ "cxxflags": "-O2 -g"
+ },
+ "cleanup": ["/include", "/lib/pkgconfig",
+ "/share/pkgconfig", "/share/aclocal",
+ "/man", "/share/man", "/share/gtk-doc",
+ "*.la", "*.a",
+ "/lib/girepository-1.0",
+ "/share/dbus-1", "/share/doc", "/share/gir-1.0"
+ ],
+ "modules": [
+ "libretro-cores/libretro-samples.json",
+ /*
+ * TODO Move this module after retro-gtk once GNOME Builder support
+ * building modules after the one being edited.
+ */
+ {
+ "name": "retro-demo-samples-test",
+ "buildsystem": "simple",
+ "build-commands": [
+ "mkdir -p /app/bin/",
+ "install -m755 -pD retro-demo-samples-test /app/bin/retro-demo-samples-test",
+ "install -m755 -pD org.gnome.Retro.DemoSamplesTest.desktop
/app/share/applications/org.gnome.Retro.DemoSamplesTest.desktop"
+ ],
+ "sources": [
+ {
+ "type": "file",
+ "path": "retro-demo-samples-test",
+ "dest-filename": "retro-demo-samples-test"
+ },
+ {
+ "type": "file",
+ "path": "org.gnome.Retro.DemoSamplesTest.desktop",
+ "dest-filename": "org.gnome.Retro.DemoSamplesTest.desktop"
+ }
+ ]
+ },
+ {
+ "name": "retro-gtk",
+ "config-opts": [
+ "--disable-static"
+ ],
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://git.gnome.org/browse/retro-gtk"
+ }
+ ]
+ }
+ ]
+}
diff --git a/flatpak/retro-demo-samples-test b/flatpak/retro-demo-samples-test
new file mode 100644
index 0000000..86c9734
--- /dev/null
+++ b/flatpak/retro-demo-samples-test
@@ -0,0 +1,2 @@
+#!/bin/sh
+retro-demo /app/lib/libretro/test_libretro.so
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]