mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[utils/api_checker] Adjust the script for inferring imports from an SDK and add a couple of utility scripts
This commit is contained in:
13
utils/api_checker/sdk-module-lists/create-module-lists.sh
Executable file
13
utils/api_checker/sdk-module-lists/create-module-lists.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
DIR="$( cd "$( dirname "$0" )" && pwd )"
|
||||
$DIR/infer-imports.py -s $(xcrun --sdk macosx --show-sdk-path) > /tmp/modules-osx.txt && \
|
||||
$DIR/infer-imports.py -s $(xcrun --sdk iphoneos --show-sdk-path) > /tmp/modules-iphoneos.txt && \
|
||||
$DIR/infer-imports.py -s $(xcrun --sdk appletvos --show-sdk-path) > /tmp/modules-tvos.txt && \
|
||||
$DIR/infer-imports.py -s $(xcrun --sdk watchos --show-sdk-path) > /tmp/modules-watchos.txt && \
|
||||
cat $DIR/fixed-clang-modules-common.txt >> /tmp/modules-osx.txt && \
|
||||
cat $DIR/fixed-clang-modules-macosx.txt >> /tmp/modules-osx.txt && \
|
||||
cat $DIR/fixed-clang-modules-common.txt >> /tmp/modules-iphoneos.txt && \
|
||||
cat $DIR/fixed-clang-modules-iphoneos.txt >> /tmp/modules-iphoneos.txt && \
|
||||
cat $DIR/fixed-clang-modules-common.txt >> /tmp/modules-tvos.txt && \
|
||||
cat $DIR/fixed-clang-modules-appletvos.txt >> /tmp/modules-tvos.txt && \
|
||||
cat $DIR/fixed-clang-modules-common.txt >> /tmp/modules-watchos.txt && \
|
||||
cat $DIR/fixed-clang-modules-watchos.txt >> /tmp/modules-watchos.txt
|
||||
Reference in New Issue
Block a user