aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript14
1 files changed, 14 insertions, 0 deletions
diff --git a/wscript b/wscript
index 9006a43..f04a9e0 100644
--- a/wscript
+++ b/wscript
@@ -45,6 +45,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, 'gtkmm-2.4', uselib_store='GTKMM2',
+ atleast_version='2.20.0', mandatory=False)
autowaf.check_pkg(conf, 'QtGui', uselib_store='QT4',
atleast_version='4.0.0', mandatory=False)
@@ -72,6 +74,8 @@ def configure(conf):
conf.is_defined('HAVE_LV2_STATE'))
autowaf.display_msg(conf, "Gtk 2.0 support",
conf.is_defined('HAVE_GTK2'))
+ autowaf.display_msg(conf, "Gtkmm 2.0 support",
+ conf.is_defined('HAVE_GTKMM2'))
autowaf.display_msg(conf, "Qt 4.0 support",
conf.is_defined('HAVE_QT4'))
print('')
@@ -100,6 +104,16 @@ def build(bld):
install_path = '${BINDIR}')
autowaf.use_lib(bld, obj, libs + ' GTK2')
+ # Gtkmm version
+ if bld.is_defined('HAVE_GTKMM2'):
+ obj = bld(features = 'c cxx cxxprogram',
+ source = source + ' src/jalv_gtkmm2.cpp',
+ target = 'jalv.gtkmm',
+ includes = ['.', 'src'],
+ lib = ['pthread'],
+ install_path = '${BINDIR}')
+ autowaf.use_lib(bld, obj, libs + ' GTKMM2')
+
# Qt version
if bld.is_defined('HAVE_QT4'):
obj = bld(features = 'c cxx cxxprogram',