[webkit-dev] WEBCORE_EXPORT

Alex Christensen achristensen at apple.com
Mon Feb 23 14:43:10 PST 2015

Last week I switched the iOS and Mac builds to use WEBCORE_EXPORT instead of WebCore.exp.in.  This should make maintenance easier, but there are a few quirks everybody should be aware of:

1) Do not use WEBCORE_EXPORT before a function defined in a header.  This will cause check-for-weak-vtables-and-externals to fail sometimes.  See http://trac.webkit.org/changeset/179974/trunk/Source/WebCore/dom/Range.h <http://trac.webkit.org/changeset/179974/trunk/Source/WebCore/dom/Range.h> for an example fix.
2) If you need to export the vtable of a class, put WEBCORE_EXPORT between “class" and the class name, but not before method and member variable declarations.  Otherwise Visual Studio will not compile successfully after we get rid of WebKitExports.def.in.  See http://trac.webkit.org/changeset/180301/trunk/Source/WebCore/bridge/runtime_method.h <http://trac.webkit.org/changeset/180301/trunk/Source/WebCore/bridge/runtime_method.h> for an example fix.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20150223/ffd702f6/attachment.html>

More information about the webkit-dev mailing list