Allow building the plugininfocompiler alone

This commit is contained in:
Michael Zanetti 2019-07-15 19:10:01 +02:00
parent 09fb3ef4c5
commit 6badf631cf
2 changed files with 20 additions and 14 deletions

View File

@ -4,6 +4,7 @@ TARGET = nymea
TEMPLATE = lib
QT += network bluetooth
QT -= gui
DEFINES += LIBNYMEA_LIBRARY
QMAKE_LFLAGS += -fPIC

View File

@ -2,13 +2,26 @@ include(nymea.pri)
TEMPLATE=subdirs
SUBDIRS += libnymea libnymea-core server plugins tools
libnymea-core.depends = libnymea
server.depends = libnymea libnymea-core plugins
SUBDIRS += libnymea tools
tools.depends = libnymea
plugins.depends = libnymea tools
tests.depends = libnymea libnymea-core
minimal {
message("Minimal build. Only libraries required to build nymea-plugins will be built.")
} else {
SUBDIRS += server libnymea-core plugins
libnymea-core.depends = libnymea
plugins.depends = libnymea tools
server.depends = libnymea libnymea-core plugins
# Build tests
disabletesting {
message("Building nymea without tests")
} else {
message("Building nymea with tests")
SUBDIRS += tests
tests.depends = libnymea libnymea-core
}
}
doc.depends = FORCE
# Note: some how extraimages in qdocconf did not the trick
@ -80,11 +93,3 @@ coverage {
ccache {
message("Using ccache.")
}
# Build tests
disabletesting {
message("Building nymea without tests")
} else {
message("Building nymea with tests")
SUBDIRS += tests
}