2005-05-13 16:47:18 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import glob
|
|
|
|
|
|
|
|
Import('env libraries')
|
|
|
|
|
|
|
|
pbd3 = env.Copy()
|
|
|
|
|
|
|
|
domain = 'libpbd'
|
2006-01-13 14:48:55 -05:00
|
|
|
pbd3.Append(DOMAIN=domain,MAJOR=3,MINOR=2,MICRO=0)
|
2005-05-13 16:47:18 -04:00
|
|
|
|
|
|
|
pbd3_files = Split("""
|
|
|
|
basename.cc
|
|
|
|
dirname.cc
|
|
|
|
dmalloc.cc
|
|
|
|
mountpoint.cc
|
|
|
|
pathscanner.cc
|
|
|
|
pool.cc
|
|
|
|
pthread_utils.cc
|
|
|
|
receiver.cc
|
2006-02-15 10:55:48 -05:00
|
|
|
stacktrace.cc
|
2005-05-13 16:47:18 -04:00
|
|
|
strsplit.cc
|
|
|
|
textreceiver.cc
|
|
|
|
transmitter.cc
|
|
|
|
undo.cc
|
|
|
|
unescape.cc
|
|
|
|
version.cc
|
2006-01-13 14:48:55 -05:00
|
|
|
whitespace.cc
|
2005-05-13 16:47:18 -04:00
|
|
|
xml++.cc
|
|
|
|
""")
|
|
|
|
|
|
|
|
conf = Configure(pbd3)
|
|
|
|
if conf.CheckFunc('getmntent'):
|
|
|
|
conf.env.Append(CCFLAGS="-DHAVE_GETMNTENT")
|
2006-02-15 10:55:48 -05:00
|
|
|
if conf.CheckCHeader('execinfo.h'):
|
|
|
|
conf.env.Append(CXXFLAGS="-DHAVE_EXECINFO")
|
2005-05-13 16:47:18 -04:00
|
|
|
pbd3 = conf.Finish()
|
|
|
|
|
|
|
|
pbd3.Merge ([ libraries['sigc2'], libraries['xml'] ])
|
|
|
|
|
|
|
|
pbd3.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
|
|
|
|
pbd3.Append(CCFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
|
|
|
|
|
|
|
|
pbd3.VersionBuild(['version.cc','pbd/version.h'], 'SConscript')
|
|
|
|
|
|
|
|
libpbd3 = pbd3.StaticLibrary('pbd', pbd3_files)
|
|
|
|
Default(libpbd3)
|
2006-01-09 23:25:47 -05:00
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript' ] + pbd3_files + glob.glob('pbd/*.h')))
|