Changeset 93600 in webkit


Ignore:
Timestamp:
Aug 23, 2011 6:26:26 AM (13 years ago)
Author:
vestbo@webkit.org
Message:

[Qt] Fix build on Lion

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

Reviewed by Andreas Kling.

We were mistakenly picking up mac/WebCoreSystemInterface.h instead of
the Qt one, and building on Lion revealed this when a typedef for
IOSurfaceRef was wrapped in PLATFORM(MAC).

For now we fix this by including WebCoreSystemInterface using
brackets, so that we'll pick up the right file based on the
include paths. This also means exposing a few missing enums
in our own version of the file, so those were added.

Lasty, we need to link against the right system interface library
on Lion.

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r93597 r93600  
     12011-08-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
     2
     3        [Qt] Fix build on Lion
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=66770
     6
     7        Reviewed by Andreas Kling.
     8
     9        We were mistakenly picking up mac/WebCoreSystemInterface.h instead of
     10        the Qt one, and building on Lion revealed this when a typedef for
     11        IOSurfaceRef was wrapped in PLATFORM(MAC).
     12
     13        For now we fix this by including WebCoreSystemInterface using
     14        brackets, so that we'll pick up the right file based on the
     15        include paths. This also means exposing a few missing enums
     16        in our own version of the file, so those were added.
     17
     18        Lasty, we need to link against the right system interface library
     19        on Lion.
     20
     21        * platform/mac/WebVideoFullscreenHUDWindowController.mm:
     22        * platform/qt/WebCoreSystemInterface.h:
     23
    1242011-08-23  Steve Block  <steveblock@google.com>
    225
  • trunk/Source/WebCore/platform/mac/WebVideoFullscreenHUDWindowController.mm

    r89617 r93600  
    3030
    3131#import "FloatConversion.h"
    32 #import "WebCoreSystemInterface.h"
     32#import <WebCoreSystemInterface.h>
    3333#import <WebCore/HTMLMediaElement.h>
    3434#import <wtf/RetainPtr.h>
  • trunk/Source/WebCore/platform/qt/WebCoreSystemInterface.h

    r89617 r93600  
    8080extern void (*wkWindowSetScaledFrame)(NSWindow *, NSRect, NSRect);
    8181
     82typedef enum {
     83    wkMediaUIControlTimeline,
     84    wkMediaUIControlSlider,
     85    wkMediaUIControlPlayPauseButton,
     86    wkMediaUIControlExitFullscreenButton,
     87    wkMediaUIControlRewindButton,
     88    wkMediaUIControlFastForwardButton,
     89    wkMediaUIControlVolumeUpButton,
     90    wkMediaUIControlVolumeDownButton
     91} wkMediaUIControlType;
     92
    8293}
    8394
  • trunk/Source/WebKit/qt/ChangeLog

    r93490 r93600  
     12011-08-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
     2
     3        [Qt] Fix build on Lion
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=66770
     6
     7        Reviewed by Andreas Kling.
     8
     9        We were mistakenly picking up mac/WebCoreSystemInterface.h instead of
     10        the Qt one, and building on Lion revealed this when a typedef for
     11        IOSurfaceRef was wrapped in PLATFORM(MAC).
     12
     13        For now we fix this by including WebCoreSystemInterface using
     14        brackets, so that we'll pick up the right file based on the
     15        include paths. This also means exposing a few missing enums
     16        in our own version of the file, so those were added.
     17
     18        Lasty, we need to link against the right system interface library
     19        on Lion.
     20
     21        * QtWebKit.pro:
     22
    1232011-08-21  Lindsay Mathieson  <lindsay.mathieson@gmail.com>
    224
  • trunk/Source/WebKit/qt/QtWebKit.pro

    r93093 r93600  
    257257        DARWIN_VERSION = $$split(QMAKE_HOST.version, ".")
    258258        DARWIN_MAJOR_VERSION = $$first(DARWIN_VERSION)
    259         equals(DARWIN_MAJOR_VERSION, "10") {
    260             LIBS+= $$SOURCE_DIR/../WebKitLibraries/libWebKitSystemInterfaceSnowLeopard.a
    261         } else {
    262             equals(DARWIN_MAJOR_VERSION, "9") {
    263                 LIBS+= $$SOURCE_DIR/../WebKitLibraries/libWebKitSystemInterfaceLeopard.a
    264             }
     259        equals(DARWIN_MAJOR_VERSION, "11") {
     260            LIBS += $$SOURCE_DIR/../WebKitLibraries/libWebKitSystemInterfaceLion.a
     261        } else:equals(DARWIN_MAJOR_VERSION, "10") {
     262            LIBS += $$SOURCE_DIR/../WebKitLibraries/libWebKitSystemInterfaceSnowLeopard.a
     263        } else:equals(DARWIN_MAJOR_VERSION, "9") {
     264            LIBS += $$SOURCE_DIR/../WebKitLibraries/libWebKitSystemInterfaceLeopard.a
    265265        }
    266266    }
Note: See TracChangeset for help on using the changeset viewer.