aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-07-29 23:00:12 +0000
committerDavid Robillard <d@drobilla.net>2012-07-29 23:00:12 +0000
commit35e38f95feed56dab2e5b1b10a7939ab640e3163 (patch)
treefb811361aa8dc2a586ad9e56ee02571a4608b441 /wscript
parent8bc6d3f84b425120d43ca32eb576f77ddea5bb55 (diff)
downloadjalv-35e38f95feed56dab2e5b1b10a7939ab640e3163.tar.gz
jalv-35e38f95feed56dab2e5b1b10a7939ab640e3163.tar.bz2
jalv-35e38f95feed56dab2e5b1b10a7939ab640e3163.zip
Add Gtk3 UI.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4572 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript18
1 files changed, 16 insertions, 2 deletions
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',