2005-09-25 19:13:14 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
2005-05-13 16:47:18 -04:00
|
|
|
import os
|
2006-04-25 20:45:27 -04:00
|
|
|
import os.path
|
|
|
|
import glob
|
2005-05-13 16:47:18 -04:00
|
|
|
|
|
|
|
sigc2_files = glob.glob('sigc++/*.cc') + glob.glob('sigc++/functors/*.cc') + glob.glob('sigc++/adaptors/lambda/*.cc')
|
|
|
|
|
2006-04-25 20:45:27 -04:00
|
|
|
Import('env install_prefix')
|
2005-05-13 16:47:18 -04:00
|
|
|
sigc2 = env.Copy()
|
|
|
|
|
2006-04-25 16:23:50 -04:00
|
|
|
libsigc2 = sigc2.SharedLibrary('sigc++2', sigc2_files)
|
2005-11-14 22:12:16 -05:00
|
|
|
|
2006-05-24 14:00:40 -04:00
|
|
|
if os.path.exists ('CVS') or os.path.exists ('.svn'):
|
2005-11-14 16:38:10 -05:00
|
|
|
sigc2_configure_script = sigc2.Command ('configure', 'configure.ac', 'cd libs/sigc++2; ./autogen.sh; cd -', ENV=os.environ)
|
|
|
|
sigc2_config_h = sigc2.Command('sigc++config.h', [sigc2_configure_script, 'sigc++config.h.in'], 'cd libs/sigc++2; ./configure; cd -', ENV=os.environ)
|
2005-11-14 22:12:16 -05:00
|
|
|
Default([sigc2_config_h,libsigc2])
|
2005-11-14 16:38:10 -05:00
|
|
|
else:
|
2005-11-14 22:12:16 -05:00
|
|
|
Default([libsigc2])
|
2006-01-09 23:25:47 -05:00
|
|
|
|
2006-04-25 20:45:27 -04:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'lib/ardour2'), libsigc2))
|
|
|
|
|
2006-01-09 23:25:47 -05:00
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'NEWS', 'README', 'AUTHORS', 'ChangeLog',
|
|
|
|
'configure', 'Makefile.am', 'SConscript',
|
|
|
|
'sigc++/Makefile.am',
|
|
|
|
'sigc++config.h',
|
|
|
|
] + sigc2_files +
|
|
|
|
glob.glob('sigc++/*.h') +
|
|
|
|
glob.glob('sigc++/functors/*.h') + glob.glob('sigc++/adaptors/lambda/*.h') +
|
|
|
|
glob.glob('sigc++/adaptors/*.h')
|
|
|
|
))
|