From 53afd2b0aa3dc9cd7d65e427cee3c1f2e2fe2edc Mon Sep 17 00:00:00 2001 From: Oleg Shparber Date: Thu, 22 Jan 2015 15:57:50 -0800 Subject: [PATCH] Automatically detect libappindicator support --- src/ui/ui.pri | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/ui/ui.pri b/src/ui/ui.pri index 66435afc..8eb314c9 100644 --- a/src/ui/ui.pri +++ b/src/ui/ui.pri @@ -12,14 +12,8 @@ unix:!macx { QMAKE_DEL_DIR = rmdir --ignore-fail-on-non-empty - # TODO: Detect libappindicator automatically - appindicator { - PKGCONFIG += gtk+-2.0 - INCLUDEPATH += /usr/include/libappindicator-0.1 \ - /usr/include/gtk-2.0 \ - /usr/lib/gtk-2.0/include - LIBS += -lappindicator - + packagesExist(appindicator) { + PKGCONFIG += appindicator DEFINES += USE_LIBAPPINDICATOR } }