Changeset 158302 in webkit


Ignore:
Timestamp:
Oct 30, 2013, 12:10:47 PM (12 years ago)
Author:
Patrick Gansterer
Message:

[WIN] Add executable entry points to DRT and WinLauncher
https://bugs.webkit.org/show_bug.cgi?id=121837

Reviewed by Brent Fulgham.

This allows to compile and run the executables without DLLLauncher.

  • DumpRenderTree/win/DumpRenderTree.cpp:

(main):
(dllLauncherEntryPoint):

  • WinLauncher/WinLauncher.cpp:

(wWinMain):
(dllLauncherEntryPoint):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r158301 r158302  
     12013-10-30  Patrick Gansterer  <paroga@webkit.org>
     2
     3        [WIN] Add executable entry points to DRT and WinLauncher
     4        https://bugs.webkit.org/show_bug.cgi?id=121837
     5
     6        Reviewed by Brent Fulgham.
     7
     8        This allows to compile and run the executables without DLLLauncher.
     9
     10        * DumpRenderTree/win/DumpRenderTree.cpp:
     11        (main):
     12        (dllLauncherEntryPoint):
     13        * WinLauncher/WinLauncher.cpp:
     14        (wWinMain):
     15        (dllLauncherEntryPoint):
     16
    1172013-10-30  Filip Pizlo  <fpizlo@apple.com>
    218
  • trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp

    r156418 r158302  
    13071307}
    13081308
    1309 extern "C" __declspec(dllexport) int WINAPI dllLauncherEntryPoint(int argc, const char* argv[])
     1309int main(int argc, const char* argv[])
    13101310{
    13111311    // Cygwin calls ::SetErrorMode(SEM_FAILCRITICALERRORS), which we will inherit. This is bad for
     
    14701470    return 0;
    14711471}
     1472
     1473extern "C" __declspec(dllexport) int WINAPI dllLauncherEntryPoint(int argc, const char* argv[])
     1474{
     1475    return main(argc, argv);
     1476}
  • trunk/Tools/WinLauncher/WinLauncher.cpp

    r157154 r158302  
    451451}
    452452
    453 extern "C" __declspec(dllexport) int WINAPI dllLauncherEntryPoint(HINSTANCE, HINSTANCE, LPTSTR, int nCmdShow)
     453int WINAPI wWinMain(HINSTANCE, HINSTANCE, PWSTR, int nCmdShow)
    454454{
    455455#ifdef _CRTDBG_MAP_ALLOC
     
    10061006    SetFocus(gViewWindow);
    10071007}
     1008
     1009extern "C" __declspec(dllexport) int WINAPI dllLauncherEntryPoint(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpstrCmdLine, int nCmdShow)
     1010{
     1011    return wWinMain(hInstance, hPrevInstance, lpstrCmdLine, nCmdShow);
     1012}
Note: See TracChangeset for help on using the changeset viewer.