diff options
author | David Robillard <d@drobilla.net> | 2012-05-31 06:03:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-31 06:03:45 +0000 |
commit | 8b46fd1ff51b29cded517c9c2d166611e8c453fc (patch) | |
tree | 14a338294d302e663818570796bb5311297a9748 /wscript | |
parent | 9529f203c09d6dc8f4c2f12c3add9ec906f4bdba (diff) | |
download | blop.lv2-8b46fd1ff51b29cded517c9c2d166611e8c453fc.tar.gz blop.lv2-8b46fd1ff51b29cded517c9c2d166611e8c453fc.tar.bz2 blop.lv2-8b46fd1ff51b29cded517c9c2d166611e8c453fc.zip |
Blip => Blop. I give up trying to give ports new names.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/blop.lv2@4484 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 44 |
1 files changed, 30 insertions, 14 deletions
@@ -8,7 +8,7 @@ from waflib.extras import autowaf as autowaf BLIP_VERSION = '0.0.0' # Variables for 'waf dist' -APPNAME = 'blip.lv2' +APPNAME = 'blop.lv2' VERSION = BLIP_VERSION # Mandatory variables @@ -34,7 +34,7 @@ def configure(conf): define_name = 'HAVE_SINF', mandatory = False) - conf.write_config_header('blip_config.h', remove=False) + conf.write_config_header('blop_config.h', remove=False) # Set env['pluginlib_PATTERN'] pat = conf.env['cshlib_PATTERN'] @@ -71,23 +71,23 @@ def build_plugin(bld, lang, bundle, name, source, cflags=[], libs=[]): bld.install_files('${LV2DIR}/' + bundle, os.path.join(bundle, data_file)) def build(bld): - # Copy data files to build bundle (build/blip.lv2) + # Copy data files to build bundle (build/blop.lv2) def do_copy(task): src = task.inputs[0].abspath() tgt = task.outputs[0].abspath() return shutil.copy(src, tgt) - for i in bld.path.ant_glob('blip.lv2/*.ttl'): + for i in bld.path.ant_glob('blop.lv2/*.ttl'): bld(rule = do_copy, source = i, - target = bld.path.get_bld().make_node('blip.lv2/%s' % i), - install_path = '${LV2DIR}/blip.lv2') + target = bld.path.get_bld().make_node('blop.lv2/%s' % i), + install_path = '${LV2DIR}/blop.lv2') bld(features = 'subst', - source = 'blip.lv2/manifest.ttl.in', - target = bld.path.get_bld().make_node('blip.lv2/manifest.ttl'), + source = 'blop.lv2/manifest.ttl.in', + target = bld.path.get_bld().make_node('blop.lv2/manifest.ttl'), LIB_EXT = bld.env['pluginlib_EXT'], - install_path = '${LV2DIR}/blip.lv2') + install_path = '${LV2DIR}/blop.lv2') plugins = ''' adsr @@ -111,18 +111,34 @@ def build(bld): # Simple (single source file) plugins for i in plugins: - build_plugin(bld, 'c', 'blip.lv2', i, + build_plugin(bld, 'c', 'blop.lv2', i, ['src/%s.c' % i]) # Low pass filter - build_plugin(bld, 'c', 'blip.lv2', 'lp4pole', + build_plugin(bld, 'c', 'blop.lv2', 'lp4pole', ['src/lp4pole.c', 'src/lp4pole_filter.c']) # Oscillators for i in ['pulse', 'sawtooth', 'square', 'triangle']: - build_plugin(bld, 'c', 'blip.lv2', i, + build_plugin(bld, 'c', 'blop.lv2', i, ['src/%s.c' % i, 'src/wavedata.c']) + # Sequencers + for i in [16, 32, 64]: + uri = 'http://drobilla.net/plugins/blip/sequencer_%d' % i + build_plugin(bld, 'c', 'blop.lv2', 'sequencer_%d' % i, + ['src/sequencer.c'], + cflags=['-DSEQUENCER_MAX_INPUTS=%d' % i, + '-DSEQUENCER_URI="%s"' % uri]) + + # Quantisers + for i in [20, 50, 100]: + uri = 'http://drobilla.net/plugins/blip/quantiser_%d' % i + build_plugin(bld, 'c', 'blop.lv2', 'quantiser_%d' % i, + ['src/quantiser.c'], + cflags=['-DQUANTISER_MAX_INPUTS=%d' % i, + '-DQUANTISER_URI="%s"' % uri]) + # Wavegen wavegen = bld(features = 'c cprogram', source = ['src/wavegen.c', 'src/wdatutil.c'], @@ -147,10 +163,10 @@ def build(bld): obj = bld(features = 'c cshlib', source = bld.path.get_bld().make_node('src/%s_data.c' % i), - target = 'blip.lv2/%s_data' % i, + target = 'blop.lv2/%s_data' % i, includes = ['./src', './src/include'], env = penv, - install_path = '${LV2DIR}/blip.lv2') + install_path = '${LV2DIR}/blop.lv2') |