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 1a8b4882..b22f7a49 100644 --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb | |||
| @@ -25,6 +25,7 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:" | |||
| 25 | SRC_URI += "\ | 25 | SRC_URI += "\ |
| 26 | file://0001-Add-linux-oe-g-platform.patch \ | 26 | file://0001-Add-linux-oe-g-platform.patch \ |
| 27 | file://0002-configure-Separate-host-and-build-platform.patch \ | 27 | file://0002-configure-Separate-host-and-build-platform.patch \ |
| 28 | file://0003-Add-external-hostbindir-option.patch \ | ||
| 28 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ | 29 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ |
| 29 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ | 30 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ |
| 30 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ | 31 | 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 69fac0e7..a239bdc7 100644 --- a/recipes-qt/qt5/qtbase-native_git.bb +++ b/recipes-qt/qt5/qtbase-native_git.bb | |||
| @@ -18,6 +18,7 @@ require qt5-git.inc | |||
| 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://0002-configure-Separate-host-and-build-platform.patch \ | 20 | file://0002-configure-Separate-host-and-build-platform.patch \ |
| 21 | file://0003-Add-external-hostbindir-option.patch \ | ||
| 21 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ | 22 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ |
| 22 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ | 23 | file://0005-configure-bump-path-length-from-256-to-512-character.patch \ |
| 23 | file://0006-QOpenGLPaintDevice-sub-area-support.patch \ | 24 | 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 d00a3a30..9008306e 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://0002-configure-Separate-host-and-build-platform.patch \ | 16 | file://0002-configure-Separate-host-and-build-platform.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 \ |
| @@ -136,8 +137,6 @@ QT_CONFIG_FLAGS += " \ | |||
| 136 | ${PACKAGECONFIG_CONFARGS} \ | 137 | ${PACKAGECONFIG_CONFARGS} \ |
| 137 | " | 138 | " |
| 138 | 139 | ||
| 139 | OE_QMAKE_PATH_HOST_BINS = "${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}" | ||
| 140 | |||
| 141 | generate_qt_config_file_effective_paths() { | 140 | generate_qt_config_file_effective_paths() { |
| 142 | cat >> ${OE_QMAKE_QTCONF_PATH} <<EOF | 141 | cat >> ${OE_QMAKE_QTCONF_PATH} <<EOF |
| 143 | [EffectivePaths] | 142 | [EffectivePaths] |
