blob: 567ab25960520d46bff5cb38a98f836a6b916dcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import glob
import os
import re
prefix = "/usr/local/lib/pd"
env = Environment(CPPPATH = Split(prefix + '/src /usr/local/include . src'), CPPDEFINES=['PD', 'UNIX'], SHLIBPREFIX = '', SHLIBSUFFIX = '.pd_linux', CCFLAGS = '-pipe -O2')
# C sources in src/
for extra in glob.glob('src/*.c'):
external = env.SharedLibrary(re.sub("\.c$","",os.path.basename(extra)), extra)
env.Alias('install', env.Install(os.path.join(prefix, 'extra'), external))
env.Alias('install', env.Install(os.path.join(prefix, 'doc/5.reference'), glob.glob('doc/*.pd')))
# libraries
Export('env prefix')
for subdir in Split('../miXed ../zexy'):
SConscript (subdir + '/SConscript')
|