scan code for required gtk version

2011-01-01 Thread Dan McMahill
Is there a way to scan ones source code automatically to determine the
minimum required version of gtk and also glib?  The reason I ask is I've
been involved in a project that doesn't really use lots of the most
cutting edge features and in general, we only want to bump the required
version in cases where there is some really motivating reason to do so.
 That said, I also don't want to maintain a whole bunch of different gtk
installs only for purposes of trying to see how far back I can go and
still build this other program.

Thanks
-Dan
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: scan code for required gtk version

2011-01-01 Thread Colomban Wendling
Hi,

Le 01/01/2011 16:30, Dan McMahill a écrit :
 Is there a way to scan ones source code automatically to determine the
 minimum required version of gtk and also glib?  The reason I ask is I've
 been involved in a project that doesn't really use lots of the most
 cutting edge features and in general, we only want to bump the required
 version in cases where there is some really motivating reason to do so.
  That said, I also don't want to maintain a whole bunch of different gtk
 installs only for purposes of trying to see how far back I can go and
 still build this other program.
I don't know any official ways, but I've mad a little script (very
hackish for now, but works quote well though) that extracts glib symbols
from C sources and check them against the version in the docs.

You can fetch them:
http://ban.free-h.net/progs/var/check_glib_dep.sh
http://ban.free-h.net/progs/var/gtkdoc-html-get-since.py

check_glib_dep.sh is the script to launch, and it expects
gtkdoc-html-get-since.py to be in ~/bin. You can of course tune as you want.

Regards,
Colomban
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list