From 871c0c4048bbc1040d1fb16a4d50d92b09c8af0a Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sun, 18 Apr 2021 21:28:48 +0200 Subject: [PATCH] Add pkgconfig support --- debian/libnymea-remoteproxyclient-dev.install.in | 1 + .../libnymea-remoteproxyclient.pro | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/debian/libnymea-remoteproxyclient-dev.install.in b/debian/libnymea-remoteproxyclient-dev.install.in index da4196d..cff04e1 100644 --- a/debian/libnymea-remoteproxyclient-dev.install.in +++ b/debian/libnymea-remoteproxyclient-dev.install.in @@ -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 diff --git a/libnymea-remoteproxyclient/libnymea-remoteproxyclient.pro b/libnymea-remoteproxyclient/libnymea-remoteproxyclient.pro index ea2067b..0541c0f 100644 --- a/libnymea-remoteproxyclient/libnymea-remoteproxyclient.pro +++ b/libnymea-remoteproxyclient/libnymea-remoteproxyclient.pro @@ -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