How to give arguments to qmake whether to build or not build some optional packages ?
When we are using configure script for creating the make file, we can disable some packages by passing arguments like --with-PACKAGE=no or --without-PACKAGE or something else mentioned in configure help.
How can we do the same thing while creating a makefile by qmake ?
You could set environment variables before you start qmake.
see qmake documentation