summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript17
1 files changed, 16 insertions, 1 deletions
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',