From 35e38f95feed56dab2e5b1b10a7939ab640e3163 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Jul 2012 23:00:12 +0000 Subject: Add Gtk3 UI. git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4572 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index ffad7f6..971ec43 100644 --- a/wscript +++ b/wscript @@ -46,6 +46,8 @@ def configure(conf): atleast_version='0.120.0', mandatory=True) autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK2', atleast_version='2.18.0', mandatory=False) + autowaf.check_pkg(conf, 'gtk+-3.0', uselib_store='GTK3', + atleast_version='3.0.0', mandatory=False) autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM2', atleast_version='2.20.0', mandatory=False) autowaf.check_pkg(conf, 'QtGui', uselib_store='QT4', @@ -66,6 +68,8 @@ def configure(conf): autowaf.display_msg(conf, "Gtk 2.0 support", conf.is_defined('HAVE_GTK2')) + autowaf.display_msg(conf, "Gtk 3.0 support", + conf.is_defined('HAVE_GTK3')) autowaf.display_msg(conf, "Gtkmm 2.0 support", conf.is_defined('HAVE_GTKMM2')) autowaf.display_msg(conf, "Qt 4.0 support", @@ -86,16 +90,26 @@ def build(bld): install_path = '${BINDIR}') autowaf.use_lib(bld, obj, libs) - # Gtk version + # Gtk2 version if bld.is_defined('HAVE_GTK2'): obj = bld(features = 'c cprogram', - source = source + ' src/jalv_gtk2.c', + source = source + ' src/jalv_gtk.c', target = 'jalv.gtk', includes = ['.', 'src'], lib = ['pthread', 'm'], install_path = '${BINDIR}') autowaf.use_lib(bld, obj, libs + ' GTK2') + # Gtk3 version + if bld.is_defined('HAVE_GTK3'): + obj = bld(features = 'c cprogram', + source = source + ' src/jalv_gtk.c', + target = 'jalv.gtk3', + includes = ['.', 'src'], + lib = ['pthread', 'm'], + install_path = '${BINDIR}') + autowaf.use_lib(bld, obj, libs + ' GTK3') + # Gtkmm version if bld.is_defined('HAVE_GTKMM2'): obj = bld(features = 'c cxx cxxprogram', -- cgit v1.2.1