summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/sms/serviceloader.cpp
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-08-18 14:43:00 +0300
committerAlexander Golubev <fatzer2@gmail.com>2025-08-21 13:03:19 +0300
commitd865714df6b485a2551aa85a3c9ba4771b85d213 (patch)
tree3b714cae0c0f666e6e62250359a263b65321434c /kopete/protocols/sms/serviceloader.cpp
parent9e16e0eb0365f8bc19afdee2cfab42530e080843 (diff)
downloadtdenetwork-d865714d.tar.gz
tdenetwork-d865714d.zip
kopete/sms: overhaul build/configure process with gsmlib
* Build cpp files conditionally rather than #ifdef their content * Rename {INCLUDE_SMSGSM -> HAVE_GSMLIB} for consistency * Merge gsmlib's configuration check to the ConfigureChecks.cmake in the root directory. (cherry picked from commit 4dca9b8265b84c09d7156ccf1d70f3f5c401c896)
Diffstat (limited to 'kopete/protocols/sms/serviceloader.cpp')
-rw-r--r--kopete/protocols/sms/serviceloader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kopete/protocols/sms/serviceloader.cpp b/kopete/protocols/sms/serviceloader.cpp
index d242e300..0e2c60a8 100644
--- a/kopete/protocols/sms/serviceloader.cpp
+++ b/kopete/protocols/sms/serviceloader.cpp
@@ -23,7 +23,7 @@
#include "serviceloader.h"
#include "smssend.h"
#include "smsclient.h"
-#ifdef INCLUDE_SMSGSM
+#ifdef HAVE_GSMLIB
# include "gsmlib.h"
#endif
#include "kopeteuiglobal.h"
@@ -37,7 +37,7 @@ SMSService* ServiceLoader::loadService(const TQString& name, Kopete::Account* ac
s = new SMSSend(account);
else if (name == "SMSClient")
s = new SMSClient(account);
-#ifdef INCLUDE_SMSGSM
+#ifdef HAVE_GSMLIB
else if (name == "GSMLib")
s = new GSMLib(account);
#endif
@@ -56,7 +56,7 @@ TQStringList ServiceLoader::services()
TQStringList toReturn;
toReturn.append("SMSSend");
toReturn.append("SMSClient");
-#ifdef INCLUDE_SMSGSM
+#ifdef HAVE_GSMLIB
toReturn.append("GSMLib");
#endif
return toReturn;