diff options
author | Jacob Kroon <jacob.kroon@gmail.com> | 2014-01-18 12:09:20 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-02-19 11:56:33 +0100 |
commit | dc0073bb4586077ec1cc5204cca9029c656997b4 (patch) | |
tree | 8ff303892f037490d54b7559a60e38a3ed152b5a | |
parent | 52e39c35ee227a9eb1b1a182f9a873c4e7e55825 (diff) | |
download | meta-qt5-dc0073bb4586077ec1cc5204cca9029c656997b4.tar.gz |
libQt5*.la references OE build directories
I'm trying to get the .la-files for Qt5 dev-packages correct.
What I've come up with so far is attached in the patch (to be applied in
top of "jansa-qt5-5.2.0", b8a236df79c25802c1f2eb2525e8a534e73e608e)
With the patch applied I can still build both an image and an SDK, and
also the resulting SDK can be used to build my QT5 autotools projects. But
I get these warnings when building for instance "qtxmlpatterns":
WARNING: QA Issue: qtxmlpatterns: The compile log indicates that host
include and/or library paths were used.
Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch | 56 |
1 files changed, 19 insertions, 37 deletions
diff --git a/recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch b/recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch index 833c9b59..b8768c89 100644 --- a/recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch +++ b/recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 1f9449f851f7ec288948ec8e83f2fe4b0b37e789 Mon Sep 17 00:00:00 2001 | 1 | From 7999eeb3f2ab1150aa301ec26ae9bf0788d09c9e Mon Sep 17 00:00:00 2001 |
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
3 | Date: Sat, 27 Apr 2013 23:15:37 +0200 | 3 | Date: Sat, 27 Apr 2013 23:15:37 +0200 |
4 | Subject: [PATCH 05/14] qt_module: Fix pkgconfig replacement | 4 | Subject: [PATCH 05/14] qt_module: Fix pkgconfig replacement |
@@ -43,60 +43,42 @@ Content-Transfer-Encoding: 8bit | |||
43 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | 43 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
44 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | 44 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> |
45 | --- | 45 | --- |
46 | mkspecs/features/qt_module.prf | 43 ++++++++++++++++++++++++++++++------------ | 46 | mkspecs/features/qt_module.prf | 20 +++++++++++++------- |
47 | 1 file changed, 31 insertions(+), 12 deletions(-) | 47 | 1 file changed, 13 insertions(+), 7 deletions(-) |
48 | 48 | ||
49 | diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf | 49 | diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf |
50 | index 11509ee..2f95684 100644 | 50 | index 11509ee..be9b929 100644 |
51 | --- a/mkspecs/features/qt_module.prf | 51 | --- a/mkspecs/features/qt_module.prf |
52 | +++ b/mkspecs/features/qt_module.prf | 52 | +++ b/mkspecs/features/qt_module.prf |
53 | @@ -135,30 +135,49 @@ load(qt_installs) | 53 | @@ -135,30 +135,36 @@ load(qt_installs) |
54 | rplbase = $$dirname(_QMAKE_SUPER_CACHE_)/[^/][^/]* | 54 | rplbase = $$dirname(_QMAKE_SUPER_CACHE_)/[^/][^/]* |
55 | else: \ | 55 | else: \ |
56 | rplbase = $$MODULE_BASE_OUTDIR | 56 | rplbase = $$MODULE_BASE_OUTDIR |
57 | -include_replace.match = $$rplbase/include | 57 | -include_replace.match = $$rplbase/include |
58 | -include_replace.replace = $$[QT_INSTALL_HEADERS/raw] | 58 | -include_replace.replace = $$[QT_INSTALL_HEADERS/raw] |
59 | -include_replace.CONFIG = path | 59 | -include_replace.CONFIG = path |
60 | -lib_replace.match = $$rplbase/lib | ||
61 | -host_build: \ | ||
62 | - lib_replace.replace = $$[QT_HOST_LIBS] | ||
63 | -else: \ | ||
64 | +pkgconfig_include_replace.match = $$rplbase/include | 60 | +pkgconfig_include_replace.match = $$rplbase/include |
65 | +pkgconfig_include_replace.replace = "\$$\\{includedir}" | 61 | +pkgconfig_include_replace.replace = "\$$\\{includedir}" |
62 | +pkgconfig_include_replace.CONFIG = path | ||
66 | +pkgconfig_lib_replace.match = $$rplbase/lib | 63 | +pkgconfig_lib_replace.match = $$rplbase/lib |
67 | +pkgconfig_lib_replace.replace = "\$$\\{libdir}" | 64 | +pkgconfig_lib_replace.replace = "\$$\\{libdir}" |
68 | +!exists($$[QT_SYSROOT]) { | 65 | +pkgconfig_lib_replace.CONFIG = path |
69 | + include_replace.match = $$rplbase/include | 66 | lib_replace.match = $$rplbase/lib |
70 | + include_replace.replace = $$[QT_INSTALL_HEADERS/raw] | 67 | host_build: \ |
71 | + include_replace.CONFIG = path | 68 | lib_replace.replace = $$[QT_HOST_LIBS] |
72 | + lib_replace.match = $$rplbase/lib | 69 | else: \ |
73 | lib_replace.replace = $$[QT_INSTALL_LIBS/raw] | 70 | lib_replace.replace = $$[QT_INSTALL_LIBS/raw] |
74 | -lib_replace.CONFIG = path | 71 | lib_replace.CONFIG = path |
75 | + lib_replace.CONFIG = path | 72 | -QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace |
76 | + lafile_replace.match = $$rplbase | 73 | +lafile_replace.match = "-L$$[QT_INSTALL_LIBS/raw]" |
77 | + lafile_replace.replace = "$$[QT_INSTALL_PREFIX/raw]" | 74 | +lafile_replace.replace = "" |
78 | +} else { | 75 | +lafile_replace.CONFIG = path |
79 | + # include_replace and lib_replace are duplicate, but we don't want to | 76 | +QMAKE_PRL_INSTALL_REPLACE += lib_replace lafile_replace |
80 | + # make QMAKE_PKGCONFIG_INSTALL_REPLACE, QMAKE_PRL_INSTALL_REPLACE conditional | ||
81 | + include_replace.match = $$rplbase | ||
82 | + include_replace.replace = $$[QT_SYSROOT]$$[QT_INSTALL_PREFIX/raw] | ||
83 | + include_replace.CONFIG = path | ||
84 | + lib_replace.match = $$rplbase | ||
85 | + lib_replace.replace = $$[QT_SYSROOT]$$[QT_INSTALL_PREFIX/raw] | ||
86 | + lib_replace.CONFIG = path | ||
87 | + lafile_replace.match = $$rplbase | ||
88 | + lafile_replace.replace = "=$$[QT_INSTALL_PREFIX/raw]" | ||
89 | +} | ||
90 | QMAKE_PRL_INSTALL_REPLACE += include_replace lib_replace | ||
91 | 77 | ||
92 | unix|win32-g++* { | 78 | unix|win32-g++* { |
93 | CONFIG += create_pc | 79 | CONFIG += create_pc |
94 | - QMAKE_PKGCONFIG_LIBDIR = $$lib_replace.replace | 80 | QMAKE_PKGCONFIG_LIBDIR = $$lib_replace.replace |
95 | - QMAKE_PKGCONFIG_INCDIR = $$include_replace.replace | 81 | - QMAKE_PKGCONFIG_INCDIR = $$include_replace.replace |
96 | + host_build: \ | ||
97 | + QMAKE_PKGCONFIG_LIBDIR = $$[QT_HOST_LIBS] | ||
98 | + else: \ | ||
99 | + QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS/raw] | ||
100 | + QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS/raw] | 82 | + QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS/raw] |
101 | QMAKE_PKGCONFIG_CFLAGS = -I${includedir}/$$MODULE_INCNAME | 83 | QMAKE_PKGCONFIG_CFLAGS = -I${includedir}/$$MODULE_INCNAME |
102 | QMAKE_PKGCONFIG_DESTDIR = pkgconfig | 84 | QMAKE_PKGCONFIG_DESTDIR = pkgconfig |
@@ -108,7 +90,7 @@ index 11509ee..2f95684 100644 | |||
108 | CONFIG += create_libtool explicitlib | 90 | CONFIG += create_libtool explicitlib |
109 | QMAKE_LIBTOOL_LIBDIR = $$lib_replace.replace | 91 | QMAKE_LIBTOOL_LIBDIR = $$lib_replace.replace |
110 | - QMAKE_LIBTOOL_INSTALL_REPLACE += include_replace lib_replace | 92 | - QMAKE_LIBTOOL_INSTALL_REPLACE += include_replace lib_replace |
111 | + QMAKE_LIBTOOL_INSTALL_REPLACE += include_replace lib_replace lafile_replace | 93 | + QMAKE_LIBTOOL_INSTALL_REPLACE += lib_replace lafile_replace |
112 | } | 94 | } |
113 | 95 | ||
114 | unix|win32-g++* { | 96 | unix|win32-g++* { |