contains(QT_CONFIG,xlib) { contains(QT_CONFIG,opengl):!contains(QT_CONFIG,opengles2) { HEADERS += $$PWD/qglxconvenience_p.h SOURCES += $$PWD/qglxconvenience.cpp } }