diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-28 22:30:58 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-05 12:56:32 +0200 |
commit | 18d2e711d87ffd8c6c341757d5810cef1d05dc39 (patch) | |
tree | 8db50e696aa61966f52e94637a03d3b14313d9c7 /recipes-qt/qt5 | |
parent | d4a726ccf6e9ab1272555161ae4eb69ea508652b (diff) | |
download | meta-qt5-18d2e711d87ffd8c6c341757d5810cef1d05dc39.tar.gz |
qmake5_base: add qmake5_base_do_configure which allows to declare QMAKE_VARSUBST_*
* don't export it, let recipe decide where to call it or even if it
should be called (native recipes are not using it)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5')
-rw-r--r-- | recipes-qt/qt5/qt5.inc | 4 | ||||
-rw-r--r-- | recipes-qt/qt5/qt5module.inc | 6 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase.inc | 24 |
3 files changed, 23 insertions, 11 deletions
diff --git a/recipes-qt/qt5/qt5.inc b/recipes-qt/qt5/qt5.inc index a4ac90b6..4e78577a 100644 --- a/recipes-qt/qt5/qt5.inc +++ b/recipes-qt/qt5/qt5.inc | |||
@@ -1,6 +1,6 @@ | |||
1 | # Copyright (C) 2012 O.S. Systems Software LTDA. | 1 | # Copyright (C) 2012 O.S. Systems Software LTDA. |
2 | 2 | ||
3 | inherit qmake5_base | 3 | inherit qmake5 |
4 | 4 | ||
5 | # Qt5 is dependent on icu for localization | 5 | # Qt5 is dependent on icu for localization |
6 | ICU = "icu " | 6 | ICU = "icu " |
@@ -71,6 +71,8 @@ do_configure() { | |||
71 | # Existing separate build directory, exists, remove | 71 | # Existing separate build directory, exists, remove |
72 | rm -rf "${B}/*" | 72 | rm -rf "${B}/*" |
73 | fi | 73 | fi |
74 | |||
75 | qmake5_base_do_configure | ||
74 | } | 76 | } |
75 | 77 | ||
76 | do_compile() { | 78 | do_compile() { |
diff --git a/recipes-qt/qt5/qt5module.inc b/recipes-qt/qt5/qt5module.inc index 45053f0b..bbb05a65 100644 --- a/recipes-qt/qt5/qt5module.inc +++ b/recipes-qt/qt5/qt5module.inc | |||
@@ -1,9 +1,3 @@ | |||
1 | require qt5.inc | 1 | require qt5.inc |
2 | 2 | ||
3 | DEPENDS += "qtbase" | 3 | DEPENDS += "qtbase" |
4 | |||
5 | inherit qmake5 | ||
6 | |||
7 | do_configure_append () { | ||
8 | ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} | ||
9 | } | ||
diff --git a/recipes-qt/qt5/qtbase.inc b/recipes-qt/qt5/qtbase.inc index 0a8b7397..531c88fe 100644 --- a/recipes-qt/qt5/qtbase.inc +++ b/recipes-qt/qt5/qtbase.inc | |||
@@ -49,12 +49,28 @@ EXTRA_ENV = 'QMAKE="bin/qmake ${OE_QMAKE_DEBUG_OUTPUT} -after \ | |||
49 | # qtbase is exception, we need to use mkspecs from ${S} | 49 | # qtbase is exception, we need to use mkspecs from ${S} |
50 | QMAKE_MKSPEC_PATH = "${B}" | 50 | QMAKE_MKSPEC_PATH = "${B}" |
51 | 51 | ||
52 | do_configure_append() { | 52 | # another exception is that we need to run bin/qmake, because EffectivePaths are relative to qmake location |
53 | OE_QMAKE_QMAKE_ORIG := "${OE_QMAKE_QMAKE}" | ||
54 | OE_QMAKE_QMAKE = "bin/qmake" | ||
55 | |||
56 | do_configure() { | ||
57 | set_arch | ||
58 | set_endian | ||
59 | |||
60 | # Avoid problems with the linkers, since we want the linker to be g++ | ||
61 | unset LD | ||
62 | |||
63 | # Similar logic is in autotools.bbclass | ||
64 | if [ -d ${B} -a "${S}" != "${B}" ] ; then | ||
65 | # Existing separate build directory, exists, remove | ||
66 | rm -rf "${B}/*" | ||
67 | fi | ||
68 | |||
53 | # we need symlink in path relative to source, because | 69 | # we need symlink in path relative to source, because |
54 | # EffectivePaths:Prefix is relative to qmake location | 70 | # EffectivePaths:Prefix is relative to qmake location |
55 | if [ ! -e ${B}/bin/qmake ]; then | 71 | if [ ! -e ${B}/bin/qmake ]; then |
56 | mkdir ${B}/bin | 72 | mkdir ${B}/bin |
57 | ln -sf ${OE_QMAKE_QMAKE} ${B}/bin/qmake | 73 | ln -sf ${OE_QMAKE_QMAKE_ORIG} ${B}/bin/qmake |
58 | fi | 74 | fi |
59 | 75 | ||
60 | ${S}/configure -v \ | 76 | ${S}/configure -v \ |
@@ -83,8 +99,8 @@ do_configure_append() { | |||
83 | -platform ${OE_QMAKESPEC} \ | 99 | -platform ${OE_QMAKESPEC} \ |
84 | -xplatform linux-oe-g++ \ | 100 | -xplatform linux-oe-g++ \ |
85 | ${QT_CONFIG_FLAGS} | 101 | ${QT_CONFIG_FLAGS} |
86 | 102 | ||
87 | bin/qmake -r ${OE_QMAKE_DEBUG_OUTPUT} ${S} | 103 | qmake5_base_do_configure |
88 | } | 104 | } |
89 | 105 | ||
90 | do_compile_append() { | 106 | do_compile_append() { |