Re: [LAD] [ALPHA] ladspa.m.lv2 - Some questions :D

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Florian Paul Schmidt <mista.tapas@...>
Cc: <linux-audio-dev@...>
Date: Thursday, April 25, 2013 - 6:00 am

Am 23.04.2013 13:38, schrieb Florian Paul Schmidt:

So you mean command-line options? Or do you look for some automatism?
However, here are command-line options implementations for this:

def options(opt):
opt.load('compiler_c')
autowaf.set_options(opt)
comp = opt.add_option_group ('Set additional build flags', '')

comp.add_option('--cflags',
type='string',
default='-Wall',
dest='cflags',
help='C base compiler flags [Default: %default]')

comp.add_option('--linkflags',
type='string',
default='',
dest='cshlibLINKFLAGS',
help='C base link flags [Default: %default]')

def configure(conf):
conf.load('compiler_c')
autowaf.configure(conf)
autowaf.display_header('Amp Configuration')

opt = conf.options

if opt.cflags:
conf.env['CFLAGS'] += opt.cflags.split()
if opt.cshlibLINKFLAGS:
conf.env['LINKFLAGS_cshlib'] += opt.cshlibLINKFLAGS.split()

[.....]

autowaf.display_msg(conf, "LV2 bundle directory", conf.env['LV2DIR'])
autowaf.display_msg(conf, "Cflags in use", conf.env['CFLAGS'])
autowaf.display_msg(conf, "Linkflags in use",
conf.env['LINKFLAGS_cshlib'])

greets
hermann
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] [ALPHA] ladspa.m.lv2 - Some questions :D, Florian Paul Schmidt, (Mon Apr 22, 5:33 am)
Re: [LAD] [ALPHA] ladspa.m.lv2 - Some questions :D, hermann meyer, (Tue Apr 23, 10:47 am)
Re: [LAD] [ALPHA] ladspa.m.lv2 - Some questions :D, David Robillard, (Thu May 9, 8:47 pm)
Re: [LAD] [ALPHA] ladspa.m.lv2 - Some questions :D, Florian Paul Schmidt, (Thu May 9, 9:02 pm)
Re: [LAD] [ALPHA] ladspa.m.lv2 - Some questions :D, David Robillard, (Thu May 9, 9:16 pm)
Re: [LAD] [ALPHA] ladspa.m.lv2 - Some questions :D, Florian Paul Schmidt, (Thu May 9, 9:25 pm)
Re: [LAD] [ALPHA] ladspa.m.lv2 - Some questions :D, Florian Paul Schmidt, (Tue Apr 23, 11:38 am)
Re: [LAD] [ALPHA] ladspa.m.lv2 - Some questions :D, hermann meyer, (Thu Apr 25, 6:00 am)