[iOS] Conditionally rename DatabaseProcess to StorageProcess when building for iOS...
[WebKit-https.git] / Source / WebKit / Configurations / BaseTarget.xcconfig
index f7ab180..984a260 100644 (file)
@@ -106,6 +106,12 @@ WK_HAVE_CORE_PREDICTION[sdk=macosx*][arch=i386] = NO;
 WK_CORE_PREDICTION_DEFINES = $(WK_CORE_PREDICTION_DEFINES_$(WK_HAVE_CORE_PREDICTION));
 WK_CORE_PREDICTION_DEFINES_YES = HAVE_CORE_PREDICTION;
 
-WK_STORAGE_SERVICE_PRODUCT_NAME = com.apple.WebKit.Databases;
-WK_STORAGE_SERVICE_PRODUCT_NAME[sdk=macosx*] = com.apple.WebKit.Storage;
-WK_STORAGE_SERVICE_PRODUCT_NAME[sdk=*simulator*] = com.apple.WebKit.Storage;
+WK_STORAGE_SERVICE_PRODUCT_NAME = $(WK_STORAGE_SERVICE_PRODUCT_NAME_$(WK_USE_LEGACY_STORAGE_SERVICE_NAME));
+WK_STORAGE_SERVICE_PRODUCT_NAME_ = $(WK_STORAGE_SERVICE_PRODUCT_NAME_NO);
+WK_STORAGE_SERVICE_PRODUCT_NAME_NO = com.apple.WebKit.Storage;
+WK_STORAGE_SERVICE_PRODUCT_NAME_YES = com.apple.WebKit.Databases;
+
+WK_USE_LEGACY_STORAGE_SERVICE_NAME[sdk=iphoneos11*] = $(WK_USE_LEGACY_STORAGE_SERVICE_NAME_11$(IPHONEOS_DEPLOYMENT_TARGET:suffix:identifier));
+WK_USE_LEGACY_STORAGE_SERVICE_NAME_11_0 = YES;
+WK_USE_LEGACY_STORAGE_SERVICE_NAME_11_1 = YES;
+WK_USE_LEGACY_STORAGE_SERVICE_NAME_11_2 = YES;