2006-08-03 22:18:45 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import glob
|
|
|
|
|
|
|
|
Import('env libraries i18n install_prefix')
|
|
|
|
|
|
|
|
pbd = env.Copy()
|
|
|
|
|
|
|
|
domain = 'libpbd'
|
|
|
|
|
|
|
|
pbd.Append(DOMAIN=domain,MAJOR=4,MINOR=1,MICRO=0)
|
|
|
|
pbd.Append(CXXFLAGS="-DPACKAGE=\\\"" + domain + "\\\"")
|
|
|
|
pbd.Append(CXXFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
|
|
|
|
pbd.Append(CXXFLAGS="-DLIBSIGC_DISABLE_DEPRECATED")
|
|
|
|
pbd.Append(PACKAGE=domain)
|
|
|
|
pbd.Append(POTFILE=domain + '.pot')
|
|
|
|
|
|
|
|
pbd_files = Split("""
|
|
|
|
basename.cc
|
|
|
|
base_ui.cc
|
|
|
|
command.cc
|
2007-01-04 14:12:55 -05:00
|
|
|
convert.cc
|
2006-08-03 22:18:45 -04:00
|
|
|
controllable.cc
|
2006-12-22 11:09:43 -05:00
|
|
|
enumwriter.cc
|
2006-08-03 22:18:45 -04:00
|
|
|
dmalloc.cc
|
|
|
|
error.cc
|
2007-05-17 22:46:12 -04:00
|
|
|
filesystem.cc
|
2007-06-27 08:12:22 -04:00
|
|
|
filesystem_paths.cc
|
2007-06-27 08:12:18 -04:00
|
|
|
file_utils.cc
|
2007-06-01 16:29:36 -04:00
|
|
|
fpu.cc
|
2006-08-03 22:18:45 -04:00
|
|
|
id.cc
|
2007-10-11 18:07:47 -04:00
|
|
|
misc.c
|
2006-08-03 22:18:45 -04:00
|
|
|
mountpoint.cc
|
|
|
|
pathscanner.cc
|
|
|
|
pool.cc
|
|
|
|
pthread_utils.cc
|
|
|
|
receiver.cc
|
2007-06-06 23:24:46 -04:00
|
|
|
search_path.cc
|
2007-04-05 22:27:24 -04:00
|
|
|
shortpath.cc
|
2006-08-03 22:18:45 -04:00
|
|
|
stacktrace.cc
|
|
|
|
stateful.cc
|
2007-02-23 12:27:06 -05:00
|
|
|
strreplace.cc
|
2006-08-03 22:18:45 -04:00
|
|
|
strsplit.cc
|
|
|
|
textreceiver.cc
|
|
|
|
transmitter.cc
|
|
|
|
undo.cc
|
|
|
|
version.cc
|
|
|
|
whitespace.cc
|
|
|
|
xml++.cc
|
|
|
|
""")
|
|
|
|
|
|
|
|
conf = Configure(pbd)
|
|
|
|
if conf.CheckFunc('getmntent'):
|
|
|
|
conf.env.Append(CCFLAGS="-DHAVE_GETMNTENT")
|
|
|
|
pbd = conf.Finish()
|
|
|
|
|
|
|
|
pbd.Merge ([ libraries['sigc2'],
|
|
|
|
libraries['xml'],
|
|
|
|
libraries['glibmm2'],
|
|
|
|
libraries['glib2'] ])
|
|
|
|
|
2006-11-12 15:41:06 -05:00
|
|
|
pbd.VersionBuild(['version.cc','pbd/version.h'], [])
|
2006-08-03 22:18:45 -04:00
|
|
|
|
|
|
|
libpbd = pbd.SharedLibrary('pbd', pbd_files)
|
|
|
|
Default(libpbd)
|
|
|
|
|
|
|
|
mount_env = Environment(CCFLAGS='-DTEST_MOUNTPOINT -Ilibs/pbd')
|
|
|
|
mount_env.Program('mountpoint', 'mountpoint.cc')
|
|
|
|
|
|
|
|
if env['NLS']:
|
|
|
|
i18n (pbd, pbd_files, env)
|
|
|
|
|
2008-02-21 14:30:01 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libpbd))
|
2006-08-03 22:18:45 -04:00
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript', 'i18n.h', 'gettext.h', 'pbd/abstract_ui.cc' ] +
|
|
|
|
pbd_files +
|
|
|
|
glob.glob('po/*.po') +
|
|
|
|
glob.glob('pbd/*.h')))
|