diff options
author | David Robillard <d@drobilla.net> | 2017-03-18 12:02:05 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-03-18 12:05:15 +0100 |
commit | 43a25ed63a9144afe32a4fea520412770394822c (patch) | |
tree | 67c7aa044726304b71794f64316ad68d29758325 /wscript | |
parent | 64a2647d8d81b5c23d22b52cc9e0dd2595270b67 (diff) | |
download | suil-43a25ed63a9144afe32a4fea520412770394822c.tar.gz suil-43a25ed63a9144afe32a4fea520412770394822c.tar.bz2 suil-43a25ed63a9144afe32a4fea520412770394822c.zip |
Add suil_init()
This allows the actual host argc and argv to be passed to QApplication if it is
created by Suil (for Qt in non-Qt cases), and initializes X11 threads to fix
Qt5 in Gtk2.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -10,7 +10,7 @@ from waflib import TaskGen # major increment <=> incompatible changes # minor increment <=> compatible changes (additions) # micro increment <=> no interface changes -SUIL_VERSION = '0.8.5' +SUIL_VERSION = '0.8.7' SUIL_MAJOR_VERSION = '0' # Mandatory waf variables @@ -65,6 +65,7 @@ def configure(conf): conf.env.NODELETE_FLAGS = ['-Wl,-z,nodelete'] autowaf.check_pkg(conf, 'lv2', atleast_version='1.12.0', uselib_store='LV2') + autowaf.check_pkg(conf, 'x11', uselib_store='X11') if not Options.options.no_gtk: autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK2', @@ -133,6 +134,9 @@ def configure(conf): if conf.env.HAVE_QT5: autowaf.define(conf, 'SUIL_WITH_X11_IN_QT5', 1) + if conf.env.HAVE_X11: + autowaf.define(conf, 'SUIL_WITH_X11', 1) + module_prefix = '' module_ext = '' if conf.env.PARDEBUG: @@ -346,6 +350,17 @@ def build(bld): lib = modlib) autowaf.use_lib(bld, obj, 'QT5 LV2') + if bld.env.SUIL_WITH_X11: + obj = bld(features = 'c cshlib', + source = 'src/x11.c', + target = 'suil_x11', + includes = ['.'], + defines = ['SUIL_SHARED', 'SUIL_INTERNAL'], + install_path = module_dir, + cflags = cflags, + lib = modlib) + autowaf.use_lib(bld, obj, 'X11') + # Documentation autowaf.build_dox(bld, 'SUIL', SUIL_VERSION, top, out) |