⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 167543 in webkit


Ignore:
Timestamp:
Apr 19, 2014, 1:10:49 PM (12 years ago)
Author:
mitz@apple.com
Message:

Use XPC services in the iOS Simulator, but not in Mountain Lion
https://bugs.webkit.org/show_bug.cgi?id=131894

Reviewed by Anders Carlsson.

  • Configurations/NetworkService.Development.xcconfig: Defined INFOPLIST_FILE for the

Simulator.

  • Configurations/NetworkService.xcconfig: Ditto.
  • Configurations/WebContentService.Development.xcconfig: Ditto.
  • Configurations/WebContentService.xcconfig: Ditto.
  • UIProcess/Launcher/mac/ProcessLauncherMac.mm:

(WebKit::systemDirectoryPath): Added this helper function that returns a slash-terminated
path to the System directory in the current runtime.
(WebKit::ProcessLauncher::launchProcess): Changed to use the above function to tell whether
a development version of WebKit2 is being used.

  • WebKit2Prefix.h: Set WTF_USE_XPC_SERVICES to 1 when targeting the iOS Simulator, but not

when targeting Mountain Lion.

Location:
trunk/Source/WebKit2
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r167537 r167543  
     12014-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
    1212014-04-19  Dan Bernstein  <mitz@apple.com>
    222
  • trunk/Source/WebKit2/Configurations/NetworkService.Development.xcconfig

    r166103 r167543  
    3030INFOPLIST_FILE_macosx = NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info-OSX.plist;
    3131INFOPLIST_FILE_iphoneos = NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info-iOS.plist;
     32INFOPLIST_FILE_iphonesimulator = $(INFOPLIST_FILE_iphoneos);
    3233
    3334CODE_SIGN_ENTITLEMENTS[sdk=iphoneos*] = Configurations/Network-iOS.entitlements
  • trunk/Source/WebKit2/Configurations/NetworkService.xcconfig

    r166103 r167543  
    3030INFOPLIST_FILE_macosx = NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-OSX.plist;
    3131INFOPLIST_FILE_iphoneos = NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-iOS.plist;
     32INFOPLIST_FILE_iphonesimulator = $(INFOPLIST_FILE_iphoneos);
    3233
    3334CODE_SIGN_ENTITLEMENTS[sdk=iphoneos*] = Configurations/Network-iOS.entitlements
  • trunk/Source/WebKit2/Configurations/WebContentService.Development.xcconfig

    r164547 r167543  
    3030INFOPLIST_FILE_macosx = WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info-OSX.plist;
    3131INFOPLIST_FILE_iphoneos = WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info-iOS.plist;
     32INFOPLIST_FILE_iphonesimulator = $(INFOPLIST_FILE_iphoneos);
    3233
    3334CODE_SIGN_ENTITLEMENTS[sdk=iphoneos*] = Configurations/WebContent-iOS.entitlements
  • trunk/Source/WebKit2/Configurations/WebContentService.xcconfig

    r164547 r167543  
    2727
    2828PRODUCT_NAME = com.apple.WebKit.WebContent;
    29 
    3029INFOPLIST_FILE = $(INFOPLIST_FILE_$(PLATFORM_NAME));
    3130INFOPLIST_FILE_macosx = WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX.plist;
    3231INFOPLIST_FILE_iphoneos = WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-iOS.plist;
     32INFOPLIST_FILE_iphonesimulator = $(INFOPLIST_FILE_iphoneos);
    3333
    3434CODE_SIGN_ENTITLEMENTS[sdk=iphoneos*] = Configurations/WebContent-iOS.entitlements
  • trunk/Source/WebKit2/UIProcess/Launcher/mac/ProcessLauncherMac.mm

    r167410 r167543  
    502502}
    503503
     504static 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
    504518void ProcessLauncher::launchProcess()
    505519{
     
    507521        return;
    508522
    509     bool isWebKitDevelopmentBuild = ![[[[NSBundle bundleWithIdentifier:@"com.apple.WebKit2"] bundlePath] stringByDeletingLastPathComponent] hasPrefix:@"/System/"];
     523    bool isWebKitDevelopmentBuild = ![[[[NSBundle bundleWithIdentifier:@"com.apple.WebKit2"] bundlePath] stringByDeletingLastPathComponent] hasPrefix:systemDirectoryPath()];
    510524
    511525    if (m_launchOptions.useXPC) {
  • trunk/Source/WebKit2/WebKit2Prefix.h

    r166963 r167543  
    6565#endif
    6666
    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)
    6868#define WTF_USE_XPC_SERVICES 1
    6969#endif
Note: See TracChangeset for help on using the changeset viewer.