| Line | |
|---|
| 1 | #! /usr/bin/env python |
|---|
| 2 | # encoding: utf-8 |
|---|
| 3 | |
|---|
| 4 | # TODO: check these flags and how to add them to waf |
|---|
| 5 | # LIBRARIES = -DPIC -Wall |
|---|
| 6 | # CFLAGS := -g -fPIC -DPIC -Wall -Werror |
|---|
| 7 | |
|---|
| 8 | # the following two variables are used by the target "waf dist" |
|---|
| 9 | VERSION='2.0' |
|---|
| 10 | APPNAME='lv2fil' |
|---|
| 11 | |
|---|
| 12 | # these variables are mandatory ('/' are converted automatically) |
|---|
| 13 | srcdir = '.' |
|---|
| 14 | blddir = 'build' |
|---|
| 15 | |
|---|
| 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='.') |
|---|
| 20 | |
|---|
| 21 | def configure(conf): |
|---|
| 22 | conf.check_tool('compiler_cc') |
|---|
| 23 | conf.check_tool('lv2plugin', tooldir='.') |
|---|
| 24 | |
|---|
| 25 | conf.check_pkg('lv2core', mandatory=True) |
|---|
| 26 | |
|---|
| 27 | conf.env.append_unique('LINKFLAGS', '-lm') |
|---|
| 28 | |
|---|
| 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'] |
|---|