[Webkit-unassigned] [Bug 27551] Make it possible to build JavaScriptCore as shared library without symbol lists

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 29 22:58:51 PDT 2010


--- Comment #53 from Simon Hausmann <hausmann at webkit.org>  2010-06-29 22:58:50 PST ---
(In reply to comment #50)
> On the Qt front, I'm just waiting to hear what the best idea would be for handling the issue with moc_XYZ.cpp files not including config.h. 

The solution to this problem is this:

   1) Foo.h declares a QObject subclass and has a Q_OBJECT macro
   2) Foo.cpp implements the class
   3) The build system runs moc on Foo.h and generates moc_Foo.cpp
   4) moc_Foo.cpp is compiled separately

If however you change Foo.cpp to include "moc_Foo.cpp" at the end of the file (see WebKit/qt/Api/qwebpage.cpp for example), then the build system will automatically skip step number 4). That means the moc generated code is compiled as part of Foo.cpp, which has the config.h inclusion at the top of the file.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list