updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pd-plugin / SConstruct
blob0761ab2a975971955555e7d223e404bf568b3d02
1 import glob
2 import os
3 import re
4 prefix = "/usr/lib/pd"
6 env = Environment(CPPPATH = Split(prefix + '/src /usr/include /usr/local/include . ../../pd/src ../../src src'), CPPDEFINES=['PD','UNIX'], SHLIBPREFIX = '', SHLIBSUFFIX = '.pd_linux', CCFLAGS = '-pipe -O2 -g')
8 #check for headers
9 conf = Configure(env)
10 if conf.CheckCHeader('locale.h'):
11 env.Append(CPPDEFINES='HAVE_LOCALE_H')
13 external = env.SharedLibrary('plugin~',glob.glob('*.c'))
14 env.Alias('install', env.Install(os.path.join(prefix, 'extra'), external))
15 env.Alias('install', env.Install(os.path.join(prefix, 'doc/5.reference'),'plugin~-help.pd'))
16 Default(external)