[oe-commits] Holger Hans Peter Freyther : qt4: Make it possible to set the QMAKE_QT_CONFIG variable

git version control git at git.openembedded.org
Tue Aug 11 01:16:28 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 16e1b32d6991d551c5f86c588669de4521dad4b9
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=16e1b32d6991d551c5f86c588669de4521dad4b9

Author: Holger Hans Peter Freyther <zecke at selfish.org>
Date:   Mon Aug 10 13:09:16 2009 +0200

qt4: Make it possible to set the QMAKE_QT_CONFIG variable

this way we will find the qconfig.pri and all library names
will be set correctly. This means that the SDK is usable to
compile Qt applications out of the box.

---

 recipes/meta/meta-toolchain-qte.bb |    1 +
 recipes/qt4/files/g++.conf         |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/recipes/meta/meta-toolchain-qte.bb b/recipes/meta/meta-toolchain-qte.bb
index 463b855..52fd279 100644
--- a/recipes/meta/meta-toolchain-qte.bb
+++ b/recipes/meta/meta-toolchain-qte.bb
@@ -23,6 +23,7 @@ do_populate_sdk_append() {
        echo 'export OE_QMAKE_RCC=${prefix}/bin/rcc4' >> $script
        echo 'export OE_QMAKE_QDBUSCPP2XML=${prefix}/bin/qdbuscpp2xml4' >> $script
        echo 'export OE_QMAKE_QDBUSXML2CPP=${prefix}/bin/qdbusxml2cpp4' >> $script
+       echo 'export OE_QMAKE_QT_CONFIG=${prefix}/${TARGET_SYS}/${layout_datadir}/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script
 
        # Repack SDK with new environment-setup
        cd ${SDK_OUTPUT}
diff --git a/recipes/qt4/files/g++.conf b/recipes/qt4/files/g++.conf
index f1be0ad..4cd76e6 100644
--- a/recipes/qt4/files/g++.conf
+++ b/recipes/qt4/files/g++.conf
@@ -48,3 +48,6 @@ QMAKE_PCH_OUTPUT_EXT    = .gch
 # -Bsymbolic-functions (ld) support
 QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions
 QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list,
+
+# for the SDK
+isEmpty(QMAKE_QT_CONFIG):QMAKE_QT_CONFIG = $(OE_QMAKE_QT_CONFIG)





More information about the Openembedded-commits mailing list