aboutsummaryrefslogtreecommitdiff
path: root/SConscript
blob: 12aa22c87bf673f1b0dd5afce762578b9198acd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import glob
import os
import re
Import('env prefix')
env.Append(CPPPATH = '/usr/include/speex')

for tk in glob.glob('*/*.tk'):
    (dir, file) = os.path.split(tk)
    filename = re.sub("\.tk$","",file)
    cmd = "./tk2c.bash < " + dir + "/" + file + " > " + dir + "/" + filename + ".tk2c"
    os.popen(cmd)

for extra in glob.glob('*/*.c'):
    unauthorized = env.SharedLibrary(target = re.sub("\.c$","",os.path.basename(extra)), source = extra)
    env.Alias('install', env.Install(os.path.join(prefix, 'extra'), unauthorized))
    Default(unauthorized)

env.Alias('install', env.Install(os.path.join(prefix, 'doc/5.reference'), glob.glob('*/*.pd')))