diff options
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index ee34e7b89eb..5f35b60d7ec 100644 --- a/SConstruct +++ b/SConstruct @@ -249,6 +249,11 @@ AddOption("--nostrip", action="store_true", help="do not strip installed binaries") +AddOption("--sharedclient", + dest="sharedclient", + action="store", + help="build a libmongoclient.so/.dll") + # --- environment setup --- def removeIfInList( lst , thing ): @@ -1091,6 +1096,8 @@ mongos = env.Program( "mongos" , commonFiles + coreDbFiles + coreServerFiles + s # c++ library clientLibName = str( env.Library( "mongoclient" , allClientFiles )[0] ) +if GetOption( "sharedclient" ): + sharedClientLibName = str( env.SharedLibrary( "mongoclient" , allClientFiles )[0] ) env.Library( "mongotestfiles" , commonFiles + coreDbFiles + serverOnlyFiles + ["client/gridfs.cpp"]) clientTests = [] |