hide on cleanup
[lv2fil.git] / wscript
blob3e811d5eb3df0d36aeb15bc9cafc36a58c56a894
1 #! /usr/bin/env python
2 # encoding: utf-8
4 # TODO: check these flags and how to add them to waf
5 # LIBRARIES = -DPIC -Wall
6 # CFLAGS := -g -fPIC -DPIC -Wall -Werror
8 # the following two variables are used by the target "waf dist"
9 VERSION='2.0'
10 APPNAME='lv2fil'
12 # these variables are mandatory ('/' are converted automatically)
13 srcdir = '.'
14 blddir = 'build'
16 def set_options(opt):
17 opt.parser.remove_option('--prefix') # prefix as commonly used concept has no use here, so we remove it to not add confusion
18 opt.tool_options('compiler_cc')
19 opt.tool_options('lv2plugin', tooldir='.')
21 def configure(conf):
22 conf.check_tool('compiler_cc')
23 conf.check_tool('lv2plugin', tooldir='.')
25 conf.check_pkg('lv2core', mandatory=True)
27 conf.env.append_unique('LINKFLAGS', '-lm')
29 def build(bld):
30 filter = bld.create_obj('lv2plugin', type='cc')
31 filter.uselib = 'LV2CORE'
32 filter.target = 'filter'
33 filter.ttl = ['filter.ttl', 'manifest.ttl', 'ui', 'lv2logo.png']
34 filter.source = ['filter.c', 'lv2filter.c', 'lv2plugin.c', 'log.c', 'lv2_ui.c']