Update of /cvsroot/pure-data/pd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21497
Added Files: Tag: devel_0_39 SConstruct Log Message: removal of this file was on the wrong branch
--- NEW FILE: SConstruct --- env = Environment()
#env.SConsignFile("whatevah") env.CacheDir('./obj')
###################################################################### # # general configuration
opt = Options(['options.cache', 'custom.py']) opt.AddOptions( ('prefix', 'install prefix', '/usr/local'), BoolOption('icc', 'use intel c compiler', False))
#platform-specific options
if env['PLATFORM'] == 'darwin': opt.AddOptions( ('portmidipath', 'Path to portmidi','../portmidi_osx'), BoolOption('app_pkg', 'Build for inclusion in .app package', False), )
opt.Update(env)
opt.Save('options.cache',env)
if env['icc']: env.Replace(CC="icc", SHCC="icc", CXX="icc", LINK="icc", SHCXX="icc", SHLINK="icc", ) env.Append(LINKFLAGS="-static-libcxa")
env.Append(CCFLAGS=' -ip') env.Append(LINKFLAGS='-ip') print "Using intel c compiler" Export("env")
##Help(opt.GenerateHelpText(env))
pdwatchdog, pdsend, pdreceive, pdgui, pd, pdlib = SConscript('./src/SConscript')
extras = SConscript('./extra/SConscript', 'pdlib')
###################################################################### # # installing stuff
prefix = env['prefix']
try: app_pkg = env['app_pkg'] except: app_pkg = None
installs = []
ddfiles = Split(""" defaults.ddrc pkgIndex.tcl poe.tcl pre8.5.tcl bgerror.tcl locale/bokmal.tcl locale/catala.tcl locale/deutsch.tcl locale/english.tcl locale/espanol.tcl locale/francais.tcl locale/italiano.tcl locale/portugues.tcl icons/array.gif icons/bang.gif icons/canvas.gif icons/comment.gif icons/graph.gif icons/hradio.gif icons/hslider.gif icons/message.gif icons/mode_edit.gif icons/mode_run.gif icons/number.gif icons/number2.gif icons/object.gif icons/symbol.gif icons/toggle.gif icons/vradio.gif icons/vslider.gif icons/vu.gif """)
installs.append(env.Install(prefix+'/bin', pdsend)) installs.append(env.Install(prefix+'/bin', pdreceive)) installs.append(env.Install(prefix+'/bin', pd)) if not app_pkg: installs.append(env.Install(prefix+'/lib/pd/bin', pdgui)) else: installs.append(env.Install(prefix+'/bin', pdgui)) if env['PLATFORM']=='posix': if app_pkg: installs.append(env.Install(prefix+'/lib/pd/bin', pdwatchdog)) else: installs.append(env.Install(prefix+'/bin', pdwatchdog))
if not app_pkg: installs.append(env.InstallAs(prefix + '/lib/pd/bin/pd.tk','src/u_main.tk')) else: installs.append(env.InstallAs(prefix + '/bin/pd.tk','src/u_main.tk'))
if not app_pkg: for extra in extras: installs.append(env.Install(prefix+'/lib/extra/', extra)) try: installs.append(env.Install(prefix+'/lib', pdlib)) except: pass else: for extra in extras: installs.append(env.Install(prefix+'/extra/', extra)) try: installs.append(env.Install(prefix+'/bin', pdlib)) except: pass
headers = Split("m_pd.h m_imp.h g_canvas.h")
for header in headers: installs.append(env.Install(prefix+'/include', 'src/'+header))
env.Alias('install', installs)