Title: [250625] trunk
Revision
250625
Author
[email protected]
Date
2019-10-02 13:35:03 -0700 (Wed, 02 Oct 2019)

Log Message

CMake-built WebKit.framework should launch XPC services successfully
https://bugs.webkit.org/show_bug.cgi?id=202490

Rubber-stamped by Tim Horton.

.:

* Source/cmake/OptionsMac.cmake:

Source/WebKit:

* CMakeLists.txt:
* PlatformMac.cmake:

Modified Paths

Diff

Modified: trunk/ChangeLog (250624 => 250625)


--- trunk/ChangeLog	2019-10-02 20:11:09 UTC (rev 250624)
+++ trunk/ChangeLog	2019-10-02 20:35:03 UTC (rev 250625)
@@ -1,3 +1,12 @@
+2019-10-02  Alex Christensen  <[email protected]>
+
+        CMake-built WebKit.framework should launch XPC services successfully
+        https://bugs.webkit.org/show_bug.cgi?id=202490
+
+        Rubber-stamped by Tim Horton.
+
+        * Source/cmake/OptionsMac.cmake:
+
 2019-10-02  Carlos Garcia Campos  <[email protected]>
 
         [GTK][WPE] Stop using legacy custom protocol implementation

Modified: trunk/Source/WebKit/CMakeLists.txt (250624 => 250625)


--- trunk/Source/WebKit/CMakeLists.txt	2019-10-02 20:11:09 UTC (rev 250624)
+++ trunk/Source/WebKit/CMakeLists.txt	2019-10-02 20:35:03 UTC (rev 250625)
@@ -420,6 +420,7 @@
 WEBKIT_COMPUTE_SOURCES(WebKit)
 
 WEBKIT_FRAMEWORK(WebKit)
+target_link_options(WebKit PRIVATE ${WebKit_LINK_OPTIONS})
 add_dependencies(WebKit WebCore ${WEBKIT_EXTRA_DEPENDENCIES})
 ADD_WEBKIT_PREFIX_HEADER(WebKit)
 

Modified: trunk/Source/WebKit/ChangeLog (250624 => 250625)


--- trunk/Source/WebKit/ChangeLog	2019-10-02 20:11:09 UTC (rev 250624)
+++ trunk/Source/WebKit/ChangeLog	2019-10-02 20:35:03 UTC (rev 250625)
@@ -1,3 +1,13 @@
+2019-10-02  Alex Christensen  <[email protected]>
+
+        CMake-built WebKit.framework should launch XPC services successfully
+        https://bugs.webkit.org/show_bug.cgi?id=202490
+
+        Rubber-stamped by Tim Horton.
+
+        * CMakeLists.txt:
+        * PlatformMac.cmake:
+
 2019-10-02  Kate Cheney  <[email protected]>
 
         Updated resource load statistics are never merged into the SQLite Database backend (202372).

Modified: trunk/Source/WebKit/PlatformMac.cmake (250624 => 250625)


--- trunk/Source/WebKit/PlatformMac.cmake	2019-10-02 20:11:09 UTC (rev 250624)
+++ trunk/Source/WebKit/PlatformMac.cmake	2019-10-02 20:35:03 UTC (rev 250625)
@@ -1,6 +1,8 @@
 add_definitions("-ObjC++ -std=c++17")
 find_library(APPLICATIONSERVICES_LIBRARY ApplicationServices)
 find_library(CARBON_LIBRARY Carbon)
+find_library(SECURITY_LIBRARY Security)
+find_library(SECURITYINTERFACE_LIBRARY SecurityInterface)
 find_library(QUARTZ_LIBRARY Quartz)
 find_library(AVFOUNDATION_LIBRARY AVFoundation)
 find_library(AVFAUDIO_LIBRARY AVFAudio HINTS ${AVFOUNDATION_LIBRARY}/Versions/*/Frameworks)
@@ -9,9 +11,13 @@
 add_definitions(-iframework ${APPLICATIONSERVICES_LIBRARY}/Versions/Current/Frameworks)
 add_definitions(-DWK_XPC_SERVICE_SUFFIX=".Development")
 
+set(MACOSX_FRAMEWORK_IDENTIFIER com.apple.WebKit)
+
 list(APPEND WebKit_LIBRARIES
+    SecItemShim
     WebKitLegacy
     ${APPLICATIONSERVICES_LIBRARY}
+    ${SECURITYINTERFACE_LIBRARY}
 )
 
 if (NOT AVFAUDIO_LIBRARY-NOTFOUND)
@@ -410,10 +416,23 @@
     --platform=macOS
 )
 
+set(SecItemShimDirectory ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/WebKit.framework/Versions/A/Frameworks)
+add_library(SecItemShim SHARED WebProcess/mac/SecItemShimLibrary.mm)
+WEBKIT_CREATE_SYMLINK(SecItemShim ${SecItemShimDirectory} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/WebKit.framework/Frameworks)
+set_target_properties(SecItemShim PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${SecItemShimDirectory})
+set_target_properties(SecItemShim PROPERTIES PREFIX "")
+target_link_libraries(SecItemShim ${SECURITY_LIBRARY})
+target_include_directories(SecItemShim PRIVATE
+    ${CMAKE_BINARY_DIR}
+    ${FORWARDING_HEADERS_DIR}
+    ${WEBKIT_DIR}
+)
+
 # FIXME: These should not be necessary.
 file(WRITE ${FORWARDING_HEADERS_DIR}/WebKit/WKImageCG.h "#import <WebKit/Shared/API/c/cg/WKImageCG.h>")
 
-set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-compatibility_version 1 -current_version ${WEBKIT_MAC_VERSION} -weak_framework SafariSafeBrowsing -lsandbox -framework AuthKit -framework SecurityInterface")
+set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-compatibility_version 1 -current_version ${WEBKIT_MAC_VERSION}")
+set(WebKit_LINK_OPTIONS -weak_framework SafariSafeBrowsing -lsandbox -framework AuthKit)
 
 set(WebKit_OUTPUT_NAME WebKit)
 
@@ -420,6 +439,7 @@
 # XPC Services
 
 function(WEBKIT_DEFINE_XPC_SERVICES)
+    set(RUNLOOP_TYPE _WebKit)
     set(WebKit_XPC_SERVICE_DIR ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/WebKit.framework/Versions/A/XPCServices)
     WEBKIT_CREATE_SYMLINK(WebProcess ${WebKit_XPC_SERVICE_DIR} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/WebKit.framework/XPCServices)
 

Modified: trunk/Source/cmake/OptionsMac.cmake (250624 => 250625)


--- trunk/Source/cmake/OptionsMac.cmake	2019-10-02 20:11:09 UTC (rev 250624)
+++ trunk/Source/cmake/OptionsMac.cmake	2019-10-02 20:35:03 UTC (rev 250625)
@@ -1,4 +1,6 @@
-set(WEBKIT_MAC_VERSION 602.1.27)
+# FIXME: These should line up with versions in Version.xcconfig
+set(WEBKIT_MAC_VERSION 609.1.6)
+set(MACOSX_FRAMEWORK_BUNDLE_VERSION 609.1.6+)
 
 WEBKIT_OPTION_BEGIN()
 # Private options shared with other WebKit ports. Add options here only if
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to