2005-05-13 16:47:18 -04:00
|
|
|
import glob
|
|
|
|
import os
|
|
|
|
|
|
|
|
glibmm2_files = glob.glob('glibmm/*.cc')
|
|
|
|
|
|
|
|
Import('env libraries')
|
|
|
|
|
|
|
|
glibmm2 = env.Copy()
|
|
|
|
glibmm2.Merge([libraries['sigc2'], libraries['glib2']])
|
|
|
|
|
|
|
|
glibmm2.Append(CXXFLAGS='-DHAVE_CONFIG_H')
|
2006-03-04 06:26:25 -05:00
|
|
|
#glibmm2.Append(CXXFLAGS='-DG_DISABLE_DEPRECATED')
|
2005-05-13 16:47:18 -04:00
|
|
|
glibmm2.Append(CXXFLAGS='-DG_LOG_DOMAIN=\\\"glibmm\\\"')
|
|
|
|
|
|
|
|
libglibmm2 = glibmm2.StaticLibrary('glibmm2', glibmm2_files)
|
2006-01-10 23:36:44 -05:00
|
|
|
|
|
|
|
if os.path.exists ('CVS'):
|
|
|
|
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; cd -', ENV=os.environ)
|
|
|
|
Default([glibmm2_config_h, libglibmm2])
|
|
|
|
else:
|
|
|
|
Default([libglibmm2])
|
|
|
|
|
|
|
|
|
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'],
|
|
|
|
[ 'SConscript', 'glibmm.h','glibmmconfig.h'] +
|
|
|
|
glibmm2_files +
|
|
|
|
glob.glob('glibmm/*.h') +
|
|
|
|
glob.glob('glibmm/private/*.h')
|
|
|
|
))
|
|
|
|
|