Skip to content

Commit

Permalink
Add a SConstruct option for making a shared client library.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kreuter committed Feb 17, 2010
1 parent 154cce0 commit edbdec4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,6 +5,7 @@

*~
*.o
*.os
*.obj
*.aps
*.ilk
Expand Down
7 changes: 7 additions & 0 deletions SConstruct
Expand Up @@ -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 ):
Expand Down Expand Up @@ -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 = []
Expand Down

0 comments on commit edbdec4

Please sign in to comment.