From eb33777e6ab2f9ebd5f398bb9c9a9ae92ac3531d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 3 Aug 2012 01:57:22 +0000 Subject: Support for embedding native Windows UIs in Gtk2. git-svn-id: http://svn.drobilla.net/lad/trunk/suil@4603 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index 2b873dd..78b98af 100644 --- a/wscript +++ b/wscript @@ -65,8 +65,13 @@ def configure(conf): autowaf.define(conf, 'SUIL_MODULE_DIR', conf.env['LIBDIR'] + '/suil-' + SUIL_MAJOR_VERSION) autowaf.define(conf, 'SUIL_DIR_SEP', '/') - autowaf.define(conf, 'SUIL_MODULE_EXT', '.so') autowaf.define(conf, 'SUIL_GTK2_LIB_NAME', Options.options.gtk2_lib_name); + if Options.platform == 'win32': + autowaf.define(conf, 'SUIL_MODULE_PREFIX', '') + autowaf.define(conf, 'SUIL_MODULE_EXT', '.dll') + else: + autowaf.define(conf, 'SUIL_MODULE_PREFIX', 'lib') + autowaf.define(conf, 'SUIL_MODULE_EXT', '.so') conf.env['LIB_SUIL'] = ['suil-%s' % SUIL_MAJOR_VERSION] @@ -138,6 +143,16 @@ def build(bld): linkflags = bld.env['NODELETE_FLAGS']) autowaf.use_lib(bld, obj, 'GTK2 LV2') + if sys.platform == 'win32': + obj = bld(features = 'cxx cxxshlib', + source = 'src/win_in_gtk2.c', + target = 'suil_win_in_gtk2', + includes = ['.'], + install_path = module_dir, + cflags = cflags, + linkflags = bld.env['NODELETE_FLAGS']) + autowaf.use_lib(bld, obj, 'GTK2 LV2') + if bld.is_defined('HAVE_QT4'): obj = bld(features = 'cxx cxxshlib', source = 'src/x11_in_qt4.cpp', -- cgit v1.2.1