summaryrefslogtreecommitdiff
path: root/src/third_party/SConscript
diff options
context:
space:
mode:
authorDerick Rethans <github@derickrethans.nl>2017-06-06 11:48:10 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2017-06-06 11:48:10 -0400
commit767c0987d35e34b354eda6af1a82bc068db456dd (patch)
treea0a8151b88cd31554ea5d31f5deec1fc20af2fda /src/third_party/SConscript
parent783d11c4ea92784dc6ca0cc0419403c454c9ec9c (diff)
downloadmongo-767c0987d35e34b354eda6af1a82bc068db456dd.tar.gz
SERVER-28608 Vendorize the timelib library
Closes #1153 Signed-off-by: Mark Benvenuto <mark.benvenuto@mongodb.com>
Diffstat (limited to 'src/third_party/SConscript')
-rw-r--r--src/third_party/SConscript16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/third_party/SConscript b/src/third_party/SConscript
index 5edf863b11d..aafd7355d8a 100644
--- a/src/third_party/SConscript
+++ b/src/third_party/SConscript
@@ -13,10 +13,12 @@ mozjsSuffix = '-45'
yamlSuffix = '-0.5.3'
icuSuffix = '-57.1'
gperftoolsSuffix = '-2.5'
+timelibSuffix = '-2017.05beta3'
thirdPartyIncludePathList = [
('s2', '#/src/third_party/s2'),
('tz', '#/src/third_party/tz'),
+ ('timelib', '#/src/third_party/timelib' + timelibSuffix),
]
if not use_system_version_of_library('tcmalloc'):
@@ -307,6 +309,20 @@ tzEnv.Library(
])
+timelibEnv = env.Clone();
+timelibEnv.InjectThirdPartyIncludePaths(libraries=['timelib'])
+timelibEnv.SConscript('timelib' + timelibSuffix + '/SConscript', exports={ 'env' : timelibEnv })
+timelibEnv = timelibEnv.Clone(
+ LIBDEPS=[
+ ('timelib' + timelibSuffix + '/timelib', libdeps.dependency.Interface),
+ ])
+
+timelibEnv.Library(
+ target='shim_timelib',
+ source=[
+ 'shim_timelib.cpp',
+ ])
+
if wiredtiger:
if use_system_version_of_library("wiredtiger"):
wiredtigerEnv = env.Clone(