X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=SConstruct;h=943536e78f5185b1f2165fe81f491b7bcdef3b11;hb=532240d72e09e19e57fac9bb55c2560b9c9e5b97;hp=1fd2ac8f6e05b8374aa80e00678f3b0f801a1f70;hpb=b91ebb4474dc3795e70f157731058e35631f9721;p=senf.git diff --git a/SConstruct b/SConstruct index 1fd2ac8..943536e 100644 --- a/SConstruct +++ b/SConstruct @@ -102,7 +102,8 @@ if not logname: logname = pwd.getpwuid(os.getuid()).pw_name def dpkgIgnoredFilesOpts(target, source, env, for_signature): - return [ '-I%s' % os.path.split(f)[1] for f in env.subst('$DPKG_IGNORED_FILES').split() ] + return [ '-I%s' % (('/' in f) and (os.path.split(os.getcwd())[1])+f or f) + for f in env.subst('$DPKG_IGNORED_FILES').split() ] # Options used to debug inlining: # @@ -118,8 +119,9 @@ INLINE_OPTS = [ '-finline-limit=5000' ] env.Append( CPPPATH = [ '#/include' ], CXXFLAGS = [ '-Wall', '-Woverloaded-virtual', '-Wno-long-long' ] + INLINE_OPTS, - LIBS = [ 'readline', 'rt', '$BOOSTREGEXLIB', '$BOOSTIOSTREAMSLIB', '$BOOSTSIGNALSLIB' ], - TEST_EXTRA_LIBS = [ '$BOOSTFSLIB' ], + LIBS = [ 'rt', '$BOOSTREGEXLIB', '$BOOSTIOSTREAMSLIB', '$BOOSTSIGNALSLIB', + '$BOOSTFSLIB' ], + TEST_EXTRA_LIBS = [ ], DOXY_XREF_TYPES = [ 'bug', 'fixme', 'todo', 'idea' ], DOXY_HTML_XSL = '#/doclib/html-munge.xsl', ENV = { 'TODAY' : str(datetime.date.today()), @@ -127,10 +129,11 @@ env.Append( 'LOGNAME' : logname, # needed by the debian build scripts 'CONCURRENCY_LEVEL' : env.GetOption('num_jobs') or "1", 'SCONS' : 1, - 'PATH' : os.environ.get('PATH') + 'PATH' : os.environ.get('PATH'), + 'TEXINPUTS' : os.environ.get('TEXINPUTS',':'), }, - LOCAL_CONFIG_FILES = [ 'Doxyfile.local', 'SConfig', 'local_config.hh' ], - DPKG_IGNORED_FILES = [ '$LOCAL_CONFIG_FILES', '.svn', '_templates' ], + LOCAL_CONFIG_FILES = [ '/Doxyfile.local', '/SConfig', '/local_config.hh' ], + DPKG_IGNORED_FILES = [ '$LOCAL_CONFIG_FILES', '.svn', '/_templates' ], DPKG_IGNORED_FILES_OPTS = dpkgIgnoredFilesOpts, CLEAN_PATTERNS = [ '*~', '#*#', '*.pyc', 'semantic.cache', '.sconsign', '.sconsign.dblite' ], BUILDPACKAGE_COMMAND = "dpkg-buildpackage -us -uc -rfakeroot $DPKG_IGNORED_FILES_OPTS", @@ -181,11 +184,6 @@ if not env.GetOption('clean') and not os.path.exists(".prepare-stamp") \ env.Clean('all', '.prepare-stamp') -# Not nice, but until we get to fixing the dependency jungle -# concerning generated sources ... -scripts = [] -dependencies = [] - SConscript(glob.glob("*/SConscript")) SENFSCons.StandardTargets(env) @@ -198,7 +196,7 @@ SENFSCons.DoxyXRef(env, SENFSCons.InstallIncludeFiles(env, [ 'config.hh' ]) # Build combined library 'libsenf' -libsenf = env.Library(env['LIBSENF'], env['ALLOBJECTS']) +libsenf = env.Library(env.subst("$LIBSENF$LIBADDSUFFIX"), env['ALLOBJECTS']) env.Default(libsenf) env.Clean('all', libsenf) env.Alias('default', libsenf)