2005-05-13 16:47:18 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
2006-04-25 20:45:27 -04:00
|
|
|
import os
|
|
|
|
import os.path
|
2005-05-13 16:47:18 -04:00
|
|
|
import glob
|
|
|
|
|
2006-04-25 20:45:27 -04:00
|
|
|
Import('env libraries i18n install_prefix')
|
2005-05-13 16:47:18 -04:00
|
|
|
|
|
|
|
pbd3 = env.Copy()
|
|
|
|
|
|
|
|
domain = 'libpbd'
|
2006-04-24 18:45:19 -04:00
|
|
|
|
2006-01-13 14:48:55 -05:00
|
|
|
pbd3.Append(DOMAIN=domain,MAJOR=3,MINOR=2,MICRO=0)
|
2006-04-24 18:45:19 -04:00
|
|
|
pbd3.Append(CXXFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
|
|
|
|
pbd3.Append(CXXFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
|
|
|
|
pbd3.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
|
|
|
|
pbd3.Append(PACKAGE=domain)
|
|
|
|
pbd3.Append(POTFILE=domain + '.pot')
|
2005-05-13 16:47:18 -04:00
|
|
|
|
|
|
|
pbd3_files = Split("""
|
|
|
|
basename.cc
|
2006-04-24 18:45:19 -04:00
|
|
|
base_ui.cc
|
2006-04-25 16:23:50 -04:00
|
|
|
convert.cc
|
2005-05-13 16:47:18 -04:00
|
|
|
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
|
|
|
|
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()
|
|
|
|
|
2006-06-07 10:54:12 -04:00
|
|
|
pbd3.Merge ([ libraries['sigc2'], libraries['xml'], libraries['glibmm2'], libraries['glib2'] ])
|
2005-05-13 16:47:18 -04:00
|
|
|
|
|
|
|
pbd3.VersionBuild(['version.cc','pbd/version.h'], 'SConscript')
|
|
|
|
|
2006-04-25 16:23:50 -04:00
|
|
|
libpbd3 = pbd3.SharedLibrary('pbd', pbd3_files)
|
2006-03-04 06:26:25 -05:00
|
|
|
|
2005-05-13 16:47:18 -04:00
|
|
|
Default(libpbd3)
|
2006-01-09 23:25:47 -05:00
|
|
|
|
2006-04-24 18:45:19 -04:00
|
|
|
if env['NLS']:
|
|
|
|
i18n (pbd3, pbd3_files, env)
|
|
|
|
|
2006-04-25 20:45:27 -04:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'lib/ardour2'), libpbd3))
|
|
|
|
|
2006-01-09 23:25:47 -05:00
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
2006-05-30 22:46:04 -04:00
|
|
|
[ 'SConscript', 'i18n.h', 'gettext.h', 'pbd/abstract_ui.cc' ] +
|
2006-04-24 18:45:19 -04:00
|
|
|
pbd3_files +
|
|
|
|
glob.glob('po/*.po') +
|
|
|
|
glob.glob('pbd/*.h')))
|