2006-04-25 16:23:50 -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
|
|
|
|
|
|
|
glibmm2_files = glob.glob('glibmm/*.cc')
|
|
|
|
|
2006-04-25 20:45:27 -04:00
|
|
|
Import('env libraries install_prefix')
|
2005-05-13 16:47:18 -04:00
|
|
|
|
|
|
|
glibmm2 = env.Copy()
|
2007-02-08 13:13:57 -05:00
|
|
|
glibmm2.Merge([ libraries['sigc2'],
|
|
|
|
libraries['glib2'] ])
|
2005-05-13 16:47:18 -04:00
|
|
|
|
|
|
|
glibmm2.Append(CXXFLAGS='-DHAVE_CONFIG_H')
|
2007-02-08 13:13:57 -05:00
|
|
|
glibmm2.Append(CXXFLAGS='-DGLIBMM_DISABLE_DEPRECATED')
|
2005-05-13 16:47:18 -04:00
|
|
|
glibmm2.Append(CXXFLAGS='-DG_LOG_DOMAIN=\\\"glibmm\\\"')
|
|
|
|
|
2006-04-25 16:23:50 -04:00
|
|
|
libglibmm2 = glibmm2.SharedLibrary('glibmm2', glibmm2_files)
|
2006-01-10 23:36:44 -05:00
|
|
|
|
2006-10-02 16:29:57 -04:00
|
|
|
if os.access ('autogen.sh', os.F_OK) :
|
|
|
|
glibmm2_configure_script = glibmm2.Command ('configure', 'configure.ac', 'cd libs/glibmm2; ./autogen.sh; cd -', ENV=os.environ)
|
|
|
|
glibmm2_config_h = glibmm2.Command('glibmmconfig.h', [glibmm2_configure_script, 'glibmmconfig.h.in'],
|
|
|
|
'cd libs/glibmm2; ./configure || exit 1; cd -', ENV=os.environ)
|
|
|
|
else :
|
|
|
|
glibmm2_config_h = glibmm2.Command('glibmmconfig.h', ['configure', 'glibmmconfig.h.in'],
|
|
|
|
'cd libs/glibmm2; ./configure || exit 1; cd -', ENV=os.environ)
|
|
|
|
|
2006-06-01 23:33:38 -04:00
|
|
|
Default([glibmm2_config_h, libglibmm2])
|
2006-01-10 23:36:44 -05:00
|
|
|
|
2007-01-03 15:00:57 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour2'), libglibmm2))
|
2006-01-10 23:36:44 -05:00
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
2006-10-02 16:29:57 -04:00
|
|
|
[ 'SConscript',
|
|
|
|
'glibmm.h',
|
|
|
|
'configure',
|
|
|
|
'Makefile.in',
|
|
|
|
'glibmmconfig.h',
|
|
|
|
'glibmmconfig.h.in',
|
|
|
|
'glibmm-2.4.pc.in',
|
|
|
|
'glibmm/Makefile.in',
|
|
|
|
'scripts'
|
|
|
|
] +
|
2006-01-10 23:36:44 -05:00
|
|
|
glibmm2_files +
|
|
|
|
glob.glob('glibmm/*.h') +
|
|
|
|
glob.glob('glibmm/private/*.h')
|
|
|
|
))
|
|
|
|
|