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"
12 # these variables are mandatory ('/' are converted automatically)
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
='.')
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')
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']