root/wscript

Revision 18130f5af841b306027cdd11643467ddfd2cc9a4, 1.0 KB (checked in by Nedko Arnaudov <nedko@…>, 5 months ago)

link with libm; Fix for #13

  • Property mode set to 100644
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"
9VERSION='2.0'
10APPNAME='lv2fil'
11
12# these variables are mandatory ('/' are converted automatically)
13srcdir = '.'
14blddir = 'build'
15
16def 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
21def 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
29def 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']
Note: See TracBrowser for help on using the browser.