diff options
author | Mike Dirolf <mike@10gen.com> | 2009-08-07 17:02:47 -0400 |
---|---|---|
committer | Mike Dirolf <mike@10gen.com> | 2009-08-07 17:02:47 -0400 |
commit | 04d1d87a5fc5b357c336faa3b6eb8b0aa29b263a (patch) | |
tree | 94f89417be51afe687904ed7cbefe1d14be12f07 /SConstruct | |
parent | 13c6e65bf6dff691cdd76b257938dab604777599 (diff) | |
download | mongo-04d1d87a5fc5b357c336faa3b6eb8b0aa29b263a.tar.gz |
towards mongosniff on windows with winpcap
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index b4a444dc9bd..e12c145d062 100644 --- a/SConstruct +++ b/SConstruct @@ -472,6 +472,9 @@ elif "win32" == os.sys.platform: else: env.Append( CPPDEFINES=["_X86_=1"] ) + env.Append( CPPPATH=["../winpcap/Include"] ) + env.Append( LIBPATH=["../winpcap/Lib"] ) + else: print( "No special config for [" + os.sys.platform + "] which probably means it won't work" ) @@ -644,8 +647,9 @@ def doConfigure( myenv , needJava=True , needPcre=True , shell=False ): myCheckLib( "pcrecpp" , True ) myCheckLib( "pcre" , True ) - myenv["_HAVEPCAP"] = myCheckLib( "pcap" ) + myenv["_HAVEPCAP"] = myCheckLib( ["pcap", "wpcap"] ) removeIfInList( myenv["LIBS"] , "pcap" ) + removeIfInList( myenv["LIBS"] , "wpcap" ) # this is outside of usesm block so don't have to rebuild for java if windows: @@ -813,7 +817,10 @@ mongosniff_built = False if darwin or clientEnv["_HAVEPCAP"]: mongosniff_built = True sniffEnv = clientEnv.Clone() - sniffEnv.Append( LIBS=[ "pcap" ] ) + if not windows: + sniffEnv.Append( LIBS=[ "pcap" ] ) + else: + sniffEnv.Append( LIBS=[ "wpcap" ] ) sniffEnv.Program( "mongosniff" , "tools/sniffer.cpp" ) # --- shell --- |