-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=264093 rdar://117854457 Reviewed by Elliot Williams. * Source/WebKit/DerivedSources.make: * Source/WebKit/Scripts/compile-sandbox.sh: Added. Canonical link: https://commits.webkit.org/270443@main
- Loading branch information
Showing
2 changed files
with
38 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
SANDBOX_PATH=$1; | ||
SANDBOX_NAME=$2; | ||
SDK_NAME=$3 | ||
SANDBOX_IMPORT_DIR=$4 | ||
|
||
xcrun --sdk $SDK_NAME -f sbutil; | ||
if [[ $? == 0 ]]; then | ||
if [[ $SDK_NAME =~ "iphone" || $SDK_NAME =~ "watch" || $SDK_NAME =~ "appletv" ]]; then | ||
if [[ $SANDBOX_NAME == "com.apple.WebKit.adattributiond" || $SANDBOX_NAME == "com.apple.WebKit.webpushd" ]]; then | ||
if [ ! -e $SANDBOX_IMPORT_DIR ]; then | ||
exit 0; | ||
fi; | ||
xcrun --sdk $SDK_NAME sbutil compile -D IMPORT_DIR=$SANDBOX_IMPORT_DIR $SANDBOX_PATH > /dev/null; | ||
if [[ $? != 0 ]]; then | ||
exit 1; | ||
fi | ||
fi; | ||
if [[ $SANDBOX_NAME == "com.apple.WebKit.GPU" || $SANDBOX_NAME == "com.apple.WebKit.Networking" || $SANDBOX_NAME == "com.apple.WebKit.WebContent" ]]; then | ||
xcrun --sdk $SDK_NAME sbutil compile $SANDBOX_PATH > /dev/null; | ||
if [[ $? != 0 ]]; then | ||
exit 1; | ||
fi | ||
fi | ||
fi; | ||
if [[ $SDK_NAME =~ "mac" ]]; then | ||
if [[ $SANDBOX_NAME == "com.apple.WebKit.GPUProcess" || $SANDBOX_NAME == "com.apple.WebKit.NetworkProcess" || $SANDBOX_NAME == "com.apple.WebProcess" ]]; then | ||
xcrun --sdk $SDK_NAME sbutil compile -D ENABLE_SANDBOX_MESSAGE_FILTER=YES -D WEBKIT2_FRAMEWORK_DIR=dir -D HOME_DIR=dir -D HOME_LIBRARY_PREFERENCES_DIR=dir -D DARWIN_USER_CACHE_DIR=dir -D DARWIN_USER_TEMP_DIR=dir $SANDBOX_PATH > /dev/null; | ||
if [[ $? != 0 ]]; then | ||
exit 1; | ||
fi | ||
fi | ||
fi | ||
fi; |