[utils/api_checker] Adjust the script for inferring imports from an SDK and add a couple of utility scripts

This commit is contained in:
Argyrios Kyrtzidis
2020-08-17 17:17:38 -07:00
parent f911be8e42
commit 0701eb7d4c
7 changed files with 92 additions and 5 deletions

View 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