summaryrefslogtreecommitdiff
path: root/etc/scons
diff options
context:
space:
mode:
authorAndrew Morrow <andrew.morrow@10gen.com>2019-11-20 15:01:13 +0000
committerevergreen <evergreen@mongodb.com>2019-11-20 15:01:13 +0000
commitc65877d82f3fcc9f355c93f9921bf7a332a88817 (patch)
tree5eb38aa03d3e331fa4a9cf9595653456be110067 /etc/scons
parent13c3960a0c30e05d8a3b25e5bf9669e268933ec7 (diff)
downloadmongo-c65877d82f3fcc9f355c93f9921bf7a332a88817.tar.gz
SERVER-44545 Remove mobile embedded variants and associated support files
Diffstat (limited to 'etc/scons')
-rw-r--r--etc/scons/aarch64-linux-android_toolchain.vars3
-rw-r--r--etc/scons/android_toolchain.vars45
-rw-r--r--etc/scons/armv7a-linux-androideabi_toolchain.vars3
-rw-r--r--etc/scons/x86_64-linux-android_toolchain.vars3
-rw-r--r--etc/scons/xcode_ios.vars14
-rw-r--r--etc/scons/xcode_ios_sim.vars14
-rw-r--r--etc/scons/xcode_tvos.vars14
-rw-r--r--etc/scons/xcode_tvos_sim.vars14
-rw-r--r--etc/scons/xcode_watchos.vars14
-rw-r--r--etc/scons/xcode_watchos_sim.vars14
10 files changed, 0 insertions, 138 deletions
diff --git a/etc/scons/aarch64-linux-android_toolchain.vars b/etc/scons/aarch64-linux-android_toolchain.vars
deleted file mode 100644
index 2c8cb371f43..00000000000
--- a/etc/scons/aarch64-linux-android_toolchain.vars
+++ /dev/null
@@ -1,3 +0,0 @@
-android_compiler_target="aarch64-linux-android"
-android_tool_target=android_compiler_target
-exec(open("etc/scons/android_toolchain.vars", "rb").read())
diff --git a/etc/scons/android_toolchain.vars b/etc/scons/android_toolchain.vars
deleted file mode 100644
index 6a40eae0be0..00000000000
--- a/etc/scons/android_toolchain.vars
+++ /dev/null
@@ -1,45 +0,0 @@
-# Configures the build to use the Android NDK toolchain if supplied on the command line
-
-import os
-import platform
-import subprocess
-import SCons
-
-compiler_suffix = ""
-if platform.system() == "Windows":
- compiler_suffix = ".cmd"
-
-toolchain_root = SCons.Script.Main.GetOption('toolchain-root')
-if not toolchain_root:
- print("Path to Android standalone toolchain must be set with --toolchain-root when using android_toolchain.vars")
- SCons.Script.Exit(1)
-
-host="linux-x86_64"
-android_version="21"
-
-toolchain_bindir = os.path.join(toolchain_root,'ndk-bundle','toolchains','llvm','prebuilt',host,'bin')
-
-# Get the default SCons path as a list
-default_path = SCons.Defaults.DefaultEnvironment()['ENV']['PATH'].split(os.pathsep)
-
-# Put the toolchain path first so we prefer all tools from there in subprocs
-ENV = {
- 'PATH' : os.pathsep.join([toolchain_bindir] + default_path)
-}
-
-AR= os.path.join(toolchain_bindir, "llvm-ar" + compiler_suffix)
-AS= os.path.join(toolchain_bindir, android_tool_target + "-as" + compiler_suffix)
-CC= os.path.join(toolchain_bindir, android_compiler_target + android_version + "-clang" + compiler_suffix)
-CXX= os.path.join(toolchain_bindir, android_compiler_target + android_version + "-clang++" + compiler_suffix)
-LD= os.path.join(toolchain_bindir, android_tool_target + "-ld" + compiler_suffix)
-RANLIB= os.path.join(toolchain_bindir, android_tool_target + "-ranlib" + compiler_suffix)
-STRIP= os.path.join(toolchain_bindir, android_tool_target + "-strip" + compiler_suffix)
-OBJCOPY=os.path.join(toolchain_bindir, android_tool_target + "-objcopy" + compiler_suffix)
-
-LINKFLAGS='-static-libstdc++ -fuse-ld=gold'
-CXXFLAGS='-stdlib=libc++'
-CPPDEFINES='__ANDROID_API__=' + android_version + ' _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR'
-
-TARGET_OS="android"
-TOOLS="gcc g++ gnulink ar gas"
-PROGSUFFIX = ""
diff --git a/etc/scons/armv7a-linux-androideabi_toolchain.vars b/etc/scons/armv7a-linux-androideabi_toolchain.vars
deleted file mode 100644
index 5fa229ba2e4..00000000000
--- a/etc/scons/armv7a-linux-androideabi_toolchain.vars
+++ /dev/null
@@ -1,3 +0,0 @@
-android_compiler_target="armv7a-linux-androideabi"
-android_tool_target="arm-linux-androideabi"
-exec(open("etc/scons/android_toolchain.vars", "rb").read())
diff --git a/etc/scons/x86_64-linux-android_toolchain.vars b/etc/scons/x86_64-linux-android_toolchain.vars
deleted file mode 100644
index b4fbd15ec5e..00000000000
--- a/etc/scons/x86_64-linux-android_toolchain.vars
+++ /dev/null
@@ -1,3 +0,0 @@
-android_compiler_target="x86_64-linux-android"
-android_tool_target=android_compiler_target
-exec(open("etc/scons/android_toolchain.vars", "rb").read())
diff --git a/etc/scons/xcode_ios.vars b/etc/scons/xcode_ios.vars
deleted file mode 100644
index 2c46ef1152f..00000000000
--- a/etc/scons/xcode_ios.vars
+++ /dev/null
@@ -1,14 +0,0 @@
-# Configures the build to use XCode targeting iOS
-
-import subprocess
-
-CC = subprocess.check_output(['xcrun', '-f', '--sdk', 'iphoneos', 'clang']).decode('utf-8').strip()
-CXX = subprocess.check_output(['xcrun', '-f', '--sdk', 'iphoneos', 'clang++']).decode('utf-8').strip()
-
-sdk_path = subprocess.check_output(['xcrun', '--sdk', 'iphoneos', '--show-sdk-path']).decode('utf-8').strip()
-
-CCFLAGS = "-isysroot {} -miphoneos-version-min=11.0 -target darwin17.0.0 -arch arm64 -fembed-bitcode".format(sdk_path)
-LINKFLAGS = "-Wl,-syslibroot,{} -miphoneos-version-min=11.0 -target darwin17.0.0 -arch arm64 -fembed-bitcode".format(sdk_path)
-
-TARGET_OS = "iOS"
-TARGET_ARCH = "aarch64"
diff --git a/etc/scons/xcode_ios_sim.vars b/etc/scons/xcode_ios_sim.vars
deleted file mode 100644
index 2cbfa215849..00000000000
--- a/etc/scons/xcode_ios_sim.vars
+++ /dev/null
@@ -1,14 +0,0 @@
-# Configures the build to use XCode targeting iOS simulator
-
-import subprocess
-
-CC = subprocess.check_output(['xcrun', '-f', '--sdk', 'iphonesimulator', 'clang']).decode('utf-8').strip()
-CXX = subprocess.check_output(['xcrun', '-f', '--sdk', 'iphonesimulator', 'clang++']).decode('utf-8').strip()
-
-sdk_path = subprocess.check_output(['xcrun', '--sdk', 'iphonesimulator', '--show-sdk-path']).decode('utf-8').strip()
-
-CCFLAGS = "-isysroot {} -miphoneos-version-min=11.0 -target darwin17.0.0 -arch x86_64 -fembed-bitcode".format(sdk_path)
-LINKFLAGS = "-Wl,-syslibroot,{} -miphoneos-version-min=11.0 -target darwin17.0.0 -arch x86_64 -fembed-bitcode".format(sdk_path)
-
-TARGET_OS = "iOS-sim"
-TARGET_ARCH = "x86_64"
diff --git a/etc/scons/xcode_tvos.vars b/etc/scons/xcode_tvos.vars
deleted file mode 100644
index 8acf7053b43..00000000000
--- a/etc/scons/xcode_tvos.vars
+++ /dev/null
@@ -1,14 +0,0 @@
-# Configures the build to use XCode targeting tvOS
-
-import subprocess
-
-CC = subprocess.check_output(['xcrun', '-f', '--sdk', 'appletvos', 'clang']).decode('utf-8').strip()
-CXX = subprocess.check_output(['xcrun', '-f', '--sdk', 'appletvos', 'clang++']).decode('utf-8').strip()
-
-sdk_path = subprocess.check_output(['xcrun', '--sdk', 'appletvos', '--show-sdk-path']).decode('utf-8').strip()
-
-CCFLAGS = "-isysroot {} -mtvos-version-min=11.0 -target darwin17.0.0 -arch arm64 -fembed-bitcode".format(sdk_path)
-LINKFLAGS = "-Wl,-syslibroot,{} -mtvos-version-min=11.0 -target darwin17.0.0 -arch arm64 -fembed-bitcode".format(sdk_path)
-
-TARGET_OS = "tvOS"
-TARGET_ARCH = "aarch64"
diff --git a/etc/scons/xcode_tvos_sim.vars b/etc/scons/xcode_tvos_sim.vars
deleted file mode 100644
index c71b37cfebb..00000000000
--- a/etc/scons/xcode_tvos_sim.vars
+++ /dev/null
@@ -1,14 +0,0 @@
-# Configures the build to use XCode targeting tvOS simulator
-
-import subprocess
-
-CC = subprocess.check_output(['xcrun', '-f', '--sdk', 'appletvsimulator', 'clang']).decode('utf-8').strip()
-CXX = subprocess.check_output(['xcrun', '-f', '--sdk', 'appletvsimulator', 'clang++']).decode('utf-8').strip()
-
-sdk_path = subprocess.check_output(['xcrun', '--sdk', 'appletvsimulator', '--show-sdk-path']).decode('utf-8').strip()
-
-CCFLAGS = "-isysroot {} -mtvos-version-min=11.0 -target darwin17.0.0 -arch x86_64 -fembed-bitcode".format(sdk_path)
-LINKFLAGS = "-Wl,-syslibroot,{} -mtvos-version-min=11.0 -target darwin17.0.0 -arch x86_64 -fembed-bitcode".format(sdk_path)
-
-TARGET_OS = "tvOS-sim"
-TARGET_ARCH = "x86_64"
diff --git a/etc/scons/xcode_watchos.vars b/etc/scons/xcode_watchos.vars
deleted file mode 100644
index 1df5e231823..00000000000
--- a/etc/scons/xcode_watchos.vars
+++ /dev/null
@@ -1,14 +0,0 @@
-# Configures the build to use XCode targeting iOS
-
-import subprocess
-
-CC = subprocess.check_output(['xcrun', '-f', '--sdk', 'watchos', 'clang']).decode('utf-8').strip()
-CXX = subprocess.check_output(['xcrun', '-f', '--sdk', 'watchos', 'clang++']).decode('utf-8').strip()
-
-sdk_path = subprocess.check_output(['xcrun', '--sdk', 'watchos', '--show-sdk-path']).decode('utf-8').strip()
-
-CCFLAGS = "-isysroot {} -mwatchos-version-min=4.2 -target darwin17.0.0 -arch armv7k -fembed-bitcode -fapplication-extension".format(sdk_path)
-LINKFLAGS = "-Wl,-syslibroot,{} -mwatchos-version-min=4.2 -target darwin17.0.0 -arch armv7k -fembed-bitcode -fapplication-extension".format(sdk_path)
-
-TARGET_OS = "watchOS"
-TARGET_ARCH = "arm"
diff --git a/etc/scons/xcode_watchos_sim.vars b/etc/scons/xcode_watchos_sim.vars
deleted file mode 100644
index 0e799e6a13a..00000000000
--- a/etc/scons/xcode_watchos_sim.vars
+++ /dev/null
@@ -1,14 +0,0 @@
-# Configures the build to use XCode targeting iOS simulator
-
-import subprocess
-
-CC = subprocess.check_output(['xcrun', '-f', '--sdk', 'watchsimulator', 'clang']).decode('utf-8').strip()
-CXX = subprocess.check_output(['xcrun', '-f', '--sdk', 'watchsimulator', 'clang++']).decode('utf-8').strip()
-
-sdk_path = subprocess.check_output(['xcrun', '--sdk', 'watchsimulator', '--show-sdk-path']).decode('utf-8').strip()
-
-CCFLAGS = "-isysroot {} -mwatchos-version-min=4.2 -target darwin17.0.0 -arch i386 -fembed-bitcode -fapplication-extension".format(sdk_path)
-LINKFLAGS = "-Wl,-syslibroot,{} -mwatchos-version-min=4.2 -target darwin17.0.0 -arch i386 -fembed-bitcode -fapplication-extension".format(sdk_path)
-
-TARGET_OS = "watchOS-sim"
-TARGET_ARCH = "i386"