diff options
author | Derick Rethans <github@derickrethans.nl> | 2017-06-06 11:48:10 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2017-06-06 11:48:10 -0400 |
commit | 767c0987d35e34b354eda6af1a82bc068db456dd (patch) | |
tree | a0a8151b88cd31554ea5d31f5deec1fc20af2fda /src/third_party/SConscript | |
parent | 783d11c4ea92784dc6ca0cc0419403c454c9ec9c (diff) | |
download | mongo-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/SConscript | 16 |
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( |