[gnome-games/wip/aplazas/libmanette] libmanette



commit fc2179b94ab759cf12e955de4eeff2af8f3626a9
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun Oct 29 22:41:59 2017 +0100

    libmanette

 flatpak/libmanette-0.2.vapi  |   38 ++++++++++++++++++++++++++++++++++++++
 flatpak/org.gnome.Games.json |   33 +++++++++++++++++++--------------
 2 files changed, 57 insertions(+), 14 deletions(-)
---
diff --git a/flatpak/libmanette-0.2.vapi b/flatpak/libmanette-0.2.vapi
new file mode 100644
index 0000000..8ed4a14
--- /dev/null
+++ b/flatpak/libmanette-0.2.vapi
@@ -0,0 +1,38 @@
+/* libmanette-0.2.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Manette", gir_namespace = "Manette", gir_version = "0.2", lower_case_cprefix = 
"manette_")]
+namespace Manette {
+       [CCode (cheader_filename = "libmanette.h", type_id = "manette_device_get_type ()")]
+       public class Device : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected Device ();
+               public unowned string get_name ();
+               public signal void absolute_axis_event (Manette.Event event);
+               public signal void button_press_event (Manette.Event event);
+               public signal void button_release_event (Manette.Event event);
+               public signal void disconnected ();
+               public signal void event (Manette.Event event);
+               public signal void hat_axis_event (Manette.Event event);
+       }
+       [CCode (cheader_filename = "libmanette.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "manette_event_get_type ()")]
+       [Compact]
+       public class Event {
+               public bool get_absolute (uint16 axis, double value);
+               public bool get_button (uint16 button);
+               public unowned Manette.Device get_device ();
+               public bool get_hat (uint16 axis, int8 value);
+       }
+       [CCode (cheader_filename = "libmanette.h", type_id = "manette_monitor_get_type ()")]
+       public class Monitor : GLib.Object {
+               [CCode (has_construct_function = false)]
+               public Monitor ();
+               public Manette.MonitorIter iterate ();
+               public signal void device_connected (Manette.Device device);
+               public signal void device_disconnected (Manette.Device device);
+       }
+       [CCode (cheader_filename = "libmanette.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "manette_monitor_iter_get_type ()")]
+       [Compact]
+       public class MonitorIter {
+               public bool next (out unowned Manette.Device? device);
+       }
+}
diff --git a/flatpak/org.gnome.Games.json b/flatpak/org.gnome.Games.json
index f4342d3..66e08e3 100644
--- a/flatpak/org.gnome.Games.json
+++ b/flatpak/org.gnome.Games.json
@@ -44,21 +44,7 @@
 
            We build them first, because some of them are very big, and they
            change more rarely than the rest of the modules. */
-        "libretro-cores/libretro-blastem.json",
-        "libretro-cores/libretro-bsnes.json",
-        "libretro-cores/libretro-desmume.json",
-        "libretro-cores/libretro-dosbox.json",
-        "libretro-cores/libretro-gambatte.json",
-        "libretro-cores/libretro-handy.json",
-        "libretro-cores/libretro-mednafen_ngp.json",
-        "libretro-cores/libretro-mednafen_pce_fast.json",
-        "libretro-cores/libretro-mednafen_saturn.json",
-        "libretro-cores/libretro-mednafen_wswan.json",
-        "libretro-cores/libretro-mgba.json",
         "libretro-cores/libretro-nestopia.json",
-        "libretro-cores/libretro-pcsx_rearmed.json",
-        "libretro-cores/libretro-prboom.json",
-        "libretro-cores/libretro-stella.json",
         /* End libretro cores */
         "org.lua.modules.json",
         {
@@ -125,6 +111,25 @@
             ]
         },
         {
+            "name": "libmanette",
+            "buildsystem": "meson",
+            "post-install": [
+                "mkdir -p /app/usr/share/vapi/",
+                "install -m644 -p libmanette-0.2.vapi /app/usr/share/vapi/"
+            ],
+            "sources": [
+                {
+                    "type": "archive",
+                    "url": "https://download.gnome.org/sources/libmanette/0.1/libmanette-0.1.1.tar.xz";,
+                    "sha256": "790a4af3976dad2ef0386c779d4d9353d76a7f4b1c5a14d3477de1c958615166"
+                },
+                {
+                    "type": "file",
+                    "path": "libmanette-0.2.vapi"
+                }
+            ]
+        },
+        {
             "name": "retro-gtk",
             "config-opts": [
                 "--disable-static"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]