I am using win32 , macx and unix:!macx aka. Linux if statements in my .pro file to specify specific os tasks, for example.
win32 { TARGET = myapp RC_FILE = myapp.rc } macx { TARGET = MyApp ICON = myapp.icns QMAKE_INFO_PLIST = Info.plist } unix:!macx {
This works fine for if X else , if X elseif X else and if not X , where X is the os specifier.
Is there a way to tell qmake, should it compile a block for os1 or os2 ?
source share