aboutsummaryrefslogtreecommitdiff
path: root/externals/build/SConstruct
blob: a5178696728f900b7e49d142b8b46f4c54532e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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))
    Default(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 pmpd unauthorized zexy'):
    SConscript ('../' + subdir + '/SConscript')