summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-20 04:03:31 +0000
committerDavid Robillard <d@drobilla.net>2011-10-20 04:03:31 +0000
commit5aa6e6180b9575d49cd5a9ac61d2752d4b083386 (patch)
tree9d8ebdaff49da42cb64812c2b05ad0b893eb5a17 /wscript
parent49f299350eb1d42309b9079392952d8f66a102b2 (diff)
downloadsuil-5aa6e6180b9575d49cd5a9ac61d2752d4b083386.tar.gz
suil-5aa6e6180b9575d49cd5a9ac61d2752d4b083386.tar.bz2
suil-5aa6e6180b9575d49cd5a9ac61d2752d4b083386.zip
Support embedding X11 UIs.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3551 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript20
1 files changed, 19 insertions, 1 deletions
diff --git a/wscript b/wscript
index dbe74ff..856bbbf 100644
--- a/wscript
+++ b/wscript
@@ -7,7 +7,7 @@ from waflib.extras import autowaf as autowaf
import waflib.Logs as Logs, waflib.Options as Options
# Version of this package (even if built as a child)
-SUIL_VERSION = '0.4.4'
+SUIL_VERSION = '0.4.5'
SUIL_MAJOR_VERSION = '0'
# Library version (UNIX style major, minor, micro)
@@ -122,6 +122,24 @@ def build(bld):
cflags = cflags)
autowaf.use_lib(bld, obj, 'GTK2 QT4')
+ if bld.is_defined('HAVE_GTK2'):
+ obj = bld(features = 'c cshlib',
+ source = 'src/x11_in_gtk2.c',
+ target = 'suil_x11_in_gtk2',
+ includes = ['.'],
+ install_path = module_dir,
+ cflags = cflags)
+ autowaf.use_lib(bld, obj, 'GTK2')
+
+ if bld.is_defined('HAVE_QT4'):
+ obj = bld(features = 'cxx cxxshlib',
+ source = 'src/x11_in_qt4.cpp',
+ target = 'suil_x11_in_qt4',
+ includes = ['.'],
+ install_path = module_dir,
+ cflags = cflags)
+ autowaf.use_lib(bld, obj, 'QT4')
+
# Documentation
autowaf.build_dox(bld, 'SUIL', SUIL_VERSION, top, out)