Ticket #4702: mingw.patch

File mingw.patch, 3.8 KB (added by andrei@…, 16 years ago)
  • libs/libmythui/libmythui.pro

     
    7676cygwin:DEFINES += _WIN32
    7777
    7878mingw {
     79    # For easier debugging:
     80    target.path = $${PREFIX}/bin
     81
    7982    using_opengl {
    8083        LIBS += -lopengl32
    8184        DEFINES += USE_OPENGL_PAINTER
  • libs/libmythupnp/libmythupnp.pro

     
    4343LIBS += $$EXTRA_LIBS
    4444
    4545mingw {
     46    # For easier debugging:
     47    target.path = $${PREFIX}/bin
     48
    4649    HEADERS += darwin-sendfile.h
    4750    SOURCES += darwin-sendfile.c
    4851}
  • programs/mythfrontend/main.cpp

     
    964964        }
    965965    }
    966966
     967#if defined(_WIN32) && !defined(DEBUG)
     968    // pure Win32 GUI app does not have standard IO streams
     969    // simply assign the file descriptors to the logfile
     970    *stdout = *(_fdopen(new_logfd, "w"));
     971    *stderr = *stdout;
     972    setvbuf(stdout, NULL, _IOLBF, 256);
     973#else
    967974    while (dup2(new_logfd, 1) < 0 && errno == EINTR);
    968975    while (dup2(new_logfd, 2) < 0 && errno == EINTR);
    969976    while (close(new_logfd) < 0   && errno == EINTR);
     977#endif
    970978
    971979    return 0;
    972980}
  • programs/mythfrontend/mythfrontend.pro

     
    3636SOURCES += custompriority.cpp
    3737SOURCES += mythappearance.cpp
    3838
     39mingw {
     40    !debug: CONFIG -= console
     41}
     42
    3943macx {
    4044    mac_bundle {
    4145        CONFIG -= console  # Force behaviour of producing .app bundle
  • programs/mythtv/mythtv.pro

     
    1313# Input
    1414SOURCES += main.cpp
    1515
     16mingw {
     17    !debug: CONFIG -= console
     18}
     19
    1620macx {
    1721    mac_bundle {
    1822        QMAKE_POST_LINK = ../../contrib/OSX/makebundle.sh mythtv
  • programs/mythwelcome/main.cpp

     
    172171        }
    173172    }
    174173
     174#if defined(_WIN32) && !defined(DEBUG)
     175    // pure Win32 GUI app does not have standard IO streams
     176    // simply assign the file descriptors to the logfile
     177    *stdout = *(_fdopen(new_logfd, "w"));
     178    *stderr = *stdout;
     179    setvbuf(stdout, NULL, _IOLBF, 256);
     180#else
    175181    while (dup2(new_logfd, 1) < 0 && errno == EINTR);
    176182    while (dup2(new_logfd, 2) < 0 && errno == EINTR);
    177183    while (close(new_logfd) < 0   && errno == EINTR);
     184#endif
    178185
    179186    return true;
    180187}
  • programs/mythwelcome/mythwelcome.pro

     
    1919# Input
    2020HEADERS += welcomedialog.h welcomesettings.h
    2121SOURCES += main.cpp welcomedialog.cpp welcomesettings.cpp
     22
     23mingw {
     24    !debug: CONFIG -= console
     25}
  • settings.pro

     
    99
    1010isEmpty(TARGET_OS) : win32 {
    1111    CONFIG += mingw
    12     DEFINES += USING_MINGW USING_WINAUDIO USING_D3D USING_DIRECTX
     12    DEFINES += USING_MINGW USING_WINAUDIO USING_D3D
    1313    DEFINES -= UNICODE
    1414    QMAKE_EXTENSION_SHLIB = dll
    1515    VERSION =