diff options
author | Richard Kreuter <richard@10gen.com> | 2010-07-23 12:52:59 -0400 |
---|---|---|
committer | Richard Kreuter <richard@10gen.com> | 2010-07-23 12:52:59 -0400 |
commit | dbafe3093b07fa9d9c80f2b86f0d2a055389ba3b (patch) | |
tree | fc7de3693e3a78ce4ad15283b466e5b193d3cfd3 /distsrc | |
parent | f383a5afd470d3281902cc15092e06d61b2a3184 (diff) | |
download | mongo-dbafe3093b07fa9d9c80f2b86f0d2a055389ba3b.tar.gz |
Work in progress for C++ driver.
Diffstat (limited to 'distsrc')
-rw-r--r-- | distsrc/client/SConstruct | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/distsrc/client/SConstruct b/distsrc/client/SConstruct index f2d5e655a59..8aa279be4a4 100644 --- a/distsrc/client/SConstruct +++ b/distsrc/client/SConstruct @@ -35,6 +35,8 @@ elif "linux2" == os.sys.platform: if nix: env.Append( CPPFLAGS=" -O3" ) +boostLibs = [ "thread" , "filesystem" , "system" ] +env.Prepend( LIBS =["boost_%s-mt"%(lib) for lib in boostLibs ] ) allClientFiles = [] allClientFiles += Glob( "mongo/*.cpp" ) allClientFiles += Glob( "mongo/client/*.cpp" ) @@ -46,3 +48,21 @@ allClientFiles += Glob( "mongo/util/*.cpp" ) allClientFiles += Glob( "mongo/util/*.c" ) env.Library( "mongoclient" , allClientFiles ) +env.SharedLibrary( "mongoclient" , allClientFiles ) + +clientTests = [] +clientEnv = env.Clone(); +#clientEnv.Append( CPPPATH=["../"] ) +clientEnv.Prepend( LIBS=[ "mongoclient"]+["boost_%s-mt"%(lib) for lib in boostLibs ] ) + +clientEnv.Prepend( LIBPATH=["."] ) +#clientEnv["CPPDEFINES"].remove( "MONGO_EXPOSE_MACROS" ) +l = clientEnv[ "LIBS" ] + +# examples +clientTests += [ clientEnv.Program( "firstExample" , [ "client/examples/first.cpp" ] ) ] +clientTests += [ clientEnv.Program( "secondExample" , [ "client/examples/second.cpp" ] ) ] +clientTests += [ clientEnv.Program( "whereExample" , [ "client/examples/whereExample.cpp" ] ) ] +clientTests += [ clientEnv.Program( "authTest" , [ "client/examples/authTest.cpp" ] ) ] +clientTests += [ clientEnv.Program( "httpClientTest" , [ "client/examples/httpClientTest.cpp" ] ) ] +clientTests += [ clientEnv.Program( "clientTest" , [ "client/examples/clientTest.cpp" ] ) ] |