Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a SConstruct option for making a shared client library.

  • Loading branch information...
commit edbdec4f15e1491edb915862f781cc61e1d34ef5 1 parent 154cce0
@kreuter kreuter authored
Showing with 8 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +7 −0 SConstruct
View
1  .gitignore
@@ -5,6 +5,7 @@
*~
*.o
+*.os
*.obj
*.aps
*.ilk
View
7 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 = []
Please sign in to comment.
Something went wrong with that request. Please try again.