[Webkit-unassigned] [Bug 199065] [GTK] Remove support for GTK2 plugins

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 20 06:39:52 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=199065

Michael Catanzaro <mcatanzaro at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mcatanzaro at igalia.com

--- Comment #9 from Michael Catanzaro <mcatanzaro at igalia.com> ---
Comment on attachment 372549
  --> https://bugs.webkit.org/attachment.cgi?id=372549
Patch

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

Nice! Especially good job removing @no-unify from SourcesGTK.txt; it looks like that was easier than I expected.

And now Adrian, you see why I didn't want you to remove the GDK_API_VERSION_2 guards yesterday.

>>>> Source/WebKit/PlatformGTK.cmake:-469
>>>> -    PRIVATE
>>> 
>>> Is there any reason to remove the “PRIVATE” here? IIUC the GTK
>>> Unix printing library would be still fine linked as such.
>> 
>> Michael told me this is useless in another patch.
> 
> As far as I understand the documentation, the following:
> 
>   target_link_libraries(a PUBLIC b PRIVATE c)
> 
> Will cause code that links against library “a” will be able to use
> *also* symbols from “b”, but not symbols from “c” (unless it explicitly
> links to “c” as well).
> 
> If the above is the case (I am not 100% sure, because the CMake
> documentation is not particularly good), then it looks useful to
> me, because it allows for containment of symbols from other libraries
> used internally without exposing the transitively as part of the ABI
> of the ABI of the “a” library. It also avoids overlinking… I suppose
> this needs some support from the linker and that CMake can figure out
> by itself how to put it to use.
> 
> So I wouldn't consider “PRIVATE” useless ;-)
> 
> (Of couse, “PRIVATE” should not be part of a list-variable, only
> passed directly to “target_link_libraries”, so it's of course a
> good thing that you removed it here.)

Yeah, it has to be used directly in target_link_libraries. What we had here was just a bug.

Don has been working on replacing PUBLIC include directories with PRIVATE to simplify our build. But for now, we're still using PUBLIC for libraries everywhere. To change this, we'd need to add a *_PRIVATE_LIBRARIES variable to the _WEBKIT_TARGET macros. This would be of limited value and cleaning up include directories seems a lot more important.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190620/95dc7fb2/attachment.html>


More information about the webkit-unassigned mailing list