summaryrefslogtreecommitdiff
path: root/src/third_party/SConscript
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2018-02-16 14:55:02 -0500
committerGabriel Russell <gabriel.russell@mongodb.com>2018-02-27 16:53:31 -0500
commit8e5c10e6e10ff48f4e9b875593be6756b75c19a5 (patch)
treefc6933cd357876e76c7bdf35d53317b15c9d512a /src/third_party/SConscript
parentcbe3e978d9fd41b85f2f394ce6182e6579667fd1 (diff)
downloadmongo-8e5c10e6e10ff48f4e9b875593be6756b75c19a5.tar.gz
SERVER-33109 import the mobile storage engine
Diffstat (limited to 'src/third_party/SConscript')
-rw-r--r--src/third_party/SConscript26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/third_party/SConscript b/src/third_party/SConscript
index 1221ef9b1b1..ac53bbb752a 100644
--- a/src/third_party/SConscript
+++ b/src/third_party/SConscript
@@ -4,6 +4,7 @@ import libdeps
Import("env use_system_version_of_library usemozjs get_option")
Import("wiredtiger")
+Import("mobile_se")
boostSuffix = "-1.60.0"
snappySuffix = '-1.1.3'
@@ -16,6 +17,7 @@ gperftoolsSuffix = '-2.5'
timelibSuffix = '-2018.01alpha1'
tomcryptSuffix = '-1.18.1'
benchmarkSuffix = '-1.3.0'
+sqliteSuffix = '-amalgamation-3190300'
thirdPartyIncludePathList = [
('s2', '#/src/third_party/s2'),
@@ -48,6 +50,10 @@ if not use_system_version_of_library('zlib'):
thirdPartyIncludePathList.append(
('zlib', '#/src/third_party/zlib' + zlibSuffix))
+if not use_system_version_of_library('sqlite'):
+ thirdPartyIncludePathList.append(
+ ('sqlite', '#/src/third_party/sqlite' + sqliteSuffix))
+
if not use_system_version_of_library('google-benchmark'):
thirdPartyIncludePathList.append(
('benchmark', '#/src/third_party/benchmark' + benchmarkSuffix + '/benchmark/include'))
@@ -382,6 +388,26 @@ if wiredtiger:
'shim_wiredtiger.cpp'
])
+if use_system_version_of_library("sqlite"):
+ sqliteEnv = env.Clone(
+ SYSLIBDEPS=[
+ env['LIBDEPS_SQLITE_SYSLIBDEP']
+ ])
+else:
+ sqliteEnv = env.Clone()
+ sqliteEnv.InjectThirdPartyIncludePaths(libraries=['sqlite'])
+ sqliteEnv.SConscript('sqlite' + sqliteSuffix + '/SConscript', exports={ 'env' : sqliteEnv })
+ sqliteEnv = sqliteEnv.Clone(
+ LIBDEPS_INTERFACE=[
+ 'sqlite' + sqliteSuffix + '/sqlite3',
+ ])
+
+sqliteEnv.Library(
+ target='shim_sqlite',
+ source=[
+ 'shim_sqlite.cpp',
+ ])
+
if use_system_version_of_library("asio"):
# Normally, we would request LIBDEPS_ASIO_SYSLIBDEP here, but on most systems, the system asio
# will be header only so there is no library required. In the rare case where one is, it can be