15. Building WebCore - WebKit porting to Mona OS
Let's build WebKit on OSX, and see what's happening.
% Tools/Scripts/build-webkit --debug --no-svg 2>&1|tee webkit.build.osx.log
The build process is going as following.
- ANGLE (necessary?)
- JavaScriptCore (done)
- JavaScriptGlue (not yet)
- WebCore (not yet)
Okay, I gonna build WebCore. There must be many missing dependencies, but it doesn't matter. Since WebCore is huge, started from subdirectory "./html".
When building Source/WebCore/html/BaseButtonInputType.cpp, following error is shown.
from Source/WebCore/html/BaseButtonInputType.cpp:36: ./Source/WebCore/platform/DragImage.h:87:27: error: 'DragImageRef' was not declared in this scope./Source/WebCore/platform/DragImage.h:92:5: error: 'DragImageRef' does not name a type
Hmm. Seed DragImage.h:87.
#if PLATFORM(MAC) typedef RetainPtr<NSImage> DragImageRef; #elif PLATFORM(QT) typedef QPixmap* DragImageRef; #elif PLATFORM(WIN) typedef HBITMAP DragImageRef; #elif PLATFORM(WX) typedef wxDragImage* DragImageRef; #elif PLATFORM(GTK) typedef cairo_surface_t* DragImageRef;
It just hit me. We should define some kind of drawing unit.