diff --git a/qmake/common.pri b/qmake/common.pri index 4e26c76b7..ac08e59f9 100644 --- a/qmake/common.pri +++ b/qmake/common.pri @@ -63,3 +63,10 @@ CONFIG(zeal_portable) { unix:!macx { isEmpty(PREFIX): PREFIX = /usr } + +unix:!macx:packagesExist(appindicator-0.1) { + CONFIG += link_pkgconfig + PKGCONFIG += appindicator-0.1 gtk+-2.0 + DEFINES += USE_APPINDICATOR + message("AppIndicator support: Yes.") +} diff --git a/src/libs/ui/ui.pri b/src/libs/ui/ui.pri index e3933b077..ca5169df9 100644 --- a/src/libs/ui/ui.pri +++ b/src/libs/ui/ui.pri @@ -2,13 +2,6 @@ ZEAL_LIB_NAME = Ui QT += widgets -unix:!macx:packagesExist(appindicator-0.1) { - CONFIG += link_pkgconfig - PKGCONFIG += appindicator-0.1 gtk+-2.0 - DEFINES += USE_APPINDICATOR - message("AppIndicator support: Yes.") -} - # QxtGlobalShortcut dependencies unix:!macx { QT += x11extras