aboutsummaryrefslogtreecommitdiff
path: root/SConscript
blob: 4f395a621300ac3af4159312ca50a0f47a24c754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import glob
import os
import re
Import('env prefix')

libOSC = glob.glob('libOSC/OSC*.c')
miscOSC = Split('src/htmsocket.c src/OSC-pattern-match.c src/OSC-system-dependent.c')

for OSCexternal in Split('dumpOSC sendOSC OSC OSCroute'):
    src = ["src/" + OSCexternal + ".c", libOSC, miscOSC]
    if (OSCexternal == 'OSC'):
        src.extend(Split('src/dumpOSC.c src/sendOSC.c src/OSCroute.c'))
    OSCx = env.SharedLibrary(target = re.sub("\.c$","",os.path.basename(OSCexternal)), source = src, CPPPATH = ['$CPPPATH', 'libOSC'])
    env.Alias('install', env.Install(os.path.join(prefix, 'extra'), OSCx))
    Default(OSCx)

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