SCons updates to support variant directories.
This patch is a reorganization of our build files, which brings them slightly
closer in line with standard SCons organization.
In particular, the SConstruct file sets up the various "build environment"
objects, by examining the local system and command line parameters. Then, it
delegates to some SConscript files, which describe build rules, like how to
compile "mongod" from source.
Typically, you would create several SConscript files for a project this large,
after breaking the project into logical sub projects, such as "platform
abstraction", "data manager", "query optimizer", etc. That will be future work.
For now, we only separate out the special rules for executing smoke tests into
SConscript.smoke. Pretty much all other build rules are in src/mongo/SConscript.
"tools" are placed in site_scons/site_tools.
This patch also includes better support for building and tracking dependencies
among static libraries ("libdeps" and "MergeLibrary"), and some incumbent, minor
restructuring.
This patch introduces a "warning" message from SCons about framework.o having
two rules that generate it. It is harmless, for now, and will be removed in
future work.
Future work also includes eliminating use of the SCons "Glob" utility, and
restructuring the source code into sensible components.
2012-01-04 11:30:29 -08:00
|
|
|
# -*- mode: python -*-
|
|
|
|
|
|
2015-07-16 16:25:13 -04:00
|
|
|
Import("env use_system_version_of_library usemozjs boostSuffix")
|
2014-11-04 15:47:12 -05:00
|
|
|
Import("wiredtiger")
|
SCons updates to support variant directories.
This patch is a reorganization of our build files, which brings them slightly
closer in line with standard SCons organization.
In particular, the SConstruct file sets up the various "build environment"
objects, by examining the local system and command line parameters. Then, it
delegates to some SConscript files, which describe build rules, like how to
compile "mongod" from source.
Typically, you would create several SConscript files for a project this large,
after breaking the project into logical sub projects, such as "platform
abstraction", "data manager", "query optimizer", etc. That will be future work.
For now, we only separate out the special rules for executing smoke tests into
SConscript.smoke. Pretty much all other build rules are in src/mongo/SConscript.
"tools" are placed in site_scons/site_tools.
This patch also includes better support for building and tracking dependencies
among static libraries ("libdeps" and "MergeLibrary"), and some incumbent, minor
restructuring.
This patch introduces a "warning" message from SCons about framework.o having
two rules that generate it. It is harmless, for now, and will be removed in
future work.
Future work also includes eliminating use of the SCons "Glob" utility, and
restructuring the source code into sensible components.
2012-01-04 11:30:29 -08:00
|
|
|
|
2014-10-28 12:08:02 -04:00
|
|
|
snappySuffix = '-1.1.2'
|
2014-11-03 17:15:00 -05:00
|
|
|
zlibSuffix = '-1.2.8'
|
2015-05-04 15:13:17 -04:00
|
|
|
pcreSuffix = "-8.37"
|
2015-07-09 14:05:20 -04:00
|
|
|
mozjsSuffix = '-38'
|
2014-10-28 12:08:02 -04:00
|
|
|
|
2014-08-22 15:37:54 -04:00
|
|
|
thirdPartyIncludePathList = [
|
|
|
|
|
('s2', '#/src/third_party/s2'),
|
|
|
|
|
('tz', '#/src/third_party/tz'),
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if not use_system_version_of_library('tcmalloc'):
|
|
|
|
|
thirdPartyIncludePathList.append(
|
2015-03-29 19:35:27 -04:00
|
|
|
('gperftools', '#/src/third_party/gperftools-2.2/src'))
|
2014-08-22 15:37:54 -04:00
|
|
|
|
|
|
|
|
if not use_system_version_of_library('pcre'):
|
|
|
|
|
thirdPartyIncludePathList.append(
|
2015-04-03 15:26:11 -04:00
|
|
|
('pcre', '#/src/third_party/pcre' + pcreSuffix))
|
2014-08-22 15:37:54 -04:00
|
|
|
|
|
|
|
|
if not use_system_version_of_library('boost'):
|
|
|
|
|
thirdPartyIncludePathList.append(
|
|
|
|
|
('boost', '#/src/third_party/boost' + boostSuffix))
|
|
|
|
|
|
|
|
|
|
if not use_system_version_of_library('snappy'):
|
|
|
|
|
thirdPartyIncludePathList.append(
|
2014-10-28 12:08:02 -04:00
|
|
|
('snappy', '#/src/third_party/snappy' + snappySuffix))
|
2014-08-22 15:37:54 -04:00
|
|
|
|
2014-11-03 17:15:00 -05:00
|
|
|
if not use_system_version_of_library('zlib'):
|
|
|
|
|
thirdPartyIncludePathList.append(
|
|
|
|
|
('zlib', '#/src/third_party/zlib' + zlibSuffix))
|
|
|
|
|
|
2015-07-09 14:05:20 -04:00
|
|
|
# TODO: figure out if we want to offer system versions of mozjs. Mozilla
|
|
|
|
|
# hasn't offered a source tarball since 24, but in theory they could.
|
|
|
|
|
#
|
|
|
|
|
#if not use_system_version_of_library('mozjs'):
|
|
|
|
|
if True:
|
|
|
|
|
thirdPartyIncludePathList.append(
|
|
|
|
|
('mozjs', ['#/src/third_party/mozjs' + mozjsSuffix + '/include',
|
|
|
|
|
'#/src/third_party/mozjs' + mozjsSuffix + '/mongo_sources',
|
|
|
|
|
'#/src/third_party/mozjs' + mozjsSuffix + '/platform/' + env["TARGET_ARCH"] + "/" + env["TARGET_OS"] + "/include",
|
|
|
|
|
]))
|
|
|
|
|
|
2014-08-22 15:37:54 -04:00
|
|
|
if not use_system_version_of_library('stemmer'):
|
|
|
|
|
thirdPartyIncludePathList.append(
|
|
|
|
|
('stemmer', '#/src/third_party/libstemmer_c/include'))
|
|
|
|
|
|
2015-06-16 17:33:46 -04:00
|
|
|
# Note that the wiredtiger.h header is generated, so
|
2014-11-04 15:47:12 -05:00
|
|
|
# we want to look for it in the build directory not
|
|
|
|
|
# the source directory.
|
2015-06-16 17:33:46 -04:00
|
|
|
# The wiredtiger_ext.h is a static file in the source tree
|
|
|
|
|
# In the system installs, wiredtiger.h and wiredtiger_ext.h are in the same directory
|
2014-11-04 15:47:12 -05:00
|
|
|
if wiredtiger and not use_system_version_of_library('wiredtiger'):
|
|
|
|
|
thirdPartyIncludePathList.append(
|
|
|
|
|
('wiredtiger', '$BUILD_DIR/third_party/wiredtiger'))
|
2015-06-16 17:33:46 -04:00
|
|
|
thirdPartyIncludePathList.append(
|
|
|
|
|
('wiredtiger_ext', '#/src/third_party/wiredtiger/src/include'))
|
2014-11-04 15:47:12 -05:00
|
|
|
|
2014-08-22 15:37:54 -04:00
|
|
|
if not use_system_version_of_library('yaml'):
|
|
|
|
|
thirdPartyIncludePathList.append(
|
|
|
|
|
('yaml', '#/src/third_party/yaml-cpp-0.5.1/include'))
|
2014-04-23 12:08:55 -04:00
|
|
|
|
2015-05-20 16:08:15 -04:00
|
|
|
if not use_system_version_of_library('asio'):
|
|
|
|
|
thirdPartyIncludePathList.append(
|
|
|
|
|
('asio', '#/src/third_party/asio-asio-1-11-0/asio/include'))
|
|
|
|
|
|
2015-07-27 13:53:21 -04:00
|
|
|
if not use_system_version_of_library('intel_decimal128'):
|
|
|
|
|
thirdPartyIncludePathList.append(
|
|
|
|
|
('intel_decimal128', '#/src/third_party/IntelRDFPMathLib20U1/LIBRARY'))
|
|
|
|
|
|
2014-04-23 12:08:55 -04:00
|
|
|
def injectAllThirdPartyIncludePaths(thisEnv):
|
2014-08-22 15:37:54 -04:00
|
|
|
thisEnv.AppendUnique(CPPPATH=[entry[1] for entry in thirdPartyIncludePathList])
|
2014-04-23 12:08:55 -04:00
|
|
|
|
|
|
|
|
def injectThirdPartyIncludePaths(thisEnv, libraries):
|
2014-08-22 15:37:54 -04:00
|
|
|
thisEnv.AppendUnique(CPPPATH=[
|
|
|
|
|
entry[1] for entry in thirdPartyIncludePathList if entry[0] in libraries])
|
2014-04-23 12:08:55 -04:00
|
|
|
|
|
|
|
|
env.AddMethod(injectAllThirdPartyIncludePaths, 'InjectAllThirdPartyIncludePaths')
|
|
|
|
|
env.AddMethod(injectThirdPartyIncludePaths, 'InjectThirdPartyIncludePaths')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
murmurEnv = env.Clone()
|
|
|
|
|
murmurEnv.SConscript('murmurhash3/SConscript', exports={ 'env' : murmurEnv })
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s2Env = env.Clone()
|
|
|
|
|
s2Env.InjectThirdPartyIncludePaths(libraries=['s2', 'boost'])
|
|
|
|
|
s2Env.InjectMongoIncludePaths()
|
|
|
|
|
s2Env.SConscript('s2/SConscript', exports={'env' : s2Env})
|
|
|
|
|
|
SCons updates to support variant directories.
This patch is a reorganization of our build files, which brings them slightly
closer in line with standard SCons organization.
In particular, the SConstruct file sets up the various "build environment"
objects, by examining the local system and command line parameters. Then, it
delegates to some SConscript files, which describe build rules, like how to
compile "mongod" from source.
Typically, you would create several SConscript files for a project this large,
after breaking the project into logical sub projects, such as "platform
abstraction", "data manager", "query optimizer", etc. That will be future work.
For now, we only separate out the special rules for executing smoke tests into
SConscript.smoke. Pretty much all other build rules are in src/mongo/SConscript.
"tools" are placed in site_scons/site_tools.
This patch also includes better support for building and tracking dependencies
among static libraries ("libdeps" and "MergeLibrary"), and some incumbent, minor
restructuring.
This patch introduces a "warning" message from SCons about framework.o having
two rules that generate it. It is harmless, for now, and will be removed in
future work.
Future work also includes eliminating use of the SCons "Glob" utility, and
restructuring the source code into sensible components.
2012-01-04 11:30:29 -08:00
|
|
|
|
2012-03-24 10:26:41 -04:00
|
|
|
if use_system_version_of_library("pcre"):
|
2014-04-23 12:08:55 -04:00
|
|
|
pcreEnv = env.Clone(
|
|
|
|
|
SYSLIBDEPS=[
|
|
|
|
|
env['LIBDEPS_PCRE_SYSLIBDEP'],
|
|
|
|
|
env['LIBDEPS_PCRECPP_SYSLIBDEP'],
|
|
|
|
|
])
|
SCons updates to support variant directories.
This patch is a reorganization of our build files, which brings them slightly
closer in line with standard SCons organization.
In particular, the SConstruct file sets up the various "build environment"
objects, by examining the local system and command line parameters. Then, it
delegates to some SConscript files, which describe build rules, like how to
compile "mongod" from source.
Typically, you would create several SConscript files for a project this large,
after breaking the project into logical sub projects, such as "platform
abstraction", "data manager", "query optimizer", etc. That will be future work.
For now, we only separate out the special rules for executing smoke tests into
SConscript.smoke. Pretty much all other build rules are in src/mongo/SConscript.
"tools" are placed in site_scons/site_tools.
This patch also includes better support for building and tracking dependencies
among static libraries ("libdeps" and "MergeLibrary"), and some incumbent, minor
restructuring.
This patch introduces a "warning" message from SCons about framework.o having
two rules that generate it. It is harmless, for now, and will be removed in
future work.
Future work also includes eliminating use of the SCons "Glob" utility, and
restructuring the source code into sensible components.
2012-01-04 11:30:29 -08:00
|
|
|
else:
|
2014-04-23 12:08:55 -04:00
|
|
|
pcreEnv = env.Clone()
|
|
|
|
|
pcreEnv.InjectThirdPartyIncludePaths(libraries=['pcre'])
|
2015-04-03 15:26:11 -04:00
|
|
|
pcreEnv.SConscript('pcre' + pcreSuffix + '/SConscript', exports={ 'env' : pcreEnv })
|
2014-04-23 12:08:55 -04:00
|
|
|
pcreEnv = pcreEnv.Clone(
|
|
|
|
|
LIBDEPS=[
|
2015-04-03 15:26:11 -04:00
|
|
|
'pcre' + pcreSuffix + '/pcrecpp',
|
2014-04-23 12:08:55 -04:00
|
|
|
])
|
|
|
|
|
|
|
|
|
|
pcreEnv.Library(
|
|
|
|
|
target="shim_pcrecpp",
|
|
|
|
|
source=[
|
|
|
|
|
'shim_pcrecpp.cc',
|
|
|
|
|
])
|
2012-03-02 11:13:09 -05:00
|
|
|
|
2014-04-23 12:08:55 -04:00
|
|
|
|
|
|
|
|
boostEnv = env
|
2012-03-24 10:26:41 -04:00
|
|
|
if use_system_version_of_library("boost"):
|
2014-04-23 12:08:55 -04:00
|
|
|
# On windows, we don't need the syslibdeps because autolib will select the right libraries
|
|
|
|
|
# for us automatically.
|
2015-03-30 12:14:42 -04:00
|
|
|
if not env.TargetOSIs('windows'):
|
2014-04-23 12:08:55 -04:00
|
|
|
boostEnv = env.Clone(
|
|
|
|
|
SYSLIBDEPS=[
|
|
|
|
|
env['LIBDEPS_BOOST_PROGRAM_OPTIONS_SYSLIBDEP'],
|
|
|
|
|
env['LIBDEPS_BOOST_FILESYSTEM_SYSLIBDEP'],
|
|
|
|
|
env['LIBDEPS_BOOST_THREAD_SYSLIBDEP'],
|
|
|
|
|
env['LIBDEPS_BOOST_SYSTEM_SYSLIBDEP'],
|
2015-03-03 14:28:00 -05:00
|
|
|
env['LIBDEPS_BOOST_CHRONO_SYSLIBDEP'],
|
2014-04-23 12:08:55 -04:00
|
|
|
])
|
2012-03-02 11:13:09 -05:00
|
|
|
else:
|
2014-06-06 08:03:24 -04:00
|
|
|
boostDirectory = 'boost' + boostSuffix
|
2014-04-23 12:08:55 -04:00
|
|
|
boostEnv = env.Clone()
|
|
|
|
|
boostEnv.InjectThirdPartyIncludePaths(libraries=['boost'])
|
|
|
|
|
boostEnv.SConscript(boostDirectory + '/SConscript', exports={ 'env' : boostEnv })
|
|
|
|
|
boostEnv = boostEnv.Clone(
|
|
|
|
|
LIBDEPS=[
|
|
|
|
|
boostDirectory + '/boost_program_options',
|
|
|
|
|
boostDirectory + '/boost_filesystem',
|
|
|
|
|
boostDirectory + '/boost_thread',
|
|
|
|
|
boostDirectory + '/boost_system',
|
2015-03-03 14:28:00 -05:00
|
|
|
boostDirectory + '/boost_chrono',
|
2014-04-23 12:08:55 -04:00
|
|
|
])
|
|
|
|
|
|
|
|
|
|
boostEnv.Library(
|
|
|
|
|
target="shim_boost",
|
|
|
|
|
source=[
|
|
|
|
|
'shim_boost.cpp',
|
|
|
|
|
])
|
|
|
|
|
|
2013-09-10 11:56:57 -04:00
|
|
|
|
2012-03-24 10:42:10 -04:00
|
|
|
if use_system_version_of_library("snappy"):
|
2014-04-23 12:08:55 -04:00
|
|
|
snappyEnv = env.Clone(
|
|
|
|
|
SYSLIBDEPS=[
|
|
|
|
|
env['LIBDEPS_SNAPPY_SYSLIBDEP'],
|
|
|
|
|
])
|
2012-03-24 10:42:10 -04:00
|
|
|
else:
|
2014-04-23 12:08:55 -04:00
|
|
|
snappyEnv = env.Clone()
|
|
|
|
|
snappyEnv.InjectThirdPartyIncludePaths(libraries=['snappy'])
|
2014-10-28 15:53:23 -04:00
|
|
|
snappyEnv.InjectMongoIncludePaths()
|
2014-10-28 12:08:02 -04:00
|
|
|
snappyEnv.SConscript('snappy' + snappySuffix + '/SConscript', exports={ 'env' : snappyEnv })
|
2014-04-23 12:08:55 -04:00
|
|
|
snappyEnv = snappyEnv.Clone(
|
|
|
|
|
LIBDEPS=[
|
2014-10-28 12:08:02 -04:00
|
|
|
'snappy' + snappySuffix + '/snappy',
|
2014-04-23 12:08:55 -04:00
|
|
|
])
|
|
|
|
|
|
|
|
|
|
snappyEnv.Library(
|
|
|
|
|
target="shim_snappy",
|
|
|
|
|
source=[
|
|
|
|
|
'shim_snappy.cpp',
|
|
|
|
|
])
|
|
|
|
|
|
2014-11-03 17:15:00 -05:00
|
|
|
if use_system_version_of_library("zlib"):
|
|
|
|
|
zlibEnv = env.Clone(
|
|
|
|
|
SYSLIBDEPS=[
|
|
|
|
|
env['LIBDEPS_ZLIB_SYSLIBDEP'],
|
|
|
|
|
])
|
|
|
|
|
else:
|
|
|
|
|
zlibEnv = env.Clone()
|
|
|
|
|
zlibEnv.InjectThirdPartyIncludePaths(libraries=['zlib'])
|
|
|
|
|
zlibEnv.InjectMongoIncludePaths()
|
|
|
|
|
zlibEnv.SConscript('zlib' + zlibSuffix + '/SConscript', exports={ 'env' : zlibEnv })
|
|
|
|
|
zlibEnv = zlibEnv.Clone(
|
|
|
|
|
LIBDEPS=[
|
|
|
|
|
'zlib' + zlibSuffix + '/zlib',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
zlibEnv.Library(
|
|
|
|
|
target="shim_zlib",
|
|
|
|
|
source=[
|
|
|
|
|
'shim_zlib.cpp',
|
|
|
|
|
])
|
2012-03-26 10:33:16 -04:00
|
|
|
|
2015-07-09 14:05:20 -04:00
|
|
|
if usemozjs:
|
|
|
|
|
mozjsEnv = env.Clone()
|
|
|
|
|
mozjsEnv.SConscript('mozjs' + mozjsSuffix + '/SConscript', exports={'env' : mozjsEnv })
|
|
|
|
|
mozjsEnv = mozjsEnv.Clone(
|
|
|
|
|
LIBDEPS=[
|
|
|
|
|
'mozjs' + mozjsSuffix + '/mozjs',
|
|
|
|
|
'shim_zlib',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
mozjsEnv.Library(
|
|
|
|
|
target="shim_mozjs",
|
|
|
|
|
source=[
|
|
|
|
|
'shim_mozjs.cpp',
|
|
|
|
|
])
|
2014-04-23 12:08:55 -04:00
|
|
|
|
|
|
|
|
gperftoolsEnv = env
|
|
|
|
|
if (GetOption("allocator") == "tcmalloc"):
|
|
|
|
|
if use_system_version_of_library("tcmalloc"):
|
|
|
|
|
gperftoolsEnv = env.Clone(
|
|
|
|
|
SYSLIBDEPS=[
|
|
|
|
|
env['LIBDEPS_TCMALLOC_SYSLIBDEP'],
|
|
|
|
|
])
|
|
|
|
|
else:
|
|
|
|
|
gperftoolsEnv = env.Clone()
|
|
|
|
|
gperftoolsEnv.InjectThirdPartyIncludePaths(libraries=['gperftools'])
|
|
|
|
|
gperftoolsEnv.InjectMongoIncludePaths()
|
|
|
|
|
gperftoolsEnv.SConscript('gperftools-2.2/SConscript', exports={ 'env' : gperftoolsEnv })
|
|
|
|
|
gperftoolsEnv = gperftoolsEnv.Clone(
|
|
|
|
|
LIBDEPS=[
|
|
|
|
|
'gperftools-2.2/tcmalloc_minimal',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
gperftoolsEnv.Library(
|
|
|
|
|
target="shim_allocator",
|
|
|
|
|
source=[
|
|
|
|
|
"shim_allocator.cpp",
|
|
|
|
|
])
|
|
|
|
|
|
2012-12-25 12:07:05 -05:00
|
|
|
|
2013-06-03 14:33:18 -04:00
|
|
|
if use_system_version_of_library("stemmer"):
|
2014-04-23 12:08:55 -04:00
|
|
|
stemmerEnv = env.Clone(
|
|
|
|
|
SYSLIBDEPS=[
|
|
|
|
|
env['LIBDEPS_STEMMER_SYSLIBDEP'],
|
|
|
|
|
])
|
2013-06-03 14:33:18 -04:00
|
|
|
else:
|
2014-04-23 12:08:55 -04:00
|
|
|
stemmerEnv = env.Clone()
|
|
|
|
|
stemmerEnv.InjectThirdPartyIncludePaths(libraries=['stemmer'])
|
|
|
|
|
stemmerEnv.SConscript('libstemmer_c/SConscript', exports={ 'env' : stemmerEnv })
|
|
|
|
|
stemmerEnv = stemmerEnv.Clone(
|
|
|
|
|
LIBDEPS=[
|
|
|
|
|
'libstemmer_c/stemmer',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
stemmerEnv.Library(
|
|
|
|
|
target="shim_stemmer",
|
|
|
|
|
source=[
|
|
|
|
|
'shim_stemmer.cpp'
|
|
|
|
|
])
|
|
|
|
|
|
2013-11-09 15:38:08 -05:00
|
|
|
|
|
|
|
|
if use_system_version_of_library("yaml"):
|
2014-04-23 12:08:55 -04:00
|
|
|
yamlEnv = env.Clone(
|
|
|
|
|
SYSLIBDEPS=[
|
|
|
|
|
env['LIBDEPS_YAML_SYSLIBDEP'],
|
|
|
|
|
])
|
2013-11-09 15:38:08 -05:00
|
|
|
else:
|
2014-04-23 12:08:55 -04:00
|
|
|
yamlEnv = env.Clone()
|
|
|
|
|
yamlEnv.InjectThirdPartyIncludePaths(libraries=['yaml', 'boost'])
|
|
|
|
|
yamlEnv.SConscript('yaml-cpp-0.5.1/SConscript', exports={ 'env' : yamlEnv })
|
|
|
|
|
yamlEnv = yamlEnv.Clone(
|
|
|
|
|
LIBDEPS=[
|
|
|
|
|
'yaml-cpp-0.5.1/yaml',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
yamlEnv.Library(
|
|
|
|
|
target="shim_yaml",
|
|
|
|
|
source=[
|
|
|
|
|
'shim_yaml.cpp',
|
|
|
|
|
])
|
2014-04-14 16:41:39 -04:00
|
|
|
|
2014-04-23 12:08:55 -04:00
|
|
|
|
|
|
|
|
tzEnv = env.Clone()
|
2015-03-30 12:14:42 -04:00
|
|
|
if env.TargetOSIs('solaris'):
|
2014-04-23 12:08:55 -04:00
|
|
|
tzEnv.InjectThirdPartyIncludePaths(libraries=['tz'])
|
|
|
|
|
tzEnv.SConscript('tz/SConscript', exports={ 'env' : tzEnv })
|
|
|
|
|
tzEnv = tzEnv.Clone(
|
|
|
|
|
LIBDEPS=[
|
|
|
|
|
'tz/tz',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
tzEnv.Library(
|
|
|
|
|
target='shim_tz',
|
|
|
|
|
source=[
|
|
|
|
|
'shim_tz.cpp',
|
|
|
|
|
])
|
2014-11-04 15:47:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
if wiredtiger:
|
|
|
|
|
if use_system_version_of_library("wiredtiger"):
|
|
|
|
|
wiredtigerEnv = env.Clone(
|
|
|
|
|
SYSLIBDEPS=[
|
|
|
|
|
env['LIBDEPS_WIREDTIGER_SYSLIBDEP'],
|
|
|
|
|
])
|
|
|
|
|
else:
|
|
|
|
|
wiredtigerEnv = env.Clone()
|
|
|
|
|
wiredtigerEnv.InjectThirdPartyIncludePaths(libraries=['wiredtiger'])
|
|
|
|
|
wiredtigerEnv.SConscript('wiredtiger/SConscript', exports={ 'env' : wiredtigerEnv })
|
|
|
|
|
wiredtigerEnv = wiredtigerEnv.Clone(
|
|
|
|
|
LIBDEPS=[
|
|
|
|
|
'wiredtiger/wiredtiger',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
wiredtigerEnv.Library(
|
|
|
|
|
target="shim_wiredtiger",
|
|
|
|
|
source=[
|
|
|
|
|
'shim_wiredtiger.cpp'
|
|
|
|
|
])
|
|
|
|
|
|
2015-05-20 16:08:15 -04:00
|
|
|
if use_system_version_of_library("asio"):
|
|
|
|
|
asioEnv = env.Clone(
|
|
|
|
|
SYSLIBDEPS=[
|
|
|
|
|
env['LIBDEPS_ASIO_SYSLIBDEP'],
|
|
|
|
|
])
|
|
|
|
|
else:
|
|
|
|
|
asioEnv = env.Clone()
|
|
|
|
|
asioEnv.InjectThirdPartyIncludePaths(libraries=['asio'])
|
|
|
|
|
asioEnv.SConscript('asio-asio-1-11-0/SConscript', exports={ 'env' : asioEnv })
|
|
|
|
|
asioEnv = asioEnv.Clone(
|
|
|
|
|
LIBDEPS=[
|
|
|
|
|
'asio-asio-1-11-0/asio',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
asioEnv.Library(
|
|
|
|
|
target="shim_asio",
|
|
|
|
|
source=[
|
|
|
|
|
'shim_asio.cpp'
|
|
|
|
|
])
|
2015-07-27 13:53:21 -04:00
|
|
|
|
|
|
|
|
if use_system_version_of_library("intel_decimal128"):
|
|
|
|
|
intelDecimal128Env = env.Clone(
|
|
|
|
|
SYSLIBDEPS=[
|
|
|
|
|
env['LIBDEPS_INTEL_DECIMAL128_SYSLIBDEP'],
|
|
|
|
|
])
|
|
|
|
|
else:
|
|
|
|
|
intelDecimal128Env = env.Clone()
|
|
|
|
|
intelDecimal128Env.InjectThirdPartyIncludePaths(libraries=['intel_decimal128'])
|
|
|
|
|
intelDecimal128Env.SConscript('IntelRDFPMathLib20U1/SConscript', exports={ 'env' : intelDecimal128Env })
|
|
|
|
|
intelDecimal128Env = intelDecimal128Env.Clone(
|
|
|
|
|
LIBDEPS=[
|
|
|
|
|
'IntelRDFPMathLib20U1/intel_decimal128',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
intelDecimal128Env.Library(
|
|
|
|
|
target="shim_intel_decimal128",
|
|
|
|
|
source=[
|
|
|
|
|
'shim_intel_decimal128.cpp'
|
|
|
|
|
])
|