Change test's entry point only when actually building it for winrt

Change-Id: I14de901e8cf16d0172a4bd35611c17de753348be
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
bb10
Maurice Kalinowski 2016-07-05 14:45:24 +02:00 committed by Oswald Buddenhagen
parent 57413ad3f6
commit bbca3cb78d
1 changed files with 5 additions and 5 deletions

View File

@ -407,12 +407,12 @@ defineTest(qtConfTest_compile) {
qmake_args += "\"CONFIG += $$qmake_configs\""
# On WinRT we need to change the entry point as we cannot create windows
# applications
winrt: \
qmake_args += " \"QMAKE_LFLAGS += /ENTRY:main\""
!$$host {
# On WinRT we need to change the entry point as we cannot create windows
# applications
winrt: \
qmake_args += " \"QMAKE_LFLAGS += /ENTRY:main\""
# add compiler flags, these are set for the target and should not be applied to host tests
!isEmpty(EXTRA_DEFINES): \
qmake_args += "\"DEFINES += $$EXTRA_DEFINES\""