summaryrefslogtreecommitdiff
path: root/src/third_party/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/SConscript')
-rw-r--r--src/third_party/SConscript14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/third_party/SConscript b/src/third_party/SConscript
new file mode 100644
index 00000000000..82797c63480
--- /dev/null
+++ b/src/third_party/SConscript
@@ -0,0 +1,14 @@
+# -*- mode: python -*-
+
+Import( "env has_option" )
+
+env.SConscript( [
+ "pcre-${PCRE_VERSION}/SConscript",
+ ] )
+
+if has_option( "use-system-pcre" ) or has_option( "use-system-all" ):
+ env.StaticLibrary( "pcrecpp", ['mongo_pcrecpp.cc'],
+ SYSLIBDEPS=[ 'pcrecpp' ] )
+else:
+ env.StaticLibrary( "pcrecpp", ['mongo_pcrecpp.cc'],
+ LIBDEPS=[ 'pcre-${PCRE_VERSION}/pcrecpp' ] )