Change test's entry point only when actually building it for winrt
Change-Id: I14de901e8cf16d0172a4bd35611c17de753348be Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>bb10
parent
57413ad3f6
commit
bbca3cb78d
|
|
@ -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\""
|
||||
|
|
|
|||
Loading…
Reference in New Issue