diff options
Diffstat (limited to 'generate4')
-rwxr-xr-x | generate4 | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/generate4 b/generate4 new file mode 100755 index 0000000..8fcff42 --- /dev/null +++ b/generate4 @@ -0,0 +1,47 @@ +#!/bin/sh + +if [ $# -lt 1 ]; then + printf "Usage: generate4 <gobject introspection root>\n" >&2 + exit 1 +fi +GI="$1" +BIND=./bindings + +mkdir -p "$BIND"/glib "$BIND"/gobject "$BIND"/gio "$BIND"/gmodule "$BIND"/atk \ + "$BIND"/gdkpixbuf "$BIND"/freetype "$BIND"/harfbuzz "$BIND"/cairo \ + "$BIND"/pango "$BIND"/pangocairo "$BIND"/gdk4 "$BIND"/xlib "$BIND"/graphene \ + "$BIND"/gsk "$BIND"/gtk4 + +hare build cmd/hare-gi && ./hare-gi -B \ + -m GLib,glib,"$BIND"/glib/_generated.ha \ + -m GObject,gobject,"$BIND"/gobject/_generated.ha \ + -m Gio,gio,"$BIND"/gio/_generated.ha \ + -m GModule,gmodule,"$BIND"/gmodule/_generated.ha \ + -m Atk,atk,"$BIND"/atk/_generated.ha \ + -m GdkPixbuf,gdkpixbuf,"$BIND"/gdkpixbuf/_generated.ha \ + -m freetype2,freetype,"$BIND"/freetype/_generated.ha \ + -m HarfBuzz,harfbuzz,"$BIND"/harfbuzz/_generated.ha \ + -m cairo,cairo,"$BIND"/cairo/_generated.ha \ + -m Pango,pango,"$BIND"/pango/_generated.ha \ + -m PangoCairo,pangocairo,"$BIND"/pangocairo/_generated.ha \ + -m Gdk,gdk4,"$BIND"/gdk4/_generated.ha \ + -m xlib,xlib,"$BIND"/xlib/_generated.ha \ + -m Graphene,graphene,"$BIND"/graphene/_generated.ha \ + -m Gsk,gsk,"$BIND"/gsk/_generated.ha \ + -m Gtk,gtk4,"$BIND"/gtk4/_generated.ha \ + "$GI"/build/gir/GLib-2.0.gir \ + "$GI"/build/gir/GObject-2.0.gir \ + "$GI"/build/gir/Gio-2.0.gir \ + "$GI"/build/gir/GModule-2.0.gir \ + /usr/share/gir-1.0/Atk-1.0.gir \ + /usr/share/gir-1.0/GdkPixbuf-2.0.gir \ + "$GI"/build/gir/freetype2-2.0.gir \ + /usr/share/gir-1.0/HarfBuzz-0.0.gir \ + "$GI"/build/gir/cairo-1.0.gir \ + /usr/share/gir-1.0/Pango-1.0.gir \ + /usr/share/gir-1.0/PangoCairo-1.0.gir \ + /usr/share/gir-1.0/Gdk-4.0.gir \ + "$GI"/build/gir/xlib-2.0.gir \ + /usr/share/gir-1.0/Graphene-1.0.gir \ + /usr/share/gir-1.0/Gsk-4.0.gir \ + /usr/share/gir-1.0/Gtk-4.0.gir |