summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-15 22:41:56 +0000
committerDavid Robillard <d@drobilla.net>2011-03-15 22:41:56 +0000
commit73eeb2286e9d3edbd727abaeb88891cb8a59cf6d (patch)
tree37617e66a29b18ff082e96a880ee665780d84702 /wscript
parentac6464856b7d707f4601ae294b805466d0e43b8a (diff)
downloadsuil-73eeb2286e9d3edbd727abaeb88891cb8a59cf6d.tar.gz
suil-73eeb2286e9d3edbd727abaeb88891cb8a59cf6d.tar.bz2
suil-73eeb2286e9d3edbd727abaeb88891cb8a59cf6d.zip
Remove autowaf external (broken intermediary revision).
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3095 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript22
1 files changed, 7 insertions, 15 deletions
diff --git a/wscript b/wscript
index 86f82d4..e824451 100644
--- a/wscript
+++ b/wscript
@@ -1,13 +1,9 @@
#!/usr/bin/env python
-import Logs
-import Options
-import autowaf
-import filecmp
-import glob
-import os
-import shutil
import subprocess
+import waflib.Logs as Logs, waflib.Options as Options
+from waflib.extras import autowaf as autowaf
+
# Version of this package (even if built as a child)
SUIL_VERSION = '0.0.0'
@@ -34,7 +30,7 @@ def configure(conf):
autowaf.configure(conf)
autowaf.display_header('Suil Configuration')
- conf.check_tool('compiler_cc')
+ conf.load('compiler_cc')
conf.env.append_value('CFLAGS', '-std=c99')
autowaf.check_header(conf, 'lv2/lv2plug.in/ns/extensions/ui/ui.h')
@@ -51,12 +47,8 @@ def configure(conf):
autowaf.define(conf, 'SUIL_MODULE_EXT', '.so')
conf.write_config_header('suil-config.h', remove=False)
- autowaf.display_msg(conf, "Gtk2 Support",
- bool(conf.env['HAVE_GTK2']))
-
- autowaf.display_msg(conf, "Qt4 Support",
- bool(conf.env['HAVE_QT4']))
-
+ autowaf.display_msg(conf, "Gtk2 Support", conf.is_defined('HAVE_GTK2'))
+ autowaf.display_msg(conf, "Qt4 Support", conf.is_defined('HAVE_QT4'))
print('')
def build(bld):
@@ -77,7 +69,7 @@ def build(bld):
obj.install_path = '${LIBDIR}'
obj.cflags = [ '-fvisibility=hidden', '-DSUIL_SHARED', '-DSUIL_INTERNAL' ]
- if bld.env['HAVE_GTK2'] and bld.env['HAVE_QT4']:
+ if bld.is_defined('HAVE_GTK2') and bld.is_defined('HAVE_QT4'):
obj = bld(features = 'cxx cxxshlib')
obj.source = 'src/gtk2_in_qt4.cpp'
obj.target = 'suil_gtk2_in_qt4'