From dbe5fab122e1bd8c14ea18efb1155c98ef0caabf Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Tue, 1 Sep 2020 16:58:39 +0200 Subject: [PATCH] also build on bionic --- libnymea-core/libnymea-core.pro | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libnymea-core/libnymea-core.pro b/libnymea-core/libnymea-core.pro index 500c14de..b4da93f8 100644 --- a/libnymea-core/libnymea-core.pro +++ b/libnymea-core/libnymea-core.pro @@ -10,14 +10,18 @@ LIBS += -L$$top_builddir/libnymea/ -lnymea -lssl -lcrypto CONFIG += link_pkgconfig PKGCONFIG += nymea-mqtt nymea-networkmanager +# As of Ubuntu focal, there's a commonly named python3-embed pointing to the distro version of python +# For everything below python 3.8 we need to manually select one packagesExist(python3-embed) { - # Ubuntu focal PKGCONFIG += python3-embed } else:packagesExist(python-3.5) { - # Ubuntu xenial + # xenial, stretch PKGCONFIG += python-3.5 +} else:packagesExist(python-3.6) { + # bionic + PKGCONFIG += python-3.6 } else:packagesExist(python-3.7) { - # Debian buster + # buster, eoan PKGCONFIG += python-3.7 } else { error("Python development package not found.")