From 6badf631cfbdc6968fe6f10aff36a4b5e822e969 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 15 Jul 2019 19:10:01 +0200 Subject: [PATCH] Allow building the plugininfocompiler alone --- libnymea/libnymea.pro | 1 + nymea.pro | 33 +++++++++++++++++++-------------- 2 files changed, 20 insertions(+), 14 deletions(-) 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 -}