diff options
| -rw-r--r-- | recipes-qt/qt5/nativesdk-qtbase_git.bb | 1 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase-native_git.bb | 1 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch | 86 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase_git.bb | 3 |
4 files changed, 89 insertions, 2 deletions
diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb index 3672b61b..54a5b521 100644 --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb | |||
| @@ -23,6 +23,7 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:" | |||
| 23 | # common for qtbase-native, qtbase-nativesdk and qtbase | 23 | # common for qtbase-native, qtbase-nativesdk and qtbase |
| 24 | SRC_URI += "\ | 24 | SRC_URI += "\ |
| 25 | file://0001-Add-linux-oe-g-platform.patch \ | 25 | file://0001-Add-linux-oe-g-platform.patch \ |
| 26 | file://0003-Add-external-hostbindir-option.patch \ | ||
| 26 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ | 27 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ |
| 27 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ | 28 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ |
| 28 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ | 29 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ |
diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb index 15a7be18..a928a9a4 100644 --- a/recipes-qt/qt5/qtbase-native_git.bb +++ b/recipes-qt/qt5/qtbase-native_git.bb | |||
| @@ -17,6 +17,7 @@ require qt5-git.inc | |||
| 17 | # common for qtbase-native, qtbase-nativesdk and qtbase | 17 | # common for qtbase-native, qtbase-nativesdk and qtbase |
| 18 | SRC_URI += "\ | 18 | SRC_URI += "\ |
| 19 | file://0001-Add-linux-oe-g-platform.patch \ | 19 | file://0001-Add-linux-oe-g-platform.patch \ |
| 20 | file://0003-Add-external-hostbindir-option.patch \ | ||
| 20 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ | 21 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ |
| 21 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ | 22 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ |
| 22 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ | 23 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ |
diff --git a/recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch b/recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch new file mode 100644 index 00000000..8224171a --- /dev/null +++ b/recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch | |||
| @@ -0,0 +1,86 @@ | |||
| 1 | From 502b95b840a5f79e5a68e9bd5b10dbdc92485f1f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 3 | Date: Sat, 6 Apr 2013 13:15:07 +0200 | ||
| 4 | Subject: [PATCH] Add -external-hostbindir option | ||
| 5 | |||
| 6 | * cmake: Use OE_QMAKE_PATH_EXTERNAL_HOST_BINS to determine path to host binaries | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [OE specific] | ||
| 9 | |||
| 10 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 11 | Signed-off-by: Simon Busch <morphis@gravedo.de> | ||
| 12 | Signed-off-by: Jonathan Liu <net147@gmail.com> | ||
| 13 | |||
| 14 | Change-Id: Iacaa1c5531cd6dcc094891610c351673db55d7b2 | ||
| 15 | --- | ||
| 16 | src/corelib/Qt5CoreConfigExtras.cmake.in | 6 +++--- | ||
| 17 | src/dbus/Qt5DBusConfigExtras.cmake.in | 4 ++-- | ||
| 18 | src/widgets/Qt5WidgetsConfigExtras.cmake.in | 2 +- | ||
| 19 | 3 files changed, 6 insertions(+), 6 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/src/corelib/Qt5CoreConfigExtras.cmake.in b/src/corelib/Qt5CoreConfigExtras.cmake.in | ||
| 22 | index a5ed8b2..0e11a1e 100644 | ||
| 23 | --- a/src/corelib/Qt5CoreConfigExtras.cmake.in | ||
| 24 | +++ b/src/corelib/Qt5CoreConfigExtras.cmake.in | ||
| 25 | @@ -5,7 +5,7 @@ if (NOT TARGET Qt5::qmake) | ||
| 26 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
| 27 | set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\") | ||
| 28 | !!ELSE | ||
| 29 | - set(imported_location \"$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\") | ||
| 30 | + set(imported_location \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qmake$$CMAKE_BIN_SUFFIX\") | ||
| 31 | !!ENDIF | ||
| 32 | _qt5_Core_check_file_exists(${imported_location}) | ||
| 33 | |||
| 34 | @@ -20,7 +20,7 @@ if (NOT TARGET Qt5::moc) | ||
| 35 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
| 36 | set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\") | ||
| 37 | !!ELSE | ||
| 38 | - set(imported_location \"$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\") | ||
| 39 | + set(imported_location \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/moc$$CMAKE_BIN_SUFFIX\") | ||
| 40 | !!ENDIF | ||
| 41 | _qt5_Core_check_file_exists(${imported_location}) | ||
| 42 | |||
| 43 | @@ -37,7 +37,7 @@ if (NOT TARGET Qt5::rcc) | ||
| 44 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
| 45 | set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\") | ||
| 46 | !!ELSE | ||
| 47 | - set(imported_location \"$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\") | ||
| 48 | + set(imported_location \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/rcc$$CMAKE_BIN_SUFFIX\") | ||
| 49 | !!ENDIF | ||
| 50 | _qt5_Core_check_file_exists(${imported_location}) | ||
| 51 | |||
| 52 | diff --git a/src/dbus/Qt5DBusConfigExtras.cmake.in b/src/dbus/Qt5DBusConfigExtras.cmake.in | ||
| 53 | index 1d94715..301af8f 100644 | ||
| 54 | --- a/src/dbus/Qt5DBusConfigExtras.cmake.in | ||
| 55 | +++ b/src/dbus/Qt5DBusConfigExtras.cmake.in | ||
| 56 | @@ -5,7 +5,7 @@ if (NOT TARGET Qt5::qdbuscpp2xml) | ||
| 57 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
| 58 | set(imported_location \"${_qt5DBus_install_prefix}/$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\") | ||
| 59 | !!ELSE | ||
| 60 | - set(imported_location \"$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\") | ||
| 61 | + set(imported_location \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qdbuscpp2xml$$CMAKE_BIN_SUFFIX\") | ||
| 62 | !!ENDIF | ||
| 63 | _qt5_DBus_check_file_exists(${imported_location}) | ||
| 64 | |||
| 65 | @@ -20,7 +20,7 @@ if (NOT TARGET Qt5::qdbusxml2cpp) | ||
| 66 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
| 67 | set(imported_location \"${_qt5DBus_install_prefix}/$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\") | ||
| 68 | !!ELSE | ||
| 69 | - set(imported_location \"$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\") | ||
| 70 | + set(imported_location \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qdbusxml2cpp$$CMAKE_BIN_SUFFIX\") | ||
| 71 | !!ENDIF | ||
| 72 | _qt5_DBus_check_file_exists(${imported_location}) | ||
| 73 | |||
| 74 | diff --git a/src/widgets/Qt5WidgetsConfigExtras.cmake.in b/src/widgets/Qt5WidgetsConfigExtras.cmake.in | ||
| 75 | index 99d87e2..5621dc0 100644 | ||
| 76 | --- a/src/widgets/Qt5WidgetsConfigExtras.cmake.in | ||
| 77 | +++ b/src/widgets/Qt5WidgetsConfigExtras.cmake.in | ||
| 78 | @@ -5,7 +5,7 @@ if (NOT TARGET Qt5::uic) | ||
| 79 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
| 80 | set(imported_location \"${_qt5Widgets_install_prefix}/$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\") | ||
| 81 | !!ELSE | ||
| 82 | - set(imported_location \"$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\") | ||
| 83 | + set(imported_location \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/uic$$CMAKE_BIN_SUFFIX\") | ||
| 84 | !!ENDIF | ||
| 85 | _qt5_Widgets_check_file_exists(${imported_location}) | ||
| 86 | |||
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index d23a369a..3f9cf1ea 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb | |||
| @@ -14,6 +14,7 @@ LIC_FILES_CHKSUM = " \ | |||
| 14 | SRC_URI += "\ | 14 | SRC_URI += "\ |
| 15 | file://0001-Add-linux-oe-g-platform.patch \ | 15 | file://0001-Add-linux-oe-g-platform.patch \ |
| 16 | file://0001-QMake-Add-option-to-set-qt.conf-file.patch \ | 16 | file://0001-QMake-Add-option-to-set-qt.conf-file.patch \ |
| 17 | file://0003-Add-external-hostbindir-option.patch \ | ||
| 17 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ | 18 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ |
| 18 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ | 19 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ |
| 19 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ | 20 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ |
| @@ -139,8 +140,6 @@ QT_CONFIG_FLAGS += " \ | |||
| 139 | ${PACKAGECONFIG_CONFARGS} \ | 140 | ${PACKAGECONFIG_CONFARGS} \ |
| 140 | " | 141 | " |
| 141 | 142 | ||
| 142 | OE_QMAKE_PATH_HOST_BINS = "${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}" | ||
| 143 | |||
| 144 | generate_qt_config_file_effective_paths() { | 143 | generate_qt_config_file_effective_paths() { |
| 145 | cat >> ${OE_QMAKE_QTCONF_PATH} <<EOF | 144 | cat >> ${OE_QMAKE_QTCONF_PATH} <<EOF |
| 146 | [EffectivePaths] | 145 | [EffectivePaths] |
