diff options
Diffstat (limited to 'plugins/eg-sampler.lv2/wscript')
| -rw-r--r-- | plugins/eg-sampler.lv2/wscript | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/plugins/eg-sampler.lv2/wscript b/plugins/eg-sampler.lv2/wscript index a4b6535..9dd0b61 100644 --- a/plugins/eg-sampler.lv2/wscript +++ b/plugins/eg-sampler.lv2/wscript @@ -29,6 +29,8 @@ def configure(conf):      autowaf.check_header(conf, 'c', 'lv2/lv2plug.in/ns/ext/persist/persist.h')      autowaf.check_pkg(conf, 'sndfile', uselib_store='SNDFILE',                        atleast_version='1.0.0', mandatory=True) +    autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK2', +                      atleast_version='2.18.0', mandatory=False)      conf.env.append_value('CFLAGS', '-std=c99') @@ -68,3 +70,13 @@ def build(bld):                install_path = '${LV2DIR}/%s' % bundle,                use          = 'SNDFILE') +    # Build UI library +    if bld.is_defined('HAVE_GTK2'): +        obj = bld(features     = 'c cshlib', +                  env          = penv, +                  source       = 'sampler_ui.c', +                  name         = 'sampler_ui', +                  target       = '%s/sampler_ui' % bundle, +                  install_path = '${LV2DIR}/%s' % bundle, +                  use          = 'GTK2') + |