diff --git a/libnymea/libnymea.pro b/libnymea/libnymea.pro index 262a8309..09587973 100644 --- a/libnymea/libnymea.pro +++ b/libnymea/libnymea.pro @@ -4,6 +4,7 @@ TARGET = nymea TEMPLATE = lib QT += network bluetooth +QT -= gui DEFINES += LIBNYMEA_LIBRARY QMAKE_LFLAGS += -fPIC diff --git a/nymea.pro b/nymea.pro index efc7dcbe..56e077f2 100644 --- a/nymea.pro +++ b/nymea.pro @@ -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 -}