mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
os/activity.h or os/log.h. Update cmake files again, hardcoding a Darwin dependency. The script does not notice that Foundation depends on CoreGraphics, so add that manually. Also found that MapKit is supported on WATCHOS but we didn't have dependencies for that. Favor one line per supported SDK instead of catch-all dependency lines. Distinguish from SDKs which have no dependencies vs SDKs which are unsupported on a particular platform by printing `unsupported` to the console and remove the line in the cmake file because it should not exist anyway. This full cleanup was not done before because of circularity detected by the util, which has since been fixed. Support directories with spaces.
38 lines
1.0 KiB
Bash
Executable File
38 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
#===--- find-overlay-dependencies-loop.sh - driver for find-overlay-dependency.sh---===#
|
|
#
|
|
## This source file is part of the Swift.org open source project
|
|
##
|
|
## Copyright (c) 2016 Apple Inc. and the Swift project authors
|
|
## Licensed under Apache License v2.0 with Runtime Library Exception
|
|
##
|
|
## See http://swift.org/LICENSE.txt for license information
|
|
## See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
#
|
|
#===------------------------------------------------------------------------===#
|
|
|
|
SCRIPT="$(dirname "$0")/find-overlay-dependencies.sh"
|
|
|
|
# `update` edits the cmake file in-place; `print` just prints to console
|
|
function usage() {
|
|
echo 'usage:' $0 'update|print' >&2
|
|
exit 1
|
|
}
|
|
|
|
case $# in
|
|
1) if [[ $1 != 'update' && $1 != 'print' ]]; then
|
|
usage
|
|
fi ;;
|
|
*)
|
|
usage ;;
|
|
esac
|
|
|
|
# Don't update XCTest, handle spaces in directories
|
|
for f in ./stdlib/public/SDK/*/; do
|
|
name=`basename "${f}"`
|
|
if [[ "${name}" == "XCTest" ]]; then
|
|
continue
|
|
fi
|
|
$SCRIPT "${name}" "$1"
|
|
done
|