Add monitor package
This commit is contained in:
parent
faff3e9074
commit
6399c95d4e
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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}\\\" \
|
||||
|
||||
@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user