[webkit-changes] [WebKit/WebKit] d22206: Add a WKWebPushToolMain for webpushtool to use
Brady Eidson
noreply at github.com
Thu Sep 7 15:44:54 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d222062cd5d98317ce032f74b768367b6a6bcffb
https://github.com/WebKit/WebKit/commit/d222062cd5d98317ce032f74b768367b6a6bcffb
Author: Brady Eidson <beidson at apple.com>
Date: 2023-09-07 (Thu, 07 Sep 2023)
Changed paths:
M Source/WebKit/Configurations/WebKit.xcconfig
M Source/WebKit/Configurations/webpushtool.xcconfig
M Source/WebKit/Shared/API/Cocoa/WKMain.h
M Source/WebKit/Shared/API/Cocoa/WKMain.mm
M Source/WebKit/WebKit.xcodeproj/project.pbxproj
A Source/WebKit/webpushd/webpushtool/WebPushToolMain.h
M Source/WebKit/webpushd/webpushtool/WebPushToolMain.mm
A Source/WebKit/webpushd/webpushtool/webpushtool.cpp
Log Message:
-----------
Add a WKWebPushToolMain for webpushtool to use
https://bugs.webkit.org/show_bug.cgi?id=261235
rdar://115079480
Reviewed by Tim Horton and Andy Estes.
Upcoming webpushtool work requires its code to be part of the WebKit build, as opposed to it being a WebKit client.
So let's make it use WKMain like our daemons do.
* Source/WebKit/Configurations/WebKit.xcconfig:
* Source/WebKit/Configurations/webpushtool.xcconfig:
* Source/WebKit/Shared/API/Cocoa/WKMain.h:
* Source/WebKit/Shared/API/Cocoa/WKMain.mm:
(WKWebPushToolMain):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Source/WebKit/webpushd/webpushtool/WebPushToolMain.h: Copied from Source/WebKit/Shared/API/Cocoa/WKMain.h.
* Source/WebKit/webpushd/webpushtool/WebPushToolMain.mm:
(registerDaemonWithLaunchD):
(WebKit::WebPushToolMain):
(main): Deleted.
* Source/WebKit/webpushd/webpushtool/webpushtool.cpp: Copied from Source/WebKit/Shared/API/Cocoa/WKMain.mm.
(main):
Canonical link: https://commits.webkit.org/267755@main
More information about the webkit-changes
mailing list