[webkit-dev] Meaning of PLATFORM(MAC) and platform/cocoa?
Joseph Pecoraro
pecoraro at apple.com
Mon Jul 5 12:22:55 PDT 2010
> It seems like a good idea to share as much code as we can between ports
> rather than forking files.
Absolutely, that was the original reason behind platform/cocoa!
> To that end, would it be possible for someone to explain the exact meaning
> of PLATFORM(MAC) and the intended use of the platform/cocoa directory?
I added this to allow shared code between PLATFORM(MAC) and
PLATFORM(IPHONE). You can see some of the discussion and original
patches on this bug:
https://bugs.webkit.org/show_bug.cgi?id=35870
Checking the svn history on WebCore/platform/cocoa would give you some
history on it as well.
> If a certain file uses Cocoa and is shared between OS X ports (including Chromium),
> where should the file go?
It could be that "cocoa" is a misleading name. We thought of "darwin" at the time.
But putting code in platform/cocoa would be fine if the code is shared. Do you
have a specific example in mind?
- Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100705/a4060e12/attachment.html>
More information about the webkit-dev
mailing list