diff options
Diffstat (limited to 'meta-oe/recipes-qt/libconnman-qt/libconnman-qte/plugin.pro-fix-build-with-custom-target-suffix.patch')
-rw-r--r-- | meta-oe/recipes-qt/libconnman-qt/libconnman-qte/plugin.pro-fix-build-with-custom-target-suffix.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-oe/recipes-qt/libconnman-qt/libconnman-qte/plugin.pro-fix-build-with-custom-target-suffix.patch b/meta-oe/recipes-qt/libconnman-qt/libconnman-qte/plugin.pro-fix-build-with-custom-target-suffix.patch new file mode 100644 index 0000000000..3ff68c8dc5 --- /dev/null +++ b/meta-oe/recipes-qt/libconnman-qt/libconnman-qte/plugin.pro-fix-build-with-custom-target-suffix.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | Upstream-Status: Submitted [https://github.com/nemomobile/libconnman-qt/pull/105] | ||
2 | |||
3 | From 48da520b971af69d22e691a0ef6ff1c3ce901f0d Mon Sep 17 00:00:00 2001 | ||
4 | From: Andreas Oberritter <obi@opendreambox.org> | ||
5 | Date: Tue, 11 Mar 2014 21:55:37 +0100 | ||
6 | Subject: [PATCH] plugin.pro: fix build with custom target suffix | ||
7 | |||
8 | This went unnoticed because of a previously installed libconnman-qt4. | ||
9 | |||
10 | Signed-off-by: Andreas Oberritter <obi@opendreambox.org> | ||
11 | --- | ||
12 | plugin/plugin.pro | 8 ++++++-- | ||
13 | 1 file changed, 6 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/plugin/plugin.pro b/plugin/plugin.pro | ||
16 | index c9534cf..9cdaa63 100644 | ||
17 | --- a/plugin/plugin.pro | ||
18 | +++ b/plugin/plugin.pro | ||
19 | @@ -8,14 +8,18 @@ INCLUDEPATH += ../libconnman-qt | ||
20 | LIBS += -L../libconnman-qt | ||
21 | QT -= gui | ||
22 | |||
23 | +isEmpty(TARGET_SUFFIX) { | ||
24 | + TARGET_SUFFIX = qt$$QT_MAJOR_VERSION | ||
25 | +} | ||
26 | + | ||
27 | +LIBS += -l$$qtLibraryTarget(connman-$$TARGET_SUFFIX) | ||
28 | + | ||
29 | equals(QT_MAJOR_VERSION, 4): { | ||
30 | QT += declarative | ||
31 | - LIBS += -lconnman-qt4 | ||
32 | } | ||
33 | |||
34 | equals(QT_MAJOR_VERSION, 5): { | ||
35 | QT += qml | ||
36 | - LIBS += -lconnman-qt5 | ||
37 | OTHER_FILES += plugin.json qmldirs | ||
38 | } | ||
39 | |||
40 | -- | ||
41 | 1.8.3.2 | ||
42 | |||