Add SENFSCons.BuildExample helper
[senf.git] / site_scons / senfutil.py
index c9baf1d..275ea1d 100644 (file)
@@ -169,6 +169,11 @@ def DefaultOptions(env):
         LINKFLAGS_normal = [ '-Wl,-S' ],
         LINKFLAGS_debug  = [ '-g' ],
     )
+    # ugly hack for ubuntu karmic 
+    # ToDo: auto-configure alike support
+    if os.path.exists('/usr/lib/libboost_regex-mt.so'):
+        env.Append( BOOST_VARIANT = '-mt' )
+
 
 def Glob(env, exclude=[], subdirs=[]):
     testSources = env.Glob("*.test.cc", strings=True)
@@ -258,7 +263,8 @@ def Doxygen(env, doxyheader=None, doxyfooter=None, doxycss=None, mydoxyfile=Fals
                                      'tagfiles'   : '$TAGFILES',
                                      'output_dir' : 'doc',
                                      'html_dir'   : 'html',
-                                     'html'       : 'YES' },
+                                     'html'       : 'YES',
+                                     'DOXYGEN'    : '$DOXYGEN' },
                       TAGFILES   = tagfiles, 
                       DOCLIBDIR  = libdir,
                       DOXYGENCOM = "$DOCLIBDIR/doxygen.sh $DOXYOPTS $SOURCE")