diff options
author | yellow <yellow@ofc-n1.10gen.com> | 2009-06-30 16:08:42 -0400 |
---|---|---|
committer | yellow <yellow@ofc-n1.10gen.com> | 2009-06-30 16:08:42 -0400 |
commit | 8208dfe87f6937ad245d9c61bffedea015636297 (patch) | |
tree | 3911725006711877b450ba2370bba173364d1681 /SConstruct | |
parent | 8dbb39d2bceba549a1bb89b1c13dea13598088b9 (diff) | |
download | mongo-8208dfe87f6937ad245d9c61bffedea015636297.tar.gz |
--extrapath for different build paths
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 27ed46bb398..feccb5bd130 100644 --- a/SConstruct +++ b/SConstruct @@ -135,6 +135,13 @@ AddOption( "--noshell", action="store", help="don't build shell" ) +AddOption( "--extrapath", + dest="extrapath", + type="string", + nargs=1, + action="store", + help="comma seperated list of add'l paths (--extrapath /opt/foo/,/foo" ) + # --- environment setup --- def printLocalInfo(): @@ -185,6 +192,12 @@ if ( usesm and usejvm ): if ( not ( usesm or usejvm ) ): usesm = True +if GetOption( "extrapath" ) is not None: + for x in GetOption( "extrapath" ).split( "," ): + env.Append( CPPPATH=[ x + "/include" ] ) + env.Append( LIBPATH=[ x + "/lib" ] ) + release = True + # ------ SOURCE FILE SETUP ----------- commonFiles = Split( "stdafx.cpp buildinfo.cpp db/jsobj.cpp db/json.cpp db/commands.cpp db/lasterror.cpp db/nonce.cpp db/queryutil.cpp shell/mongo.cpp" ) |