Bug 213909 - GameController.framework soft linking refactoring
Summary: GameController.framework soft linking refactoring
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brady Eidson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-07-02 17:19 PDT by Brady Eidson
Modified: 2020-07-02 18:06 PDT (History)
2 users (show)

See Also:


Attachments
Patch (13.68 KB, patch)
2020-07-02 17:20 PDT, Brady Eidson
thorton: review+
Details | Formatted Diff | Diff
Patch for landing (13.40 KB, patch)
2020-07-02 17:28 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2020-07-02 17:19:06 PDT
GameController.framework soft linking refactoring

We'll soon need to use GC.framework in multiple places, so it's time to refactor it out into its own files.

(Also add a soon-to-be-needed SPI header while I'm at it)
Comment 1 Brady Eidson 2020-07-02 17:20:55 PDT
Created attachment 403420 [details]
Patch
Comment 2 Tim Horton 2020-07-02 17:23:46 PDT
Comment on attachment 403420 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=403420&action=review

> Source/WebCore/platform/gamepad/cocoa/GameControllerSPI.h:33
> +WTF_EXTERN_C_BEGIN

This should include a fixme with a radar where you ask for the headers to be fixed.

> Source/WebCore/platform/gamepad/cocoa/GameControllerSoftLink.mm:33
> +SOFT_LINK_FRAMEWORK_FOR_SOURCE(WebCore, GameController)

I think you lost the optionality here?
Comment 3 Brady Eidson 2020-07-02 17:25:36 PDT
(In reply to Tim Horton from comment #2)
> Comment on attachment 403420 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=403420&action=review
> 
> > Source/WebCore/platform/gamepad/cocoa/GameControllerSPI.h:33
> > +WTF_EXTERN_C_BEGIN
> 
> This should include a fixme with a radar where you ask for the headers to be
> fixed.

Sure.

> 
> > Source/WebCore/platform/gamepad/cocoa/GameControllerSoftLink.mm:33
> > +SOFT_LINK_FRAMEWORK_FOR_SOURCE(WebCore, GameController)
> 
> I think you lost the optionality here?

Actually not - Using the Header/Source softlink for a Framework always has optionality.

(You'll see that used in the next patch!
Comment 4 Brady Eidson 2020-07-02 17:28:02 PDT
Created attachment 403422 [details]
Patch for landing
Comment 5 EWS 2020-07-02 18:05:40 PDT
Committed r263878: <https://trac.webkit.org/changeset/263878>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 403422 [details].
Comment 6 Radar WebKit Bug Importer 2020-07-02 18:06:20 PDT
<rdar://problem/65058543>