-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
58 lines (46 loc) · 1.38 KB
/
wscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
import glob
import os
import re
import shutil
import subprocess
import sys
from waflib.extras import autowaf as autowaf
import waflib.Context as Context
import waflib.Logs as Logs
import waflib.Options as Options
import waflib.Scripting as Scripting
# Variables for 'waf dist'
APPNAME = 'psi-plugins.lv2'
VERSION = '0.0.1'
# Mandatory variables
top = '.'
out = 'build'
def options(opt):
opt.load('compiler_c')
opt.load('compiler_cxx')
autowaf.set_options(opt)
def configure(conf):
conf.load('compiler_c')
conf.load('compiler_cxx')
autowaf.configure(conf)
autowaf.set_c99_mode(conf)
if Options.platform == 'win32' or not hasattr(os.path, 'relpath'):
Logs.warn('System does not support linking headers, copying')
Options.options.copy_headers = True
autowaf.set_recursive()
for i in conf.path.ant_glob('*.lv2', src=False, dir=True):
try:
conf.recurse(i.srcpath())
conf.env.LV2_BUILD += [i.srcpath()]
except:
Logs.warn('Configuration failed, %s will not be built\n' % i)
autowaf.configure(conf)
autowaf.display_header('LV2 Configuration')
autowaf.display_msg(conf, 'Bundle directory', conf.env.LV2DIR)
autowaf.display_msg(conf, 'Version', VERSION)
def build(bld):
# Build plugins
for i in bld.env.LV2_BUILD:
print (i)
bld.recurse(i)