about summary refs log tree commit diff
path: root/generate4
diff options
context:
space:
mode:
Diffstat (limited to 'generate4')
-rwxr-xr-xgenerate437
1 files changed, 19 insertions, 18 deletions
diff --git a/generate4 b/generate4
index de2eb6f..26a15d4 100755
--- a/generate4
+++ b/generate4
@@ -1,29 +1,30 @@
 #!/bin/sh
 
-BIND=./bindings
+BIND=./bindings/gi
+NS=gi::
 
 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 && exec ./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 \
+hare build cmd/hare-gi && exec ./hare-gi \
+	-m GLib,${NS}glib,"$BIND"/glib/_generated.ha \
+	-m GObject,${NS}gobject,"$BIND"/gobject/_generated.ha \
+	-m Gio,${NS}gio,"$BIND"/gio/_generated.ha \
+	-m GModule,${NS}gmodule,"$BIND"/gmodule/_generated.ha \
+	-m Atk,${NS}atk,"$BIND"/atk/_generated.ha \
+	-m GdkPixbuf,${NS}gdkpixbuf,"$BIND"/gdkpixbuf/_generated.ha \
+	-m freetype2,${NS}freetype,"$BIND"/freetype/_generated.ha \
+	-m HarfBuzz,${NS}harfbuzz,"$BIND"/harfbuzz/_generated.ha \
+	-m cairo,${NS}cairo,"$BIND"/cairo/_generated.ha \
+	-m Pango,${NS}pango,"$BIND"/pango/_generated.ha \
+	-m PangoCairo,${NS}pangocairo,"$BIND"/pangocairo/_generated.ha \
+	-m Gdk,${NS}gdk4,"$BIND"/gdk4/_generated.ha \
+	-m xlib,${NS}xlib,"$BIND"/xlib/_generated.ha \
+	-m Graphene,${NS}graphene,"$BIND"/graphene/_generated.ha \
+	-m Gsk,${NS}gsk,"$BIND"/gsk/_generated.ha \
+	-m Gtk,${NS}gtk4,"$BIND"/gtk4/_generated.ha \
 	/usr/share/gir-1.0/GLib-2.0.gir \
 	/usr/share/gir-1.0/GObject-2.0.gir \
 	/usr/share/gir-1.0/Gio-2.0.gir \