Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Source/JavaScriptCore:
Create symlinks pointing to alternate root framework locations https://bugs.webkit.org/show_bug.cgi?id=234374 Reviewed by Filip Pizlo. Added build variables and build step to create symlinks pointing to the alternate build locations from the current framework install location. * Configurations/JavaScriptCore.xcconfig: * JavaScriptCore.xcodeproj/project.pbxproj: * Scripts/create-symlink-to-altroot.sh: Added. Source/ThirdParty/ANGLE: https://bugs.webkit.org/show_bug.cgi?id=234173 Update Install Paths for build system changes Reviewed by Filip Pizlo. Added build variables and build step to create symlinks pointing to the alternate build locations from the current framework install location. * ANGLE.xcodeproj/project.pbxproj: * Configurations/ANGLE-dynamic.xcconfig: * scripts/create-symlink-to-altroot.sh: Added. Source/ThirdParty/libwebrtc: https://bugs.webkit.org/show_bug.cgi?id=234173 Update Install Paths for build system changes Reviewed by Filip Pizlo. Added build variables and build step to create symlinks pointing to the alternate build locations from the current framework install location. * Configurations/libwebrtc.xcconfig: Source/WebCore: https://bugs.webkit.org/show_bug.cgi?id=234173 Update Install Paths for build system changes Reviewed by Filip Pizlo. Added build variables and build step to create symlinks pointing to the alternate build locations from the current framework install location. Covered by existing tests. * Configurations/WebCore.xcconfig: * Scripts/create-symlink-to-altroot.sh: Added. * WebCore.xcodeproj/project.pbxproj: Source/WebGPU: https://bugs.webkit.org/show_bug.cgi?id=234173 Update Install Paths for build system changes Reviewed by Filip Pizlo. Added build variables and build step to create symlinks pointing to the alternate build locations from the current framework install location. * Configurations/WebGPU.xcconfig: * Scripts: Added. * Scripts/create-symlink-to-altroot.sh: Added. * WebGPU.xcodeproj/project.pbxproj: Source/WebInspectorUI: https://bugs.webkit.org/show_bug.cgi?id=234173 Update Install Paths for build system changes Reviewed by Filip Pizlo. Added build variables and build step to create symlinks pointing to the alternate build locations from the current framework install location. * Configurations/WebInspectorUIFramework.xcconfig: * Scripts/create-symlink-to-altroot.sh: Added. * WebInspectorUI.xcodeproj/project.pbxproj: Source/WebKit: https://bugs.webkit.org/show_bug.cgi?id=234173 Update Install Paths for build system changes Reviewed by Filip Pizlo. Added build variables and build step to create symlinks pointing to the alternate build locations from the current framework install location. * Configurations/BaseXPCService.xcconfig: * Configurations/adattributiond.xcconfig: * Configurations/webpushd.xcconfig: * Scripts/create-symlink-to-altroot.sh: Added. * WebKit.xcodeproj/project.pbxproj: Canonical link: https://commits.webkit.org/245321@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287137 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
28 changed files
with
652 additions
and
0 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
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
@@ -0,0 +1,30 @@ | ||
#!/bin/zsh | ||
|
||
set -e | ||
|
||
if [[ -z "${OUTPUT_ALTERNATE_ROOT_PATH}" ]]; then | ||
exit 0 | ||
fi | ||
|
||
if [[ "${SKIP_INSTALL}" = "YES" ]]; then | ||
exit 0 | ||
fi | ||
|
||
# Convert eg. `/System/Library/PrivateFrameworks` to `../../..` | ||
RELATIVE_PATH_FROM_SYMLINK_TO_ROOT=$(echo "${ALTERNATE_ROOT_PATH}" | sed -E -e "s/\/[a-zA-Z0-9_]+/..\//g" -e "s/\/$//") | ||
SYMLINK_VALUE="${RELATIVE_PATH_FROM_SYMLINK_TO_ROOT}${INSTALL_PATH}/${FULL_PRODUCT_NAME}" | ||
|
||
if [[ -L "${OUTPUT_ALTERNATE_ROOT_PATH}" ]]; then | ||
EXISTING_SYMLINK_VALUE=$(readlink "${OUTPUT_ALTERNATE_ROOT_PATH}") | ||
|
||
if [[ "${EXISTING_SYMLINK_VALUE}" == "${SYMLINK_VALUE}" ]]; then | ||
exit 0 | ||
fi | ||
|
||
echo "warning: existing symlink is incorrect; expected ${SYMLINK_VALUE}, got ${EXISTING_SYMLINK_VALUE}" | ||
elif [[ -e "${OUTPUT_ALTERNATE_ROOT_PATH}" ]]; then | ||
echo "error: expected a symlink at ${OUTPUT_ALTERNATE_ROOT_PATH}" | ||
exit 1 | ||
fi | ||
|
||
ln -sf "${SYMLINK_VALUE}" "${OUTPUT_ALTERNATE_ROOT_PATH}" |
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
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
@@ -0,0 +1,30 @@ | ||
#!/bin/zsh | ||
|
||
set -e | ||
|
||
if [[ -z "${OUTPUT_ALTERNATE_ROOT_PATH}" ]]; then | ||
exit 0 | ||
fi | ||
|
||
if [[ "${SKIP_INSTALL}" = "YES" ]]; then | ||
exit 0 | ||
fi | ||
|
||
# Convert eg. `/System/Library/PrivateFrameworks` to `../../..` | ||
RELATIVE_PATH_FROM_SYMLINK_TO_ROOT=$(echo "${ALTERNATE_ROOT_PATH}" | sed -E -e "s/\/[a-zA-Z0-9_]+/..\//g" -e "s/\/$//") | ||
SYMLINK_VALUE="${RELATIVE_PATH_FROM_SYMLINK_TO_ROOT}${INSTALL_PATH}/${FULL_PRODUCT_NAME}" | ||
|
||
if [[ -L "${OUTPUT_ALTERNATE_ROOT_PATH}" ]]; then | ||
EXISTING_SYMLINK_VALUE=$(readlink "${OUTPUT_ALTERNATE_ROOT_PATH}") | ||
|
||
if [[ "${EXISTING_SYMLINK_VALUE}" == "${SYMLINK_VALUE}" ]]; then | ||
exit 0 | ||
fi | ||
|
||
echo "warning: existing symlink is incorrect; expected ${SYMLINK_VALUE}, got ${EXISTING_SYMLINK_VALUE}" | ||
elif [[ -e "${OUTPUT_ALTERNATE_ROOT_PATH}" ]]; then | ||
echo "error: expected a symlink at ${OUTPUT_ALTERNATE_ROOT_PATH}" | ||
exit 1 | ||
fi | ||
|
||
ln -sf "${SYMLINK_VALUE}" "${OUTPUT_ALTERNATE_ROOT_PATH}" |
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
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
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
@@ -0,0 +1,30 @@ | ||
#!/bin/zsh | ||
|
||
set -e | ||
|
||
if [[ -z "${OUTPUT_ALTERNATE_ROOT_PATH}" ]]; then | ||
exit 0 | ||
fi | ||
|
||
if [[ "${SKIP_INSTALL}" = "YES" ]]; then | ||
exit 0 | ||
fi | ||
|
||
# Convert eg. `/System/Library/PrivateFrameworks` to `../../..` | ||
RELATIVE_PATH_FROM_SYMLINK_TO_ROOT=$(echo "${ALTERNATE_ROOT_PATH}" | sed -E -e "s/\/[a-zA-Z0-9_]+/..\//g" -e "s/\/$//") | ||
SYMLINK_VALUE="${RELATIVE_PATH_FROM_SYMLINK_TO_ROOT}${INSTALL_PATH}/${FULL_PRODUCT_NAME}" | ||
|
||
if [[ -L "${OUTPUT_ALTERNATE_ROOT_PATH}" ]]; then | ||
EXISTING_SYMLINK_VALUE=$(readlink "${OUTPUT_ALTERNATE_ROOT_PATH}") | ||
|
||
if [[ "${EXISTING_SYMLINK_VALUE}" == "${SYMLINK_VALUE}" ]]; then | ||
exit 0 | ||
fi | ||
|
||
echo "warning: existing symlink is incorrect; expected ${SYMLINK_VALUE}, got ${EXISTING_SYMLINK_VALUE}" | ||
elif [[ -e "${OUTPUT_ALTERNATE_ROOT_PATH}" ]]; then | ||
echo "error: expected a symlink at ${OUTPUT_ALTERNATE_ROOT_PATH}" | ||
exit 1 | ||
fi | ||
|
||
ln -sf "${SYMLINK_VALUE}" "${OUTPUT_ALTERNATE_ROOT_PATH}" |
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
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
@@ -0,0 +1,30 @@ | ||
#!/bin/zsh | ||
|
||
set -e | ||
|
||
if [[ -z "${OUTPUT_ALTERNATE_ROOT_PATH}" ]]; then | ||
exit 0 | ||
fi | ||
|
||
if [[ "${SKIP_INSTALL}" = "YES" ]]; then | ||
exit 0 | ||
fi | ||
|
||
# Convert eg. `/System/Library/PrivateFrameworks` to `../../..` | ||
RELATIVE_PATH_FROM_SYMLINK_TO_ROOT=$(echo "${ALTERNATE_ROOT_PATH}" | sed -E -e "s/\/[a-zA-Z0-9_]+/..\//g" -e "s/\/$//") | ||
SYMLINK_VALUE="${RELATIVE_PATH_FROM_SYMLINK_TO_ROOT}${INSTALL_PATH}/${FULL_PRODUCT_NAME}" | ||
|
||
if [[ -L "${OUTPUT_ALTERNATE_ROOT_PATH}" ]]; then | ||
EXISTING_SYMLINK_VALUE=$(readlink "${OUTPUT_ALTERNATE_ROOT_PATH}") | ||
|
||
if [[ "${EXISTING_SYMLINK_VALUE}" == "${SYMLINK_VALUE}" ]]; then | ||
exit 0 | ||
fi | ||
|
||
echo "warning: existing symlink is incorrect; expected ${SYMLINK_VALUE}, got ${EXISTING_SYMLINK_VALUE}" | ||
elif [[ -e "${OUTPUT_ALTERNATE_ROOT_PATH}" ]]; then | ||
echo "error: expected a symlink at ${OUTPUT_ALTERNATE_ROOT_PATH}" | ||
exit 1 | ||
fi | ||
|
||
ln -sf "${SYMLINK_VALUE}" "${OUTPUT_ALTERNATE_ROOT_PATH}" |
Oops, something went wrong.