Add pkgconfig support

add-pkgconfig
Michael Zanetti 2021-04-18 21:28:48 +02:00
parent eaaffea30e
commit 871c0c4048
2 changed files with 12 additions and 0 deletions

View File

@ -1,2 +1,3 @@
usr/lib/@DEB_HOST_MULTIARCH@/libnymea-remoteproxyclient.so
usr/include/nymea-remoteproxyclient/* usr/include/nymea-remoteproxyclient
usr/lib/@DEB_HOST_MULTIARCH@/pkgconfig/nymea-remoteproxyclient.pc

View File

@ -10,3 +10,14 @@ installheaders.files = remoteproxyconnection.h
installheaders.path = $$[QT_INSTALL_PREFIX]/include/nymea-remoteproxyclient/
INSTALLS += target installheaders
# Create pkgconfig file
CONFIG += create_pc create_prl no_install_prl
QMAKE_PKGCONFIG_NAME = libnymea-remoteproxyclient
QMAKE_PKGCONFIG_DESCRIPTION = nymea remoteproxy client development library
QMAKE_PKGCONFIG_PREFIX = $$[QT_INSTALL_PREFIX]
QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_PREFIX]/include/nymea-remoteproxyclient/
QMAKE_PKGCONFIG_LIBDIR = $$target.path
QMAKE_PKGCONFIG_VERSION = $$NYMEA_VERSION_STRING
QMAKE_PKGCONFIG_FILE = nymea-remoteproxyclient
QMAKE_PKGCONFIG_DESTDIR = pkgconfig