added withoutpyhton config to libnymea-core

This commit is contained in:
Boernsman 2021-02-08 22:11:45 +01:00
parent 493b211eec
commit 6e57f1ee20

View File

@ -10,26 +10,31 @@ LIBS += -L$$top_builddir/libnymea/ -lnymea -lssl -lcrypto
CONFIG += link_pkgconfig
PKGCONFIG += nymea-mqtt nymea-networkmanager nymea-zigbee
# 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) {
PKGCONFIG += python3-embed
CONFIG += python
} else:packagesExist(python-3.5) {
# xenial, stretch
PKGCONFIG += python-3.5
CONFIG += python
} else:packagesExist(python-3.6) {
# bionic
PKGCONFIG += python-3.6
CONFIG += python
} else:packagesExist(python-3.7) {
# buster, eoan
PKGCONFIG += python-3.7
CONFIG += python
} else {
message("Python development package not found. Building without python support.")
CONFIG(withoutpython) {
message("Building without python support.")
CONFIG -= python
} else {
# 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) {
PKGCONFIG += python3-embed
CONFIG += python
} else:packagesExist(python-3.5) {
# xenial, stretch
PKGCONFIG += python-3.5
CONFIG += python
} else:packagesExist(python-3.6) {
# bionic
PKGCONFIG += python-3.6
CONFIG += python
} else:packagesExist(python-3.7) {
# buster, eoan
PKGCONFIG += python-3.7
CONFIG += python
} else {
message("Python development package not found. Building without python support.")
CONFIG -= python
}
}
target.path = $$[QT_INSTALL_LIBS]