diff options
Diffstat (limited to 'src/tools/xcode/swiftstdlibtoolwrapper')
-rw-r--r-- | src/tools/xcode/swiftstdlibtoolwrapper/BUILD | 12 | ||||
-rw-r--r-- | src/tools/xcode/swiftstdlibtoolwrapper/README | 6 | ||||
-rwxr-xr-x | src/tools/xcode/swiftstdlibtoolwrapper/swiftstdlibtoolwrapper.sh | 39 |
3 files changed, 0 insertions, 57 deletions
diff --git a/src/tools/xcode/swiftstdlibtoolwrapper/BUILD b/src/tools/xcode/swiftstdlibtoolwrapper/BUILD deleted file mode 100644 index 1a98848a4b..0000000000 --- a/src/tools/xcode/swiftstdlibtoolwrapper/BUILD +++ /dev/null @@ -1,12 +0,0 @@ -package(default_visibility = ["//src/test:__subpackages__"]) - -filegroup( - name = "srcs", - srcs = glob(["**"]), -) - -sh_binary( - name = "swiftstdlibtoolwrapper", - srcs = ["swiftstdlibtoolwrapper.sh"], - data = ["//src/tools/xcode/realpath:realpath_genrule"], -) diff --git a/src/tools/xcode/swiftstdlibtoolwrapper/README b/src/tools/xcode/swiftstdlibtoolwrapper/README deleted file mode 100644 index e99ff4ed02..0000000000 --- a/src/tools/xcode/swiftstdlibtoolwrapper/README +++ /dev/null @@ -1,6 +0,0 @@ -swiftstdlibtoolwrapper runs swift-stdlib-tool, which scans executables and -copies required Swift framework dylibs to the specified path, then zips up -the output for further bundle merging. - -swift-stdlib-tool only runs on Darwin, so swiftstdlibtoolwrapper only runs on -Darwin. diff --git a/src/tools/xcode/swiftstdlibtoolwrapper/swiftstdlibtoolwrapper.sh b/src/tools/xcode/swiftstdlibtoolwrapper/swiftstdlibtoolwrapper.sh deleted file mode 100755 index f036b93e17..0000000000 --- a/src/tools/xcode/swiftstdlibtoolwrapper/swiftstdlibtoolwrapper.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -# Copyright 2015 Google Inc. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# swiftstdlibtoolwrapper runs swift-stdlib-tool and zips up the output. -# This script only runs on darwin and you must have Xcode installed. -# -# $1 OUTZIP - the path to place the output zip file. - -set -eu - -OUTZIP=$(tools/objc/realpath "$1") -shift 1 -TEMPDIR=$(mktemp -d -t ZippingOutput) -trap "rm -rf \"$TEMPDIR\"" EXIT - -FULLPATH="$TEMPDIR/Frameworks" - -/usr/bin/xcrun swift-stdlib-tool --copy --verbose --destination "$FULLPATH" "$@" - -# Need to push/pop tempdir so it isn't the current working directory -# when we remove it via the EXIT trap. -pushd "$TEMPDIR" > /dev/null -# Reset all dates to Unix Epoch so that two identical zips created at different -# times appear the exact same for comparison purposes. -find . -exec touch -h -t 197001010000 {} \; -zip --symlinks --recurse-paths --quiet "$OUTZIP" . -popd > /dev/null |