diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2016-11-24 17:53:02 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2016-11-29 12:46:49 +0000 |
commit | a293579f7cfeb5ced5d247e79159becc0f546ec0 (patch) | |
tree | d108be2c907e7cf8070ccd6a41b309bfc5e8e4ef /tests/auto/dlt | |
parent | 6cd72e69344538a3c91842128b8b062aef9775d8 (diff) | |
download | qtivi-a293579f7cfeb5ced5d247e79159becc0f546ec0.tar.gz |
Fixed problems when resolving the libdlt dependency
The automotive-dlt pkg-config files points to the include folder of dlt
so we don't need the dlt prefix when including the headers. As dlt
is installed into /usr, this wasn't a problem as it still worked. But
if dlt is build manually it installs itself to /usr/local and the
paths are not correct in this case.
When picking up libdlt we also need to make sure that the path we resolved
using pkg-config is added as a rpath and this is part of the prl file
created for QtGeniviExtras, as the custom rpath is also needed for the
application/lib using QtGeniviExtras, as it would have a unresolved
runtime dependency otherwise
Change-Id: I3f2a78482573e6802371e29392de5a4a49b5c379
Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com>
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'tests/auto/dlt')
-rw-r--r-- | tests/auto/dlt/dlt.pro | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/dlt/dlt.pro b/tests/auto/dlt/dlt.pro index bbc2de0..feb04bc 100644 --- a/tests/auto/dlt/dlt.pro +++ b/tests/auto/dlt/dlt.pro @@ -3,8 +3,10 @@ QT += testlib geniviextras TARGET = tst_dlt CONFIG += testcase link_pkgconfig +DLT_LIB_PATH = $$system($$pkgConfigExecutable() --variable=libdir automotive-dlt) !contains(QT_CONFIG, no-pkg-config) { PKGCONFIG += automotive-dlt + QMAKE_RPATH += $$DLT_LIB_PATH } else { LIBS += -ldlt } |