Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Mac] Shims used by XPC services are installed inside legacy process …
…bundles https://bugs.webkit.org/show_bug.cgi?id=152233 Reviewed by Sam Weinig. Have the shim dylibs installed in the framework’s Frameworks directory instead. * Configurations/BaseLegacyProcess.xcconfig: Simplified now that EXCLUDED_SHIM_FILE_NAME is no longer defined, because shims aren’t copied into legacy processes. * Configurations/NetworkProcess.xcconfig: Removed definition of EXCLUDED_SHIM_FILE_NAME. * Configurations/PluginProcess.xcconfig: Ditto. * Configurations/WebContentProcess.xcconfig: Ditto. * Configurations/Shim.xcconfig: Install the shims when building for OS X. Added definitions of INSTALL_PATH and DYLIB_INSTALL_NAME_BASE which are now common to all shims. * Configurations/PluginProcessShim.xcconfig: Removed definitions of INSTALL_PATH and DYLIB_INSTALL_NAME_BASE from here, now that they are defined for all shims in Shim.xcconfig. * Configurations/SecItemShim.xcconfig: Ditto. * Configurations/WebProcessShim.xcconfig: * Configurations/WebKit.xcconfig: Added the shims to EXCLUDED_SOURCE_FILE_NAMES for iOS. * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-OSX-10.9-10.10.plist: Changed the value of DYLD_INSERT_LIBRARIES to point to the shim’s new location. * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64-10.9-10.10.Info.plist: Ditto. * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX-10.9-10.10.plist: Ditto. * UIProcess/Launcher/mac/ProcessLauncherMac.mm: (WebKit::computeProcessShimPath): Changed to return the new paths, which are all inside the framework’s Frameworks directory. * WebKit2.xcodeproj/project.pbxproj: - Removed references to WRAPPER_NAME from the “Copy XPC services for engineering builds” build phase in the All target, becase WRAPPER_NAME is empty in an aggregate target. - Removed the PlugInProcess target’s dependency on the PluginProcessShim target and its Copy Plug-in Process Shim build phase. - Removed the NetworkProcess target’s dependency on the SecItemShim target and its Copy Sec Item Shim build phase. - Removed the WebProcess target’s dependency on the WebProcessShim target and its Copy WebProcessShim build phase. - Made the WebKit target depend on the shim targets, and added to it a Copy Shims build phase that copies the shims into the framework’s Frameworks directory. Canonical link: https://commits.webkit.org/170347@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@194022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
123 additions
and 123 deletions.
- +48 −0 Source/WebKit2/ChangeLog
- +1 −3 Source/WebKit2/Configurations/BaseLegacyProcess.xcconfig
- +0 −2 Source/WebKit2/Configurations/NetworkProcess.xcconfig
- +0 −2 Source/WebKit2/Configurations/PluginProcess.xcconfig
- +0 −3 Source/WebKit2/Configurations/PluginProcessShim.xcconfig
- +0 −3 Source/WebKit2/Configurations/SecItemShim.xcconfig
- +3 −0 Source/WebKit2/Configurations/Shim.xcconfig
- +0 −2 Source/WebKit2/Configurations/WebContentProcess.xcconfig
- +1 −1 Source/WebKit2/Configurations/WebKit.xcconfig
- +0 −3 Source/WebKit2/Configurations/WebProcessShim.xcconfig
- +1 −1 Source/WebKit2/NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-OSX-10.9-10.10.plist
- +1 −1 Source/WebKit2/PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64-10.9-10.10.Info.plist
- +6 −18 Source/WebKit2/UIProcess/Launcher/mac/ProcessLauncherMac.mm
- +61 −83 Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
- +1 −1 Source/WebKit2/WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX-10.9-10.10.plist
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
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
@@ -25,8 +25,5 @@ | ||
|
||
#include "Shim.xcconfig" | ||
|
||
OTHER_LDFLAGS = $(ASAN_OTHER_LDFLAGS) $(OTHER_LDFLAGS_PLATFORM); | ||
OTHER_LDFLAGS_PLATFORM[sdk=macosx*] = -framework Security; |
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
@@ -25,8 +25,5 @@ | ||
|
||
#include "Shim.xcconfig" | ||
|
||
OTHER_LDFLAGS = $(ASAN_OTHER_LDFLAGS) $(OTHER_LDFLAGS_PLATFORM); | ||
OTHER_LDFLAGS_PLATFORM[sdk=macosx*] = -framework CoreServices -framework Security; |
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
Oops, something went wrong.