From eee62b7f32e4ef7aaca09565fa53b54ad0815970 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 26 Apr 2020 21:44:09 +0200 Subject: Implement size hints for X11 in Qt5 --- wscript | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 3bd065f..7a4aea8 100644 --- a/wscript +++ b/wscript @@ -107,6 +107,9 @@ def configure(conf): conf.check_pkg('Qt5Widgets >= 5.1.0', uselib_store='QT5', mandatory=False) + conf.check_pkg('Qt5X11Extras >= 5.1.0', + uselib_store='QT5_X11', + mandatory=False) if not conf.options.no_cocoa: if conf.check_cxx(header_name = 'QMacCocoaViewContainer', @@ -152,7 +155,7 @@ def configure(conf): if conf.env.HAVE_QT4: enable_module('SUIL_WITH_X11_IN_QT4') - if conf.env.HAVE_QT5: + if conf.env.HAVE_QT5 and conf.env.HAVE_QT5_X11: enable_module('SUIL_WITH_X11_IN_QT5') if conf.env.HAVE_X11: @@ -388,7 +391,7 @@ def build(bld): install_path = module_dir, cflags = cflags, lib = modlib, - uselib = 'QT5 LV2') + uselib = 'QT5 QT5_X11 LV2 X11') if bld.env.SUIL_WITH_COCOA_IN_QT5: obj = bld(features = 'cxx cxxshlib', -- cgit v1.2.1