Changeset 217184 in webkit


Ignore:
Timestamp:
May 19, 2017 11:55:38 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

[Win] error LNK2005: WebCore::JSNode::checkSubClassPatchpoint() already defined in WebKit.lib
https://bugs.webkit.org/show_bug.cgi?id=172267

Patch by Fujii Hironori <Fujii Hironori> on 2017-05-19
Reviewed by Per Arne Vollan.

TestWebCoreLib and TestWebKitLib have linked both WebCore and WebKit.
TestWebCoreLib should link only with WebCore. And, TestWebKitLib
should link only with WebKit.

Unfortunately, there is a layer violation at the moment.
WebCore::Image::loadPlatformResource needs loadResourceIntoBuffer
in WebKit. This change contains a stub of loadResourceIntoBuffer
in TestWebCoreLib for the workaround.

  • TestWebKitAPI/PlatformWin.cmake: Do not link WebKit to

TestWebCoreLib. Do not link WebCore to TestWebKitLib.

  • TestWebKitAPI/win/TestWebCoreStubs.cpp: Added.

(loadResourceIntoBuffer): Added a stub.

Location:
trunk/Tools
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r217167 r217184  
     12017-05-19  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win] error LNK2005: WebCore::JSNode::checkSubClassPatchpoint() already defined in WebKit.lib
     4        https://bugs.webkit.org/show_bug.cgi?id=172267
     5
     6        Reviewed by Per Arne Vollan.
     7
     8        TestWebCoreLib and TestWebKitLib have linked both WebCore and WebKit.
     9        TestWebCoreLib should link only with WebCore. And, TestWebKitLib
     10        should link only with WebKit.
     11
     12        Unfortunately, there is a layer violation at the moment.
     13        WebCore::Image::loadPlatformResource needs loadResourceIntoBuffer
     14        in WebKit. This change contains a stub of loadResourceIntoBuffer
     15        in TestWebCoreLib for the workaround.
     16
     17        * TestWebKitAPI/PlatformWin.cmake: Do not link WebKit to
     18        TestWebCoreLib. Do not link WebCore to TestWebKitLib.
     19        * TestWebKitAPI/win/TestWebCoreStubs.cpp: Added.
     20        (loadResourceIntoBuffer): Added a stub.
     21
    1222017-05-19  Simon Fraser  <simon.fraser@apple.com>
    223
  • trunk/Tools/TestWebKitAPI/PlatformWin.cmake

    r215606 r217184  
    3737    WebCore${DEBUG_SUFFIX}
    3838    WebCoreDerivedSources${DEBUG_SUFFIX}
    39     WebKit${DEBUG_SUFFIX}
    4039    WindowsCodecs
    4140    gtest
     
    4443set(TestWebCoreLib_SOURCES
    4544    ${test_main_SOURCES}
     45    win/TestWebCoreStubs.cpp
    4646    ${TESTWEBKITAPI_DIR}/TestsController.cpp
    4747    ${TESTWEBKITAPI_DIR}/Tests/WebCore/AffineTransform.cpp
     
    141141endif ()
    142142
     143set(test_webkit_LIBRARIES
     144    WebCoreTestSupport
     145    WebKit${DEBUG_SUFFIX}
     146    gtest
     147)
    143148add_library(TestWebKitLib SHARED
    144149    ${test_main_SOURCES}
     
    149154)
    150155
    151 target_link_libraries(TestWebKitLib ${test_webcore_LIBRARIES})
     156target_link_libraries(TestWebKitLib ${test_webkit_LIBRARIES})
    152157
    153158add_executable(TestWebKit
Note: See TracChangeset for help on using the changeset viewer.