summaryrefslogtreecommitdiff
path: root/bindings/Makefile
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2024-12-23 12:25:59 +0100
committerTomas Bzatek <tbzatek@redhat.com>2025-11-27 19:36:06 +0100
commita9634b933f71a9045e61d29c486f2d51d39fd1e2 (patch)
treeeec472463f27971c2b477efe1ddfd4eb37cddfdd /bindings/Makefile
parent585635371a182d2b3cd5400f6d26d8e20ade6dbd (diff)
downloadtuxcmd-a9634b933f71a9045e61d29c486f2d51d39fd1e2.tar.xz
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.
Diffstat (limited to 'bindings/Makefile')
-rw-r--r--bindings/Makefile14
1 files changed, 14 insertions, 0 deletions
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 *~ *.~*