From e6a264c19cfbb44069d8d0827c9d65ea97e5b1cd Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 20 Jul 2010 16:52:29 +0000 Subject: [PATCH] Now includes the gtk headers for libnotify --- configure | 13 ++++++++++++- qcm/libnotify.qcm | 13 ++++++++++++- src/src.pro | 2 +- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 0948228b7..8f8a4010a 100755 --- a/configure +++ b/configure @@ -529,10 +529,21 @@ public: } else { return false; } + QStringList incs3; + QString req_ver3 = "2.0"; + QString version3, libs3, other3; + if(conf->findPkgConfig("gtk+-2.0", mode, req_ver3, &version3, &incs3, &libs3, &other3)) { + for(int n = 0; n < incs3.count(); ++n) + conf->addIncludePath(incs3[n]); + if(!libs3.isEmpty()) + conf->addLib(libs3); + } else { + return false; + } } else { return false; } - + return true; } }; diff --git a/qcm/libnotify.qcm b/qcm/libnotify.qcm index 84801326b..6bdba595d 100644 --- a/qcm/libnotify.qcm +++ b/qcm/libnotify.qcm @@ -40,10 +40,21 @@ public: } else { return false; } + QStringList incs3; + QString req_ver3 = "2.0"; + QString version3, libs3, other3; + if(conf->findPkgConfig("gtk+-2.0", mode, req_ver3, &version3, &incs3, &libs3, &other3)) { + for(int n = 0; n < incs3.count(); ++n) + conf->addIncludePath(incs3[n]); + if(!libs3.isEmpty()) + conf->addLib(libs3); + } else { + return false; + } } else { return false; } - + return true; } }; diff --git a/src/src.pro b/src/src.pro index 0c463f20e..4147bc3c7 100644 --- a/src/src.pro +++ b/src/src.pro @@ -3,7 +3,7 @@ LANG_PATH = lang ICONS_PATH = Icons # Set the following variable to 1 to enable debug -DEBUG_MODE = 0 +DEBUG_MODE = 1 # Global TEMPLATE = app