Introduce a script to generate TestWebKitAPI entitlements#44141
Conversation
|
EWS run on previous version of this PR (hash b8cfb1d) Details |
|
I learned offline that this generates the incorrect entitlements for simulator binaries. Converting to a draft while I address that. |
b8cfb1d to
ff3cdb9
Compare
|
EWS run on previous version of this PR (hash ff3cdb9) Details |
There was a problem hiding this comment.
nit: Do you really need to rm -f here? Seems like PlistBuddy Clear ... will reset the plist for you.
There was a problem hiding this comment.
naming nit: I wonder if it would be clearer to give this a simulator-specific name, since its purpose is to hold entitlements that apply to the code signature of simulated binaries only. how about WK_SIMULATED_XCENT_FILE?
There was a problem hiding this comment.
Out of curiosity, do we need to run the script this early, before compilation? I would have expected it to run post-compiling, pre-linking, i.e. between the Sources and Frameworks build phases.
No big deal either way.
There was a problem hiding this comment.
I'm not sure I totally understand why, but a cycle is introduced when this phase comes after Compile Sources.
ff3cdb9 to
f3e3098
Compare
|
EWS run on current version of this PR (hash f3e3098) Details
|
https://bugs.webkit.org/show_bug.cgi?id=291618 rdar://problem/149363565 Reviewed by Elliott Williams. To make it easier to add unique entitlements to TestWebKitAPI.app without duplicating the entitlements from TestWebKitAPI, introduced a process-entitlements.sh script to generate entitlements for TestWebKitAPI and TestWebKitAPI.app. Ensured that non-base entitlements are added to a __TEXT section in simulator binaries and to the code signature otherwise. Verified that TestWebKitAPI and TestWebKitAPI.app have the same entitlements before and after this change. * Tools/TestWebKitAPI/Configurations/TestWebKitAPI-iOS.entitlements: Removed. * Tools/TestWebKitAPI/Configurations/TestWebKitAPI-macOS-internal.entitlements: Removed. * Tools/TestWebKitAPI/Configurations/TestWebKitAPI-macOS.entitlements: Removed. * Tools/TestWebKitAPI/Configurations/TestWebKitAPIBase.xcconfig: * Tools/TestWebKitAPI/Scripts/process-entitlements.sh: Added. * Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Canonical link: https://commits.webkit.org/294089@main
f3e3098 to
2177a49
Compare
|
Committed 294089@main (2177a49): https://commits.webkit.org/294089@main Reviewed commits have been landed. Closing PR #44141 and removing active labels. |
2177a49
f3e3098
🧪 style🛠 ios🛠 mac🛠 wpe🛠 win🧪 bindings🛠 ios-sim🛠 mac-AS-debug🧪 wpe-wk2🧪 win-tests🧪 webkitperl🧪 ios-wk2🧪 api-mac🧪 api-wpe🧪 ios-wk2-wpt🧪 mac-wk1🛠 wpe-cairo🧪 api-ios🧪 mac-wk2🛠 gtk🛠 vision🧪 mac-AS-debug-wk2🧪 gtk-wk2🛠 vision-sim🧪 mac-wk2-stress🧪 api-gtk🧪 mac-intel-wk2🛠 playstation🛠 tv🛠 tv-sim🛠 watch🛠 watch-sim