Changeset 267034 in webkit


Ignore:
Timestamp:
Sep 14, 2020 1:17:40 PM (4 years ago)
Author:
Fujii Hironori
Message:

[WinCairo][MediaFoundation] r264188 introduced linker warning: LNK4199: /DELAYLOAD:mf.dll ignored; no imports found from mf.dll
https://bugs.webkit.org/show_bug.cgi?id=214170

Reviewed by Alex Christensen.

Source/WebCore:

r264188 added the linker flag /DELAYLOAD:mf.dll to WebCore. It
introduced a lot of linker warnings for modules not using
MediaFoundation, for example WebKitWebProcess.exe,
MiniBrowserLib.dll, etc. The linker option should be applied only
to direct WebCore consumers, namely WebKit.dll, WebKit2.dll and
TestWebCore.exe.

Define a INTERFACE library, and link it explicitly with the direct
WebCore consumers.

  • PlatformWinCairo.cmake:

Source/WebKit:

  • PlatformWin.cmake:

Source/WebKitLegacy:

  • PlatformWin.cmake:

Tools:

  • TestWebKitAPI/PlatformWin.cmake:
Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r267027 r267034  
     12020-09-14  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [WinCairo][MediaFoundation] r264188 introduced linker warning: LNK4199: /DELAYLOAD:mf.dll ignored; no imports found from mf.dll
     4        https://bugs.webkit.org/show_bug.cgi?id=214170
     5
     6        Reviewed by Alex Christensen.
     7
     8        r264188 added the linker flag /DELAYLOAD:mf.dll to WebCore. It
     9        introduced a lot of linker warnings for modules not using
     10        MediaFoundation, for example WebKitWebProcess.exe,
     11        MiniBrowserLib.dll, etc. The linker option should be applied only
     12        to direct WebCore consumers, namely WebKit.dll, WebKit2.dll and
     13        TestWebCore.exe.
     14
     15        Define a INTERFACE library, and link it explicitly with the direct
     16        WebCore consumers.
     17
     18        * PlatformWinCairo.cmake:
     19
    1202020-09-14  Dean Jackson  <dino@apple.com>
    221
  • trunk/Source/WebCore/PlatformWinCairo.cmake

    r264236 r267034  
    3939
    4040list(APPEND WebCore_LIBRARIES
    41     D3d9
    42     Mf
    43     Mfplat
    4441    comctl32
    4542    crypt32
    4643    delayimp
    47     dxva2
    48     evr
    4944    iphlpapi
    5045    rpcrt4
     
    5651)
    5752
    58 target_link_options(WebCore PUBLIC /DELAYLOAD:mf.dll /DELAYLOAD:mfplat.dll)
     53# Define a INTERFACE library for MediaFoundation and link it
     54# explicitly with direct WebCore consumers because /DELAYLOAD causes
     55# linker warnings for modules not using MediaFoundation.
     56#  LINK : warning LNK4199: /DELAYLOAD:mf.dll ignored; no imports found from mf.dll
     57add_library(MediaFoundation INTERFACE)
     58target_link_libraries(MediaFoundation INTERFACE
     59    d3d9
     60    dxva2
     61    evr
     62    mf
     63    mfplat
     64)
     65target_link_options(MediaFoundation INTERFACE
     66    /DELAYLOAD:d3d9.dll
     67    /DELAYLOAD:dxva2.dll
     68    /DELAYLOAD:evr.dll
     69    /DELAYLOAD:mf.dll
     70    /DELAYLOAD:mfplat.dll
     71)
    5972
    6073if (USE_WOFF2)
  • trunk/Source/WebKit/ChangeLog

    r267031 r267034  
     12020-09-14  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [WinCairo][MediaFoundation] r264188 introduced linker warning: LNK4199: /DELAYLOAD:mf.dll ignored; no imports found from mf.dll
     4        https://bugs.webkit.org/show_bug.cgi?id=214170
     5
     6        Reviewed by Alex Christensen.
     7
     8        * PlatformWin.cmake:
     9
    1102020-09-14  Devin Rousso  <drousso@apple.com>
    211
  • trunk/Source/WebKit/PlatformWin.cmake

    r262158 r267034  
    167167    list(APPEND WebKit_PRIVATE_LIBRARIES
    168168        $<TARGET_OBJECTS:WebCore>
     169        MediaFoundation
    169170        OpenSSL::SSL
    170171        mfuuid.lib
  • trunk/Source/WebKitLegacy/ChangeLog

    r265602 r267034  
     12020-09-14  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [WinCairo][MediaFoundation] r264188 introduced linker warning: LNK4199: /DELAYLOAD:mf.dll ignored; no imports found from mf.dll
     4        https://bugs.webkit.org/show_bug.cgi?id=214170
     5
     6        Reviewed by Alex Christensen.
     7
     8        * PlatformWin.cmake:
     9
    1102020-08-12  Keith Rollin  <krollin@apple.com>
    211
  • trunk/Source/WebKitLegacy/PlatformWin.cmake

    r261627 r267034  
    1010    list(APPEND WebKitLegacy_PRIVATE_LIBRARIES
    1111        $<TARGET_OBJECTS:WebCore>
     12        MediaFoundation
    1213        OpenSSL::SSL
    1314        mfuuid.lib
  • trunk/Tools/ChangeLog

    r267030 r267034  
     12020-09-14  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [WinCairo][MediaFoundation] r264188 introduced linker warning: LNK4199: /DELAYLOAD:mf.dll ignored; no imports found from mf.dll
     4        https://bugs.webkit.org/show_bug.cgi?id=214170
     5
     6        Reviewed by Alex Christensen.
     7
     8        * TestWebKitAPI/PlatformWin.cmake:
     9
    1102020-09-14  Fujii Hironori  <Hironori.Fujii@sony.com>
    211
  • trunk/Tools/TestWebKitAPI/PlatformWin.cmake

    r264253 r267034  
    5454    list(APPEND TestWebCore_LIBRARIES
    5555        Cairo::Cairo
     56        MediaFoundation
    5657        OpenSSL::SSL
    5758        mfuuid
Note: See TracChangeset for help on using the changeset viewer.