From: g0dil Date: Tue, 5 Oct 2010 14:35:04 +0000 (+0000) Subject: Implement PARSEFLAGS support for SConstruct X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=22a6637676dcb35af3906d42ea020027957604bd;p=senf.git Implement PARSEFLAGS support for SConstruct git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1725 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/SConstruct b/SConstruct index 6c16622..8f4da1c 100644 --- a/SConstruct +++ b/SConstruct @@ -146,6 +146,8 @@ env.SetDefault( LIBADDSUFFIX = '${FLAVOR and "_$FLAVOR" or ""}', OBJADDSUFFIX = '${LIBADDSUFFIX}', FLAVOR = '', + + PARSEFLAGS = '', ) # Set variables from command line @@ -158,6 +160,9 @@ senfutil.parseArguments( BoolVariable('sparse_tests', 'Link tests against object files and not the senf lib', False) ) +if env['PARSEFLAGS']: + env.MergeFlags(env['PARSEFLAGS']) + # Add UNIX env vars matching IMPORT_ENV patterns into the execution environment senfutil.importProcessEnv(env)