summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-17 17:31:05 +0100
committerDavid Robillard <d@drobilla.net>2019-03-17 18:14:27 +0100
commitf164950f61a0dad02a1bce247087a0323eeab322 (patch)
tree4aed405b97428001f6396e1d23ccb218ce620000 /wscript
parentdb07a21d4848455580d6c58ce32128266dd4f47f (diff)
parent406f89271452fdb573c7e28113b1ed08ff2b4eda (diff)
downloadsuil-f164950f61a0dad02a1bce247087a0323eeab322.tar.gz
suil-f164950f61a0dad02a1bce247087a0323eeab322.tar.bz2
suil-f164950f61a0dad02a1bce247087a0323eeab322.zip
Update autowaf and adapt to new API
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 3 insertions, 5 deletions
diff --git a/wscript b/wscript
index 4a29215..210c71e 100644
--- a/wscript
+++ b/wscript
@@ -19,8 +19,7 @@ out = 'build' # Build directory
def options(ctx):
ctx.load('compiler_c')
ctx.load('compiler_cxx')
- autowaf.set_options(ctx)
- opt = ctx.get_option_group('Configuration options')
+ opt = ctx.configuration_options()
opt.add_option('--gtk2-lib-name', type='string', dest='gtk2_lib_name',
default="libgtk-x11-2.0.so.0",
@@ -29,7 +28,7 @@ def options(ctx):
default="libgtk-x11-3.0.so.0",
help="Gtk3 library name [Default: libgtk-x11-3.0.so.0]")
- autowaf.add_flags(
+ ctx.add_flags(
opt,
{'static': 'build static library',
'no-shared': 'do not build shared library',
@@ -39,8 +38,6 @@ def options(ctx):
'no-qt5': 'do not build support for Qt5'})
def configure(conf):
- autowaf.display_header('Suil Configuration')
- autowaf.set_line_just(conf, 42)
conf.load('compiler_c', cache=True)
conf.load('compiler_cxx', cache=True)
conf.load('autowaf', cache=True)
@@ -152,6 +149,7 @@ def configure(conf):
autowaf.define(conf, 'SUIL_MODULE_PREFIX', module_prefix)
autowaf.define(conf, 'SUIL_MODULE_EXT', module_ext)
+ conf.run_env.append_unique('SUIL_MODULE_DIR', conf.build_path())
autowaf.set_lib_env(conf, 'suil', SUIL_VERSION)
conf.write_config_header('suil_config.h', remove=False)