Skip to content

Commit c7339b9

Browse files
committed
Add Xcode project
1 parent e120ff1 commit c7339b9

File tree

6 files changed

+1207
-0
lines changed

6 files changed

+1207
-0
lines changed

Darwin/Config/install-swiftmodules.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/sh
2+
#===----------------------------------------------------------------------===//
3+
#
4+
# This source file is part of the Swift.org open source project
5+
#
6+
# Copyright (c) 2020 Apple Inc. and the Swift project authors
7+
# Licensed under Apache License v2.0 with Runtime Library Exception
8+
#
9+
# See http://swift.org/LICENSE.txt for license information
10+
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11+
#
12+
#===----------------------------------------------------------------------===//
13+
14+
set -e
15+
#set -xv
16+
17+
# This only needs to run during installation, but that includes "installapi".
18+
[ "$ACTION" = "installapi" -o "$ACTION" = "install" ] || exit 0
19+
20+
[ "$SKIP_INSTALL" != "YES" ] || exit 0
21+
[ "$SWIFT_INSTALL_MODULES" = "YES" ] || exit 0
22+
23+
srcmodule="${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.swiftmodule"
24+
dstpath="${INSTALL_ROOT}/${INSTALL_PATH}/"
25+
26+
if [ ! -d "$srcmodule" ]; then
27+
echo "Cannot find Swift module at $srcmodule" >&2
28+
exit 1
29+
fi
30+
31+
mkdir -p "$dstpath"
32+
cp -r "$srcmodule" "$dstpath"

0 commit comments

Comments
 (0)