Add monitor package

This commit is contained in:
Simon Stürz 2018-08-21 22:16:45 +02:00
parent faff3e9074
commit 6399c95d4e
5 changed files with 35 additions and 7 deletions

View File

@ -1,3 +1,24 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright (C) 2018 Simon Stürz <simon.stuerz@guh.io> *
* *
* This file is part of nymea-remoteproxy. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "monitor.h"
Monitor::Monitor(const QString &serverName, QObject *parent) : QObject(parent)

View File

@ -3,6 +3,11 @@ include(../nymea-remoteproxy.pri)
TARGET = nymea-remoteproxy-monitor
TEMPLATE = app
HEADERS += \
monitorclient.h \
terminalwindow.h \
monitor.h
SOURCES += main.cpp \
monitorclient.cpp \
terminalwindow.cpp \
@ -12,8 +17,3 @@ LIBS += -lncurses
target.path = /usr/bin
INSTALLS += target
HEADERS += \
monitorclient.h \
terminalwindow.h \
monitor.h

View File

@ -5,7 +5,7 @@ QT -= gui
SERVER_NAME=nymea-remoteproxy
API_VERSION_MAJOR=0
API_VERSION_MINOR=1
SERVER_VERSION=0.1.1
SERVER_VERSION=0.1.2
DEFINES += SERVER_NAME_STRING=\\\"$${SERVER_NAME}\\\" \
SERVER_VERSION_STRING=\\\"$${SERVER_VERSION}\\\" \

View File

@ -1,7 +1,11 @@
include(nymea-remoteproxy.pri)
TEMPLATE=subdirs
SUBDIRS += server client monitor libnymea-remoteproxy libnymea-remoteproxyclient tests
SUBDIRS += server client libnymea-remoteproxy libnymea-remoteproxyclient tests
!disablemonitor {
SUBDIRS+=monitor
}
server.depends = libnymea-remoteproxy
client.depends = libnymea-remoteproxyclient
@ -15,3 +19,6 @@ message("Qt version:" $$[QT_VERSION])
coverage { message("Building with coverage report") }
ccache { message("Building with ccache support") }
disablemonitor {
message("Building without the monitor")
}