Changeset 85070 in webkit
- Timestamp:
- Apr 27, 2011 11:52:09 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r85069 r85070 1 2011-04-27 Pratik Solanki <psolanki@apple.com> 2 3 Reviewed by Antti Koivisto. 4 5 Part of WebCore should use CFNetwork-based loader on Mac 6 https://bugs.webkit.org/show_bug.cgi?id=51836 7 8 * Configurations/WebCore.xcconfig: Add location of CFNetwork.framework. 9 * platform/mac/SoftLinking.h: 10 * platform/network/cf/CookieJarCFNet.cpp: Soft-link in CFNetwork functions on Mac. 11 1 12 2011-04-27 Nikolas Zimmermann <nzimmermann@rim.com> 2 13 -
trunk/Source/WebCore/Configurations/WebCore.xcconfig
r85037 r85070 42 42 FRAMEWORK_SEARCH_PATHS_iphoneos_Production = $(PRODUCTION_FRAMEWORKS_DIR); 43 43 FRAMEWORK_SEARCH_PATHS_iphonesimulator = $(FRAMEWORK_SEARCH_PATHS_iphoneos_$(CONFIGURATION)); 44 FRAMEWORK_SEARCH_PATHS_macosx = $(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Frameworks $(SYSTEM_LIBRARY_DIR)/Frameworks/ApplicationServices.framework/Frameworks $( FRAMEWORK_SEARCH_PATHS);44 FRAMEWORK_SEARCH_PATHS_macosx = $(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Frameworks $(SYSTEM_LIBRARY_DIR)/Frameworks/ApplicationServices.framework/Frameworks $(SYSTEM_LIBRARY_DIR)/Frameworks/CoreServices.framework/Frameworks $(FRAMEWORK_SEARCH_PATHS); 45 45 46 46 HEADER_SEARCH_PATHS = ForwardingHeaders icu /usr/include/libxslt /usr/include/libxml2 $(SQLITE3_HEADER_SEARCH_PATHS) "${BUILT_PRODUCTS_DIR}/DerivedSources/WebCore" "${BUILT_PRODUCTS_DIR}/usr/local/include" $(HEADER_SEARCH_PATHS); -
trunk/Source/WebCore/platform/mac/SoftLinking.h
r37941 r85070 46 46 } 47 47 48 #define SOFT_LINK_FRAMEWORK_IN_CORESERVICES_UMBRELLA(framework) \ 49 static void* framework##Library() \ 50 { \ 51 static void* frameworkLibrary = dlopen("/System/Library/Frameworks/CoreServices.framework/Frameworks/" #framework ".framework/" #framework, RTLD_NOW); \ 52 ASSERT(frameworkLibrary); \ 53 return frameworkLibrary; \ 54 } 55 48 56 #define SOFT_LINK(framework, functionName, resultType, parameterDeclarations, parameterNames) \ 49 57 static resultType init##functionName parameterDeclarations; \ … … 60 68 {\ 61 69 return softLink##functionName parameterNames; \ 70 } 71 72 /* callingConvention is unused on Mac but is here to keep the macro prototype the same between Mac and Windows. */ 73 #define SOFT_LINK_OPTIONAL(framework, functionName, resultType, callingConvention, parameterDeclarations) \ 74 typedef resultType (*functionName##PtrType) parameterDeclarations; \ 75 \ 76 static functionName##PtrType functionName##Ptr() \ 77 { \ 78 static functionName##PtrType ptr = reinterpret_cast<functionName##PtrType>(dlsym(framework##Library(), #functionName)); \ 79 return ptr; \ 62 80 } 63 81 -
trunk/Source/WebCore/platform/network/cf/CookieJarCFNet.cpp
r79729 r85070 38 38 #include <CFNetwork/CFHTTPCookiesPriv.h> 39 39 #include <CoreFoundation/CoreFoundation.h> 40 41 #if PLATFORM(WIN) 40 42 #include <WebKitSystemInterface/WebKitSystemInterface.h> 41 43 #include <windows.h> 44 #endif 42 45 43 46 namespace WebCore { … … 46 49 static const CFStringRef s_cookieCF = CFSTR("Cookie"); 47 50 51 #if PLATFORM(WIN) 48 52 #ifdef DEBUG_ALL 49 53 SOFT_LINK_DEBUG_LIBRARY(CFNetwork) 50 54 #else 51 55 SOFT_LINK_LIBRARY(CFNetwork) 56 #endif 57 #else 58 SOFT_LINK_FRAMEWORK_IN_CORESERVICES_UMBRELLA(CFNetwork) 52 59 #endif 53 60
Note: See TracChangeset
for help on using the changeset viewer.