From b36e22c6cdfbe79b0d91aff2746df5e962f80a33 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Mon, 28 Jul 2014 16:06:12 +0200 Subject: Removed Log4Qt from sources Depend on externally provided liblog4qt.so.1 --- .gitmodules | 3 --- daemon/daemon.cpp | 9 ++------- daemon/daemon.pro | 9 ++------- daemon/dbusconnector.h | 2 +- daemon/manager.h | 2 +- daemon/notificationmanager.h | 2 +- daemon/voicecallhandler.h | 2 +- daemon/voicecallmanager.h | 2 +- daemon/watchcommands.h | 2 +- daemon/watchconnector.h | 2 +- ext/Log4Qt | 1 - ext/ext.pro | 4 ---- pebble.pro | 3 +-- rpm/pebble.spec | 1 - rpm/pebble.yaml | 3 ++- 15 files changed, 14 insertions(+), 33 deletions(-) delete mode 100644 .gitmodules delete mode 160000 ext/Log4Qt delete mode 100644 ext/ext.pro diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 99ea068..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "ext/Log4Qt"] - path = ext/Log4Qt - url = git@github.com:smokku/Log4Qt.git diff --git a/daemon/daemon.cpp b/daemon/daemon.cpp index e075c0c..520e8f2 100644 --- a/daemon/daemon.cpp +++ b/daemon/daemon.cpp @@ -34,13 +34,8 @@ #include #include #include - -#include "LogManager" -#include "SystemlogAppender" -#include "FileAppender" -#include "helpers/factory.h" -#include "Appender" -#include "PropertyConfigurator" +#include +#include void signalhandler(int sig) { diff --git a/daemon/daemon.pro b/daemon/daemon.pro index df7b887..bc0c2e7 100644 --- a/daemon/daemon.pro +++ b/daemon/daemon.pro @@ -8,9 +8,7 @@ QT += bluetooth dbus contacts PKGCONFIG += mlite5 QMAKE_CXXFLAGS += -std=c++0x -LIBS += -L$$OUT_PWD/../ext/Log4Qt/ -llog4qt -QMAKE_RPATHDIR += /usr/share/pebble/lib -INCLUDEPATH += ../ext/Log4Qt/src ../ext/Log4Qt/deploy/include +LIBS += -llog4qt DEFINES += APP_VERSION=\\\"$$VERSION\\\" @@ -41,7 +39,7 @@ OTHER_FILES += \ ../log4qt-debug.conf \ ../log4qt-release.conf -INSTALLS += target pebbled confile lib +INSTALLS += target pebbled confile target.path = /usr/bin @@ -60,8 +58,5 @@ else { confile.files = $$OUT_PWD/../log4qt.conf confile.path = /usr/share/pebble -lib.files += $$OUT_PWD/../ext/Log4Qt/*.s* -lib.path = /usr/share/pebble/lib - # unnecesary includes, just so QtCreator could find headers... :-( INCLUDEPATH += $$[QT_HOST_PREFIX]/include/mlite5 diff --git a/daemon/dbusconnector.h b/daemon/dbusconnector.h index 4498867..7141cab 100644 --- a/daemon/dbusconnector.h +++ b/daemon/dbusconnector.h @@ -4,7 +4,7 @@ #include #include #include -#include "Logger" +#include class DBusConnector : public QObject { diff --git a/daemon/manager.h b/daemon/manager.h index 4a55256..a062388 100644 --- a/daemon/manager.h +++ b/daemon/manager.h @@ -14,7 +14,7 @@ #include #include #include -#include "Logger" +#include using namespace QtContacts; diff --git a/daemon/notificationmanager.h b/daemon/notificationmanager.h index 4695db9..10c4d2e 100644 --- a/daemon/notificationmanager.h +++ b/daemon/notificationmanager.h @@ -2,7 +2,7 @@ #define NOTIFICATIONMANAGER_H #include -#include "Logger" +#include #include "settings.h" #include diff --git a/daemon/voicecallhandler.h b/daemon/voicecallhandler.h index bd0d71d..4ad0157 100644 --- a/daemon/voicecallhandler.h +++ b/daemon/voicecallhandler.h @@ -4,7 +4,7 @@ #include #include #include -#include "Logger" +#include class VoiceCallHandler : public QObject { diff --git a/daemon/voicecallmanager.h b/daemon/voicecallmanager.h index afb9a11..c078e68 100644 --- a/daemon/voicecallmanager.h +++ b/daemon/voicecallmanager.h @@ -6,7 +6,7 @@ #include #include #include -#include "Logger" +#include class VoiceCallProviderData { diff --git a/daemon/watchcommands.h b/daemon/watchcommands.h index 4bd8f3d..8626b7c 100644 --- a/daemon/watchcommands.h +++ b/daemon/watchcommands.h @@ -2,7 +2,7 @@ #define WATCHCOMMANDS_H #include "watchconnector.h" -#include "Logger" +#include #include diff --git a/daemon/watchconnector.h b/daemon/watchconnector.h index deb4894..63391d8 100644 --- a/daemon/watchconnector.h +++ b/daemon/watchconnector.h @@ -37,7 +37,7 @@ #include #include #include -#include "Logger" +#include using namespace QtBluetooth; diff --git a/ext/Log4Qt b/ext/Log4Qt deleted file mode 160000 index be6d5df..0000000 --- a/ext/Log4Qt +++ /dev/null @@ -1 +0,0 @@ -Subproject commit be6d5df0c29dad3f5a5c43cd91c780627b3c64f9 diff --git a/ext/ext.pro b/ext/ext.pro deleted file mode 100644 index b1879b1..0000000 --- a/ext/ext.pro +++ /dev/null @@ -1,4 +0,0 @@ -# Such a project structure allowed for integrating Log4Qt via git subtree -# Log4Qt folder is pulled right from the remote repository -TEMPLATE = subdirs -SUBDIRS = Log4Qt diff --git a/pebble.pro b/pebble.pro index 9c9fd13..572bd9a 100644 --- a/pebble.pro +++ b/pebble.pro @@ -1,6 +1,5 @@ TEMPLATE = subdirs -CONFIG += ordered -SUBDIRS = ext daemon app +SUBDIRS = daemon app OTHER_FILES += \ README.md \ rpm/pebble.spec \ diff --git a/rpm/pebble.spec b/rpm/pebble.spec index 71d5d46..d9ea363 100644 --- a/rpm/pebble.spec +++ b/rpm/pebble.spec @@ -83,6 +83,5 @@ systemctl --user daemon-reload %{_libdir}/systemd/user/%{name}d.service %{_libdir}/systemd/user/user-session.target.wants/%{name}d.service %{_datadir}/%{name}/log4qt.conf -%{_datadir}/%{name}/lib # >> files # << files diff --git a/rpm/pebble.yaml b/rpm/pebble.yaml index 4934f05..c52804a 100644 --- a/rpm/pebble.yaml +++ b/rpm/pebble.yaml @@ -22,6 +22,8 @@ PkgConfigBR: - Qt5Core - mlite5 - sailfishapp >= 0.0.10 +PkgBR: +- log4qt-devel Requires: - sailfishsilica-qt5 >= 0.10.9 - systemd-user-session-targets @@ -33,5 +35,4 @@ Files: - '%{_libdir}/systemd/user/%{name}d.service' - '%{_libdir}/systemd/user/user-session.target.wants/%{name}d.service' - '%{_datadir}/%{name}/log4qt.conf' -- '%{_datadir}/%{name}/lib' PkgBR: [] -- cgit v1.2.3