From a9634b933f71a9045e61d29c486f2d51d39fd1e2 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 23 Dec 2024 12:25:59 +0100 Subject: Add gobject-introspection generated bindings Uses the gir2pascal tool from the Lazarus IDE project, see https://wiki.freepascal.org/gir2pascal Generating gtk3 bindings involves generating all its dependencies, including glib2, etc. As long as the generated units have number of issues getting this compiled, using a copy of gtk3bindings from Lazarus for the moment. --- bindings/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 bindings/Makefile (limited to 'bindings/Makefile') diff --git a/bindings/Makefile b/bindings/Makefile new file mode 100644 index 0000000..1a24e42 --- /dev/null +++ b/bindings/Makefile @@ -0,0 +1,14 @@ +# Use this Makefile to regenerate bindings +# +# Needs gir2pascal tool from the Lazarus project + +all: + gir2pas \ + --input /usr/share/gir-1.0/Gtk-3.0.gir \ + --output-directory . \ + --overwrite-files \ + --declare-enums-as Set \ + --unit-prefix laz \ + +clean: + rm -f *.pas *.o *.a *.d *.s *.ppu *.dcu *.rst *~ *.~* -- cgit v1.2.3