Changeset 167543 in webkit
- Timestamp:
- Apr 19, 2014, 1:10:49 PM (12 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 7 edited
-
ChangeLog (modified) (1 diff)
-
Configurations/NetworkService.Development.xcconfig (modified) (1 diff)
-
Configurations/NetworkService.xcconfig (modified) (1 diff)
-
Configurations/WebContentService.Development.xcconfig (modified) (1 diff)
-
Configurations/WebContentService.xcconfig (modified) (1 diff)
-
UIProcess/Launcher/mac/ProcessLauncherMac.mm (modified) (2 diffs)
-
WebKit2Prefix.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r167537 r167543 1 2014-04-19 Dan Bernstein <mitz@apple.com> 2 3 Use XPC services in the iOS Simulator, but not in Mountain Lion 4 https://bugs.webkit.org/show_bug.cgi?id=131894 5 6 Reviewed by Anders Carlsson. 7 8 * Configurations/NetworkService.Development.xcconfig: Defined INFOPLIST_FILE for the 9 Simulator. 10 * Configurations/NetworkService.xcconfig: Ditto. 11 * Configurations/WebContentService.Development.xcconfig: Ditto. 12 * Configurations/WebContentService.xcconfig: Ditto. 13 * UIProcess/Launcher/mac/ProcessLauncherMac.mm: 14 (WebKit::systemDirectoryPath): Added this helper function that returns a slash-terminated 15 path to the System directory in the current runtime. 16 (WebKit::ProcessLauncher::launchProcess): Changed to use the above function to tell whether 17 a development version of WebKit2 is being used. 18 * WebKit2Prefix.h: Set WTF_USE_XPC_SERVICES to 1 when targeting the iOS Simulator, but not 19 when targeting Mountain Lion. 20 1 21 2014-04-19 Dan Bernstein <mitz@apple.com> 2 22 -
trunk/Source/WebKit2/Configurations/NetworkService.Development.xcconfig
r166103 r167543 30 30 INFOPLIST_FILE_macosx = NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info-OSX.plist; 31 31 INFOPLIST_FILE_iphoneos = NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info-iOS.plist; 32 INFOPLIST_FILE_iphonesimulator = $(INFOPLIST_FILE_iphoneos); 32 33 33 34 CODE_SIGN_ENTITLEMENTS[sdk=iphoneos*] = Configurations/Network-iOS.entitlements -
trunk/Source/WebKit2/Configurations/NetworkService.xcconfig
r166103 r167543 30 30 INFOPLIST_FILE_macosx = NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-OSX.plist; 31 31 INFOPLIST_FILE_iphoneos = NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-iOS.plist; 32 INFOPLIST_FILE_iphonesimulator = $(INFOPLIST_FILE_iphoneos); 32 33 33 34 CODE_SIGN_ENTITLEMENTS[sdk=iphoneos*] = Configurations/Network-iOS.entitlements -
trunk/Source/WebKit2/Configurations/WebContentService.Development.xcconfig
r164547 r167543 30 30 INFOPLIST_FILE_macosx = WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info-OSX.plist; 31 31 INFOPLIST_FILE_iphoneos = WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info-iOS.plist; 32 INFOPLIST_FILE_iphonesimulator = $(INFOPLIST_FILE_iphoneos); 32 33 33 34 CODE_SIGN_ENTITLEMENTS[sdk=iphoneos*] = Configurations/WebContent-iOS.entitlements -
trunk/Source/WebKit2/Configurations/WebContentService.xcconfig
r164547 r167543 27 27 28 28 PRODUCT_NAME = com.apple.WebKit.WebContent; 29 30 29 INFOPLIST_FILE = $(INFOPLIST_FILE_$(PLATFORM_NAME)); 31 30 INFOPLIST_FILE_macosx = WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX.plist; 32 31 INFOPLIST_FILE_iphoneos = WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-iOS.plist; 32 INFOPLIST_FILE_iphonesimulator = $(INFOPLIST_FILE_iphoneos); 33 33 34 34 CODE_SIGN_ENTITLEMENTS[sdk=iphoneos*] = Configurations/WebContent-iOS.entitlements -
trunk/Source/WebKit2/UIProcess/Launcher/mac/ProcessLauncherMac.mm
r167410 r167543 502 502 } 503 503 504 static NSString *systemDirectoryPath() 505 { 506 static NSString *path = [^{ 507 #if PLATFORM(IOS_SIMULATOR) 508 char *simulatorRoot = getenv("SIMULATOR_ROOT"); 509 return simulatorRoot ? [NSString stringWithFormat:@"%s/System/", simulatorRoot] : @"/System/"; 510 #else 511 return @"/System/"; 512 #endif 513 }() copy]; 514 515 return path; 516 } 517 504 518 void ProcessLauncher::launchProcess() 505 519 { … … 507 521 return; 508 522 509 bool isWebKitDevelopmentBuild = ![[[[NSBundle bundleWithIdentifier:@"com.apple.WebKit2"] bundlePath] stringByDeletingLastPathComponent] hasPrefix: @"/System/"];523 bool isWebKitDevelopmentBuild = ![[[[NSBundle bundleWithIdentifier:@"com.apple.WebKit2"] bundlePath] stringByDeletingLastPathComponent] hasPrefix:systemDirectoryPath()]; 510 524 511 525 if (m_launchOptions.useXPC) { -
trunk/Source/WebKit2/WebKit2Prefix.h
r166963 r167543 65 65 #endif 66 66 67 #if (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090) || !PLATFORM(IOS_SIMULATOR)67 #if !(defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED == 1080) 68 68 #define WTF_USE_XPC_SERVICES 1 69 69 #endif
Note:
See TracChangeset
for help on using the changeset viewer.