aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-18 08:01:59 +0000
committerDavid Robillard <d@drobilla.net>2014-12-18 08:01:59 +0000
commit16e63b592f39bb3775577b0571fc6343df3e621e (patch)
tree3273266175dbc80ab616ea25312962803bc73ba9 /wscript
parent0a6e28355df74e99337e605e9d7f3ad45a0468d2 (diff)
downloadjalv-16e63b592f39bb3775577b0571fc6343df3e621e.tar.gz
jalv-16e63b592f39bb3775577b0571fc6343df3e621e.tar.bz2
jalv-16e63b592f39bb3775577b0571fc6343df3e621e.zip
Upgrade to waf 1.8.5.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@5496 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript22
1 files changed, 9 insertions, 13 deletions
diff --git a/wscript b/wscript
index 0b18141..be9f67b 100644
--- a/wscript
+++ b/wscript
@@ -55,7 +55,7 @@ def configure(conf):
if not Options.options.no_qt:
autowaf.check_pkg(conf, 'QtGui', uselib_store='QT4',
atleast_version='4.0.0', mandatory=False)
- if conf.is_defined('HAVE_QT4'):
+ if conf.env.HAVE_QT4:
if not conf.find_program('moc-qt4', var='MOC', mandatory=False):
conf.find_program('moc')
@@ -80,14 +80,10 @@ def configure(conf):
autowaf.display_msg(conf, "Jack metadata support",
conf.is_defined('HAVE_JACK_METADATA'))
- 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",
- conf.is_defined('HAVE_QT4'))
+ autowaf.display_msg(conf, "Gtk 2.0 support", bool(conf.env.HAVE_GTK2))
+ autowaf.display_msg(conf, "Gtk 3.0 support", bool(conf.env.HAVE_GTK3))
+ autowaf.display_msg(conf, "Gtkmm 2.0 support", bool(conf.env.HAVE_GTKMM2))
+ autowaf.display_msg(conf, "Qt 4.0 support", bool(conf.env.HAVE_QT4))
print('')
def build(bld):
@@ -105,7 +101,7 @@ def build(bld):
autowaf.use_lib(bld, obj, libs)
# Gtk2 version
- if bld.is_defined('HAVE_GTK2'):
+ if bld.env.HAVE_GTK2:
obj = bld(features = 'c cprogram',
source = source + ' src/jalv_gtk.c',
target = 'jalv.gtk',
@@ -115,7 +111,7 @@ def build(bld):
autowaf.use_lib(bld, obj, libs + ' GTK2')
# Gtk3 version
- if bld.is_defined('HAVE_GTK3'):
+ if bld.env.HAVE_GTK3:
obj = bld(features = 'c cprogram',
source = source + ' src/jalv_gtk.c',
target = 'jalv.gtk3',
@@ -125,7 +121,7 @@ def build(bld):
autowaf.use_lib(bld, obj, libs + ' GTK3')
# Gtkmm version
- if bld.is_defined('HAVE_GTKMM2'):
+ if bld.env.HAVE_GTKMM2:
obj = bld(features = 'c cxx cxxprogram',
source = source + ' src/jalv_gtkmm2.cpp',
target = 'jalv.gtkmm',
@@ -135,7 +131,7 @@ def build(bld):
autowaf.use_lib(bld, obj, libs + ' GTKMM2')
# Qt version
- if bld.is_defined('HAVE_QT4'):
+ if bld.env.HAVE_QT4:
obj = bld(rule = '${MOC} ${SRC} > ${TGT}',
source = 'src/jalv_qt4.cpp',
target = 'jalv_qt4_meta.hpp')