The Qt pro file begins as follows:
QT = core gui
QT = serialport
QT = displaysettings
This builds for my Hummingboard running Debian Linux. However displaysettings isn't available for Windows builds.I want to exclude this module from windows builds. I can exclude the function calls in the code from compiling. But adding displaysettings here causes an error.
CodePudding user response:
Use:
QT = core gui
QT = serialport
!win32 {
QT = displaysettings
}
For more information read https://doc.qt.io/qt-5/qmake-language.html#scopes-and-conditions