190c76f685
That API has been available for WinRT and Windows Phone for some time now. By using it to get the machine name and for hostname resolution we can get rid of some winrt-only code and use qhostinfo_win.cpp on WinRT and Windows phone as well. Additionally the required capability was added to tst_qhostinfo so that this auto test can be run without any manual editing. Change-Id: I63fa5521bf8cdb0c919bd5a0100ea977c865622a Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
19 lines
366 B
Prolog
19 lines
366 B
Prolog
CONFIG += testcase
|
|
TARGET = tst_qhostinfo
|
|
|
|
SOURCES += tst_qhostinfo.cpp
|
|
|
|
requires(contains(QT_CONFIG,private_tests))
|
|
QT = core-private network-private testlib
|
|
|
|
wince {
|
|
LIBS += ws2.lib
|
|
} else {
|
|
win32:LIBS += -lws2_32
|
|
}
|
|
|
|
# needed for getaddrinfo with official MinGW
|
|
mingw:DEFINES += _WIN32_WINNT=0x0501
|
|
|
|
winrt: WINRT_MANIFEST.capabilities += internetClientServer
|