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

# generate custom z_zexy files
os.system('test -e src/z_zexy.h && rm src/z_zexy.*')
zexy_src = glob.glob('src/*.c')
os.system('cd src && sh makesource.sh')

zexy = env.SharedLibrary(target = 'zexy', source = zexy_src)
env.Alias('install', env.Install(os.path.join(prefix, 'extra'), [zexy, glob.glob('abs/*.pd')]))
env.Alias('install', env.Install(os.path.join(prefix, 'doc/zexy'), ['zexy.pd', glob.glob('examples/*.pd')]))
Default(zexy)