13
0
livetrax/libs/glibmm2/SConscript
Tim Mayberry 7df20e1166 2006-03-04 Tim Mayberry <mojofunk@gmail.com>
* Remove debug output preventing compilation on x86_64.
	* Build shared libraries for all libs/* when DEVBUILD=1 to fix linking for x86_64/non-x86.
	* Simplify/consolidate the dev scripts a bit.
	* Export ARDOUR_COLORS variable in dev scripts.
	* Remove G_DISABLE_DEPRECATED from glibmm CXXFLAGS to allow compilation with newer versions of glib.
	* Build soundtouch with SYSLIBS=1, hopefully we can link to system soundtouch soon.


git-svn-id: svn://localhost/trunk/ardour2@344 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-03-04 11:26:25 +00:00

32 lines
1.0 KiB
Python

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')
#glibmm2.Append(CXXFLAGS='-DG_DISABLE_DEPRECATED')
glibmm2.Append(CXXFLAGS='-DG_LOG_DOMAIN=\\\"glibmm\\\"')
libglibmm2 = glibmm2.StaticLibrary('glibmm2', glibmm2_files)
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')
))