Reputation: 105
My Qt creator is 32 bit. I know how to use win32 in my Qt project file but i am not sure whether I can use !(not) with win32 or not.
I want something like below, but not sure whether it's correct way to use.
!win32 {
CONFIG += qtquickcompiler
}
PS: It compiles without issues.
Upvotes: 1
Views: 92
Reputation: 5482
Yes, the conditions used in a given scope can be negated to provide an alternative set of declarations that will be processed only if the original condition is false. For example, suppose we want to process something on all platforms except for Windows. We can achieve this by negating the scope like this:
!win32 {
SOURCES -= paintwidget_win.cpp
}
Upvotes: 2