aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
blob: be134c8b712616b970cb2a7575bffeb07d43c45d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import glob
import os
import re
prefix = "/usr/local/lib/pd"

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')

#check for headers
conf = Configure(env)
if conf.CheckCHeader('locale.h'):
  env.Append(CPPDEFINES='HAVE_LOCALE_H')

external = env.SharedLibrary('plugin~',glob.glob('*.c'))
env.Alias('install', env.Install(os.path.join(prefix, 'extra'), external))
env.Alias('install', env.Install(os.path.join(prefix, 'doc/5.reference'),'plugin~-help.pd'))
Default(external)