summaryrefslogtreecommitdiff
path: root/src/mongo/embedded
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2020-07-31 15:56:20 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-03 17:18:57 +0000
commit506a0af7f80b37fa0c0d864c848e6e4b8d02fb35 (patch)
tree460a9693f55471f590f46c34bfd5f767b573108e /src/mongo/embedded
parent5dbb79146a7f1b0770a7d3f65e5e9079229f593f (diff)
downloadmongo-506a0af7f80b37fa0c0d864c848e6e4b8d02fb35.tar.gz
SERVER-50043 Remove Framework build vestiges from embedded
Diffstat (limited to 'src/mongo/embedded')
-rw-r--r--src/mongo/embedded/SConscript24
-rw-r--r--src/mongo/embedded/mongo_embedded/mongo_embedded.modulemap4
-rw-r--r--src/mongo/embedded/mongoc_embedded/SConscript5
-rw-r--r--src/mongo/embedded/mongoc_embedded/mongoc_embedded.modulemap4
4 files changed, 5 insertions, 32 deletions
diff --git a/src/mongo/embedded/SConscript b/src/mongo/embedded/SConscript
index 44ed64a0c2d..90f269020f1 100644
--- a/src/mongo/embedded/SConscript
+++ b/src/mongo/embedded/SConscript
@@ -12,10 +12,10 @@ env.AppendUnique(
CPPPATH=["$BUILD_DIR/mongo/embedded"],
)
-# Inject this before we call the framework directory SConscripts so that
+# Inject this before we call the SDK directory SConscripts so that
# they can both use it.
-frameworksEnv = env.Clone()
+sdkEnv = env.Clone()
def mongo_export_file_generator(target, source, env, for_signature):
if env.ToolchainIs('msvc'):
@@ -35,23 +35,7 @@ def mongo_export_file_generator(target, source, env, for_signature):
# but many of its symbols should in fact be coming from other libraries, and we
# get odd ODR-esque violations. UBSAN caught this. Thanks UBSAN!
if get_option('link-model') == 'dynamic-sdk':
- frameworksEnv['MONGO_EXPORT_FILE_SHLINKFLAGS'] = mongo_export_file_generator
-
-# We need to set our bundle version in the plist file, but the format
-# is contrained to major.minor.patch. So trim off any '-pre' or '-rc'
-# information from the MONGO_VERSION and rename it to
-# MONGO_BUNDLE_VERSION.
-frameworksEnv['PLIST_MONGO_BUNDLE_VERSION'] = env['MONGO_VERSION'].split('-')[0]
-
-# Similarly, we need to derive a MinimumOSVersion based on the
-# -mXXX-version-minimum flag. Really, we should pull this out into an
-# SCons flag like OSX_DEPLOYMENT_TARGET so we don't need to grub
-# around in the flags.
-frameworksEnv['PLIST_MINIMUM_OS_VERSION'] = "0.0"
-for flag in frameworksEnv['CCFLAGS']:
- if re.search('-m[a-z]+-version-min', flag):
- frameworksEnv['PLIST_MINIMUM_OS_VERSION'] = flag.split('=')[1]
- break
+ sdkEnv['MONGO_EXPORT_FILE_SHLINKFLAGS'] = mongo_export_file_generator
env.SConscript(
dirs=[
@@ -60,7 +44,7 @@ env.SConscript(
'stitch_support',
],
exports={
- 'env' : frameworksEnv,
+ 'env' : sdkEnv,
},
)
diff --git a/src/mongo/embedded/mongo_embedded/mongo_embedded.modulemap b/src/mongo/embedded/mongo_embedded/mongo_embedded.modulemap
deleted file mode 100644
index 8670c5f0842..00000000000
--- a/src/mongo/embedded/mongo_embedded/mongo_embedded.modulemap
+++ /dev/null
@@ -1,4 +0,0 @@
-framework module mongo_embedded [extern_c] {
- header "mongo_embedded.h"
- export *
-}
diff --git a/src/mongo/embedded/mongoc_embedded/SConscript b/src/mongo/embedded/mongoc_embedded/SConscript
index 15ab1c7d807..8d787ec2177 100644
--- a/src/mongo/embedded/mongoc_embedded/SConscript
+++ b/src/mongo/embedded/mongoc_embedded/SConscript
@@ -22,10 +22,7 @@ env.AutoInstall(
def create_mongoc_env(env):
mongocEnv = env.Clone()
- if mongocEnv['MONGO_HAVE_LIBMONGOC'] == "framework":
- mongocEnv.AppendUnique(FRAMEWORKS=['bson', 'mongoc'])
- else:
- mongocEnv.AppendUnique(LIBS=['bson-1.0', 'mongoc-1.0'])
+ mongocEnv.AppendUnique(LIBS=['bson-1.0', 'mongoc-1.0'])
return mongocEnv
mongocEmbeddedEnv = create_mongoc_env(env)
diff --git a/src/mongo/embedded/mongoc_embedded/mongoc_embedded.modulemap b/src/mongo/embedded/mongoc_embedded/mongoc_embedded.modulemap
deleted file mode 100644
index 9a00bdba5b4..00000000000
--- a/src/mongo/embedded/mongoc_embedded/mongoc_embedded.modulemap
+++ /dev/null
@@ -1,4 +0,0 @@
-framework module mongoc_embedded [extern_c] {
- header "mongoc_embedded.h"
- export *
-}