Currently have a def file which contains a few dep...
# kotlin-native
n
Currently have a def file which contains a few dependencies:
Copy code
headers = gtk/gtk.h gobject/gobject.h glib.h
headerFilter = gtk/* gobject/* gio/* glib/* gdk-pixbuf/*
compilerOpts.linux = -I/usr/include/gtk-3.0/gtk -I/usr/include/glib-2.0 -I/usr/include/glib-2.0/glib -I/usr/include/glib-2.0/gobject -I/usr/include/gdk-pixbuf-2.0/gdk-pixbuf
linkerOpts.linux = -L/usr/lib/x86_64-linux-gnu -lgtk-3 -lgdk-3 -latk-1.0 -lgio-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0
Is there a way to split up the dependencies? Want to split up the dependencies (glib2, gobject2, gdk3, gio2, atk1, pango1, cairo) into separate packages so they don't pollute the gtk3 package. Code completion is very slow, non GTK APIs appear in the code completion list, and the def file is difficult to maintain 😱.
d
I guess you can have multiple def files? One for each header but I don't think it'll make much of a difference.
n
Do you have a sample project that demonstrates the use of this technique?