diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-05-23 23:30:52 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-05-23 23:30:52 -0400 |
commit | db6337a8e85b960f18deec7bd2cad788ec4c1b05 (patch) | |
tree | 59de12504336063b94daeeac0f7fb01b7b0bed92 /distsrc/client/SConstruct | |
parent | 14e68fa774a21606b7b369ae782d10d72d261656 (diff) | |
download | mongo-db6337a8e85b960f18deec7bd2cad788ec4c1b05.tar.gz |
seperate package for c++ client
Diffstat (limited to 'distsrc/client/SConstruct')
-rw-r--r-- | distsrc/client/SConstruct | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/distsrc/client/SConstruct b/distsrc/client/SConstruct new file mode 100644 index 00000000000..450f3bc1ff0 --- /dev/null +++ b/distsrc/client/SConstruct @@ -0,0 +1,36 @@ + +import os + +AddOption( "--extrapath", + dest="extrapath", + type="string", + nargs=1, + action="store", + help="comma separated list of add'l paths (--extrapath /opt/foo/,/foo) static linking" ) + +env = Environment() + +def addExtraLibs( s ): + for x in s.split(","): + env.Append( CPPPATH=[ x + "/include" ] ) + env.Append( LIBPATH=[ x + "/lib" ] ) + env.Append( LIBPATH=[ x + "/lib64" ] ) + +if GetOption( "extrapath" ) is not None: + addExtraLibs( GetOption( "extrapath" ) ) + +env.Append( CPPPATH=[ "mongo/" ] ) + +env.Append( CPPDEFINES=[ "_SCONS" , "MONGO_EXPOSE_MACROS" ] ) + +allClientFiles = [] +allClientFiles += Glob( "mongo/*.cpp" ) +allClientFiles += Glob( "mongo/client/*.cpp" ) +allClientFiles += Glob( "mongo/s/*.cpp" ) +allClientFiles += Glob( "mongo/shell/*.cpp" ) +allClientFiles += Glob( "mongo/db/*.cpp" ) +allClientFiles += Glob( "mongo/scripting/*.cpp" ) +allClientFiles += Glob( "mongo/util/*.cpp" ) +allClientFiles += Glob( "mongo/util/*.c" ) + +env.Library( "mongoclient" , allClientFiles ) |