Allow building the plugininfocompiler alone
This commit is contained in:
parent
09fb3ef4c5
commit
6badf631cf
@ -4,6 +4,7 @@ TARGET = nymea
|
|||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
QT += network bluetooth
|
QT += network bluetooth
|
||||||
|
QT -= gui
|
||||||
DEFINES += LIBNYMEA_LIBRARY
|
DEFINES += LIBNYMEA_LIBRARY
|
||||||
|
|
||||||
QMAKE_LFLAGS += -fPIC
|
QMAKE_LFLAGS += -fPIC
|
||||||
|
|||||||
33
nymea.pro
33
nymea.pro
@ -2,13 +2,26 @@ include(nymea.pri)
|
|||||||
|
|
||||||
TEMPLATE=subdirs
|
TEMPLATE=subdirs
|
||||||
|
|
||||||
SUBDIRS += libnymea libnymea-core server plugins tools
|
SUBDIRS += libnymea tools
|
||||||
|
|
||||||
libnymea-core.depends = libnymea
|
|
||||||
server.depends = libnymea libnymea-core plugins
|
|
||||||
tools.depends = libnymea
|
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
|
doc.depends = FORCE
|
||||||
# Note: some how extraimages in qdocconf did not the trick
|
# Note: some how extraimages in qdocconf did not the trick
|
||||||
@ -80,11 +93,3 @@ coverage {
|
|||||||
ccache {
|
ccache {
|
||||||
message("Using ccache.")
|
message("Using ccache.")
|
||||||
}
|
}
|
||||||
|
|
||||||
# Build tests
|
|
||||||
disabletesting {
|
|
||||||
message("Building nymea without tests")
|
|
||||||
} else {
|
|
||||||
message("Building nymea with tests")
|
|
||||||
SUBDIRS += tests
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user