Re: Compiling Gtk (DUIM) on osx?

Francesco Ceccon <[email protected]> Tue, 17 Sep 2013 13:25:44 +0200
Newsgroups gmane.comp.lang.dylan.gwydion.devel
Message-ID <[email protected]>
>  Quick question – how does the Dylan-compiler know where the gtk libraries are? Is it assuming /opt/gtk or does it know about pkg-config?

It uses pkg-config, if you look at, for example, gtk-dylan.lid you can see that an additional jam file is included with `jam-includes: gtk-dylan.jam`, this file contains additional flags passed to dylan-compiler (this is just the gist of it). If you look at it you can
see this:

LINKLIBS on $(_dll) += `pkg-config --libs gtk+-3.0` ;
CCFLAGS += `pkg-config --cflags gtk+-3.0` ;

This tells the compiler which flags pass to the C compiler and linker.

I hope I explained it well enough.

- Francesco
_______________________________________________
hackers mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/hackers