QT_NO_PROCESS for WinRT

As Windows Runtime does not really support the use
of spawning processes QT_NO_PROCESS is defined for
winrt builds and the corresponding sources are
excluded from build.

Change-Id: I79263417c985b23678c55ac44a5591a9a69d3c13
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
Oliver Wolff 2013-09-17 09:43:58 +02:00 committed by The Qt Project
parent 4260ed49c6
commit 5ffedd0495
2 changed files with 19 additions and 12 deletions

View File

@ -540,6 +540,10 @@ class QDataStream;
# define QT_NO_SYSTEMSEMAPHORE // not needed at all in a flat address space
#endif
#if defined(Q_OS_WINRT)
# define QT_NO_PROCESS
#endif
inline void qt_noop(void) {}
/* These wrap try/catch so we can switch off exceptions later.

View File

@ -95,22 +95,25 @@ win32 {
SOURCES += io/qfilesystemwatcher_win.cpp
HEADERS += io/qfilesystemwatcher_win_p.h
HEADERS += io/qwindowspipewriter_p.h
SOURCES += io/qwindowspipewriter.cpp
SOURCES += io/qfilesystemengine_win.cpp
SOURCES += io/qfilesystemiterator_win.cpp
SOURCES += io/qstandardpaths_win.cpp
wince* {
SOURCES += io/qprocess_wince.cpp
} else {
HEADERS += \
io/qwinoverlappedionotifier_p.h \
io/qwindowspipereader_p.h
SOURCES += \
io/qprocess_win.cpp \
io/qwinoverlappedionotifier.cpp \
io/qwindowspipereader.cpp
!winrt {
HEADERS += io/qwindowspipewriter_p.h
SOURCES += io/qwindowspipewriter.cpp
wince* {
SOURCES += io/qprocess_wince.cpp
} else {
HEADERS += \
io/qwinoverlappedionotifier_p.h \
io/qwindowspipereader_p.h
SOURCES += \
io/qprocess_win.cpp \
io/qwinoverlappedionotifier.cpp \
io/qwindowspipereader.cpp
}
}
} else:unix|integrity {
SOURCES += \