Skip to content

Commit cb0430b

Browse files
author
sampo.savolainen
committed
Waf & lv2
1 parent 27d3cb2 commit cb0430b

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

waf

84.3 KB
Binary file not shown.

wscript

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#! /usr/bin/env python
2+
# encoding: utf-8
3+
4+
import autowaf
5+
6+
VERSION = "2.0"
7+
APPNAME = "foo-plugins"
8+
srcdir = "."
9+
blddir = "build"
10+
11+
12+
13+
def configure(conf):
14+
autowaf.configure(conf)
15+
autowaf.check_pkg(conf, 'lv2-plugin', uselib_store='LV2-PLUGIN', atleast_version='1.0.2')
16+
conf.env['shlib_PATTERN'] = '%s.so'
17+
# we need to check whether user provides compiler options, otherwise..
18+
compiler_options = [ '-Wall', '-O3', '-msse', '-msse2', '-mfpmath=sse', '-ffast-math' ]
19+
conf.env.append_value('CXXFLAGS', compiler_options)
20+
21+
def set_options(opt):
22+
autowaf.set_options(opt)
23+
24+
def build(bld):
25+
obj = bld.new_task_gen('cxx', 'shlib')
26+
obj.source = '''
27+
src/schmooz_mono_lv2.cpp
28+
src/schmooz_stereo_lv2.cpp
29+
src/chop.cpp
30+
src/driver.cpp
31+
'''
32+
33+
obj.name = "schmooz"
34+
obj.uselib = "LV2-PLUGIN"
35+
obj.vnum = ""
36+
obj.target = "foo-plugins"
37+
obj.install_path = "/home/v2/.lv2/schmooz.lv2"
38+
39+
bld.install_files("/home/v2/.lv2/schmooz.lv2", "src/ttl/manifest.ttl")
40+
bld.install_files("/home/v2/.lv2/schmooz.lv2", "src/ttl/schmooz-mono.ttl")
41+
bld.install_files("/home/v2/.lv2/schmooz.lv2", "src/ttl/schmooz-stereo.ttl")
42+
bld.install_files("/home/v2/.lv2/schmooz.lv2", "src/ttl/chop.ttl")
43+
bld.install_files("/home/v2/.lv2/schmooz.lv2", "src/ttl/driver.ttl")
44+
45+
46+
47+
def shutdown():
48+
autowaf.shutdown()
49+
50+

0 commit comments

Comments
 (0)