diff options
Diffstat (limited to 'recipes-qt/qt5/qtbase-git/0003-Add-external-hostbindir-option.patch')
-rw-r--r-- | recipes-qt/qt5/qtbase-git/0003-Add-external-hostbindir-option.patch | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/recipes-qt/qt5/qtbase-git/0003-Add-external-hostbindir-option.patch b/recipes-qt/qt5/qtbase-git/0003-Add-external-hostbindir-option.patch index 2abea8fc..88bb4841 100644 --- a/recipes-qt/qt5/qtbase-git/0003-Add-external-hostbindir-option.patch +++ b/recipes-qt/qt5/qtbase-git/0003-Add-external-hostbindir-option.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From b544f5f3462e2981ada045a32038b7f116f8590c Mon Sep 17 00:00:00 2001 | 1 | From 735d4f58381452854ed7b0c2f762030d747098e1 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, 6 Apr 2013 13:15:07 +0200 | 3 | Date: Sat, 6 Apr 2013 13:15:07 +0200 |
4 | Subject: [PATCH 03/12] Add -external-hostbindir option | 4 | Subject: [PATCH 03/11] Add -external-hostbindir option |
5 | 5 | ||
6 | * when cross-compiling it's sometimes useful to use existing tools from machine | 6 | * when cross-compiling it's sometimes useful to use existing tools from machine |
7 | (or in OpenEmbedded built with separate native recipe) when building for target | 7 | (or in OpenEmbedded built with separate native recipe) when building for target |
@@ -38,10 +38,10 @@ Signed-off-by: Jonathan Liu <net147@gmail.com> | |||
38 | 11 files changed, 51 insertions(+), 13 deletions(-) | 38 | 11 files changed, 51 insertions(+), 13 deletions(-) |
39 | 39 | ||
40 | diff --git a/configure b/configure | 40 | diff --git a/configure b/configure |
41 | index d5c2b08..dcd066c 100755 | 41 | index b1dfca9..dcd1790 100755 |
42 | --- a/configure | 42 | --- a/configure |
43 | +++ b/configure | 43 | +++ b/configure |
44 | @@ -759,6 +759,7 @@ QT_HOST_BINS= | 44 | @@ -768,6 +768,7 @@ QT_HOST_BINS= |
45 | QT_HOST_LIBS= | 45 | QT_HOST_LIBS= |
46 | QT_HOST_DATA= | 46 | QT_HOST_DATA= |
47 | QT_EXT_PREFIX= | 47 | QT_EXT_PREFIX= |
@@ -49,7 +49,7 @@ index d5c2b08..dcd066c 100755 | |||
49 | 49 | ||
50 | #flags for SQL drivers | 50 | #flags for SQL drivers |
51 | QT_CFLAGS_PSQL= | 51 | QT_CFLAGS_PSQL= |
52 | @@ -878,6 +879,7 @@ while [ "$#" -gt 0 ]; do | 52 | @@ -887,6 +888,7 @@ while [ "$#" -gt 0 ]; do |
53 | -testsdir| \ | 53 | -testsdir| \ |
54 | -hostdatadir| \ | 54 | -hostdatadir| \ |
55 | -hostbindir| \ | 55 | -hostbindir| \ |
@@ -57,7 +57,7 @@ index d5c2b08..dcd066c 100755 | |||
57 | -hostlibdir| \ | 57 | -hostlibdir| \ |
58 | -extprefix| \ | 58 | -extprefix| \ |
59 | -sysroot| \ | 59 | -sysroot| \ |
60 | @@ -1092,6 +1094,9 @@ while [ "$#" -gt 0 ]; do | 60 | @@ -1101,6 +1103,9 @@ while [ "$#" -gt 0 ]; do |
61 | extprefix) | 61 | extprefix) |
62 | QT_EXT_PREFIX="$VAL" | 62 | QT_EXT_PREFIX="$VAL" |
63 | ;; | 63 | ;; |
@@ -67,7 +67,7 @@ index d5c2b08..dcd066c 100755 | |||
67 | pkg-config) | 67 | pkg-config) |
68 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | 68 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then |
69 | CFG_PKGCONFIG="$VAL" | 69 | CFG_PKGCONFIG="$VAL" |
70 | @@ -2230,6 +2235,10 @@ Installation options: | 70 | @@ -2252,6 +2257,10 @@ Installation options: |
71 | -hostdatadir <dir> . Data used by qmake will be installed to <dir> | 71 | -hostdatadir <dir> . Data used by qmake will be installed to <dir> |
72 | (default HOSTPREFIX) | 72 | (default HOSTPREFIX) |
73 | 73 | ||
@@ -78,7 +78,7 @@ index d5c2b08..dcd066c 100755 | |||
78 | Configure options: | 78 | Configure options: |
79 | 79 | ||
80 | The defaults (*) are usually acceptable. A plus (+) denotes a default value | 80 | The defaults (*) are usually acceptable. A plus (+) denotes a default value |
81 | @@ -2897,6 +2906,11 @@ fi | 81 | @@ -2916,6 +2925,11 @@ fi |
82 | # command line and environment validation | 82 | # command line and environment validation |
83 | #------------------------------------------------------------------------------- | 83 | #------------------------------------------------------------------------------- |
84 | 84 | ||
@@ -90,7 +90,7 @@ index d5c2b08..dcd066c 100755 | |||
90 | # update QT_CONFIG to show our current predefined configuration | 90 | # update QT_CONFIG to show our current predefined configuration |
91 | CFG_QCONFIG_PATH=$relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h | 91 | CFG_QCONFIG_PATH=$relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h |
92 | case "$CFG_QCONFIG" in | 92 | case "$CFG_QCONFIG" in |
93 | @@ -3577,6 +3591,7 @@ static const char qt_configure_prefix_path_strs[][256 + 12] = { | 93 | @@ -3609,6 +3623,7 @@ static const char qt_configure_prefix_path_strs[][256 + 12] = { |
94 | "qt_hbinpath=$QT_HOST_BINS", | 94 | "qt_hbinpath=$QT_HOST_BINS", |
95 | "qt_hlibpath=$QT_HOST_LIBS", | 95 | "qt_hlibpath=$QT_HOST_LIBS", |
96 | "qt_hdatpath=$QT_HOST_DATA", | 96 | "qt_hdatpath=$QT_HOST_DATA", |
@@ -99,10 +99,10 @@ index d5c2b08..dcd066c 100755 | |||
99 | "qt_hostspec=$shortspec", | 99 | "qt_hostspec=$shortspec", |
100 | #endif | 100 | #endif |
101 | diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf | 101 | diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf |
102 | index 9a4d80e..dfc1cff 100644 | 102 | index 709248a..ea2fed0 100644 |
103 | --- a/mkspecs/features/qt_functions.prf | 103 | --- a/mkspecs/features/qt_functions.prf |
104 | +++ b/mkspecs/features/qt_functions.prf | 104 | +++ b/mkspecs/features/qt_functions.prf |
105 | @@ -193,7 +193,11 @@ defineTest(qtAddRpathLink) { | 105 | @@ -191,7 +191,11 @@ defineTest(qtAddRpathLink) { |
106 | defineTest(qtPrepareTool) { | 106 | defineTest(qtPrepareTool) { |
107 | cmd = $$eval(QT_TOOL.$${2}.binary) | 107 | cmd = $$eval(QT_TOOL.$${2}.binary) |
108 | isEmpty(cmd) { | 108 | isEmpty(cmd) { |
@@ -134,10 +134,10 @@ index 1d3e88c..9b26adf 100644 | |||
134 | 134 | ||
135 | !host_build|!force_bootstrap: MODULE_DEPENDS = $$replace(QT, -private$, _private) | 135 | !host_build|!force_bootstrap: MODULE_DEPENDS = $$replace(QT, -private$, _private) |
136 | diff --git a/qmake/property.cpp b/qmake/property.cpp | 136 | diff --git a/qmake/property.cpp b/qmake/property.cpp |
137 | index e50485c..71291ad 100644 | 137 | index 051e056..50da6ed 100644 |
138 | --- a/qmake/property.cpp | 138 | --- a/qmake/property.cpp |
139 | +++ b/qmake/property.cpp | 139 | +++ b/qmake/property.cpp |
140 | @@ -75,6 +75,7 @@ static const struct { | 140 | @@ -67,6 +67,7 @@ static const struct { |
141 | { "QT_HOST_DATA", QLibraryInfo::HostDataPath, true }, | 141 | { "QT_HOST_DATA", QLibraryInfo::HostDataPath, true }, |
142 | { "QT_HOST_BINS", QLibraryInfo::HostBinariesPath, true }, | 142 | { "QT_HOST_BINS", QLibraryInfo::HostBinariesPath, true }, |
143 | { "QT_HOST_LIBS", QLibraryInfo::HostLibrariesPath, true }, | 143 | { "QT_HOST_LIBS", QLibraryInfo::HostLibrariesPath, true }, |
@@ -211,10 +211,10 @@ index 9bda70e..6e3605a 100644 | |||
211 | _qt5_Core_check_file_exists(${imported_location}) | 211 | _qt5_Core_check_file_exists(${imported_location}) |
212 | 212 | ||
213 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | 213 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp |
214 | index 174c1d0..1fe03cb 100644 | 214 | index 1be2659..6c3718a 100644 |
215 | --- a/src/corelib/global/qlibraryinfo.cpp | 215 | --- a/src/corelib/global/qlibraryinfo.cpp |
216 | +++ b/src/corelib/global/qlibraryinfo.cpp | 216 | +++ b/src/corelib/global/qlibraryinfo.cpp |
217 | @@ -333,7 +333,7 @@ QLibraryInfo::isDebugBuild() | 217 | @@ -357,7 +357,7 @@ QLibraryInfo::isDebugBuild() |
218 | */ | 218 | */ |
219 | 219 | ||
220 | static const struct { | 220 | static const struct { |
@@ -223,7 +223,7 @@ index 174c1d0..1fe03cb 100644 | |||
223 | } qtConfEntries[] = { | 223 | } qtConfEntries[] = { |
224 | { "Prefix", "." }, | 224 | { "Prefix", "." }, |
225 | { "Documentation", "doc" }, // should be ${Data}/doc | 225 | { "Documentation", "doc" }, // should be ${Data}/doc |
226 | @@ -359,6 +359,7 @@ static const struct { | 226 | @@ -383,6 +383,7 @@ static const struct { |
227 | { "HostBinaries", "bin" }, | 227 | { "HostBinaries", "bin" }, |
228 | { "HostLibraries", "lib" }, | 228 | { "HostLibraries", "lib" }, |
229 | { "HostData", "." }, | 229 | { "HostData", "." }, |
@@ -232,10 +232,10 @@ index 174c1d0..1fe03cb 100644 | |||
232 | { "HostSpec", "" }, | 232 | { "HostSpec", "" }, |
233 | #endif | 233 | #endif |
234 | diff --git a/src/corelib/global/qlibraryinfo.h b/src/corelib/global/qlibraryinfo.h | 234 | diff --git a/src/corelib/global/qlibraryinfo.h b/src/corelib/global/qlibraryinfo.h |
235 | index 0b573c2..b5535ee 100644 | 235 | index 543c4b3..a02e03a 100644 |
236 | --- a/src/corelib/global/qlibraryinfo.h | 236 | --- a/src/corelib/global/qlibraryinfo.h |
237 | +++ b/src/corelib/global/qlibraryinfo.h | 237 | +++ b/src/corelib/global/qlibraryinfo.h |
238 | @@ -88,6 +88,7 @@ public: | 238 | @@ -80,6 +80,7 @@ public: |
239 | HostBinariesPath, | 239 | HostBinariesPath, |
240 | HostLibrariesPath, | 240 | HostLibrariesPath, |
241 | HostDataPath, | 241 | HostDataPath, |
@@ -279,10 +279,10 @@ index 99d87e2..5621dc0 100644 | |||
279 | _qt5_Widgets_check_file_exists(${imported_location}) | 279 | _qt5_Widgets_check_file_exists(${imported_location}) |
280 | 280 | ||
281 | diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp | 281 | diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp |
282 | index b756509..7e61845 100644 | 282 | index ef71097..7969132 100644 |
283 | --- a/tools/configure/configureapp.cpp | 283 | --- a/tools/configure/configureapp.cpp |
284 | +++ b/tools/configure/configureapp.cpp | 284 | +++ b/tools/configure/configureapp.cpp |
285 | @@ -1213,6 +1213,13 @@ void Configure::parseCmdLine() | 285 | @@ -1191,6 +1191,13 @@ void Configure::parseCmdLine() |
286 | dictionary[ "QT_EXT_PREFIX" ] = configCmdLine.at(i); | 286 | dictionary[ "QT_EXT_PREFIX" ] = configCmdLine.at(i); |
287 | } | 287 | } |
288 | 288 | ||
@@ -296,7 +296,7 @@ index b756509..7e61845 100644 | |||
296 | else if (configCmdLine.at(i) == "-make-tool") { | 296 | else if (configCmdLine.at(i) == "-make-tool") { |
297 | ++i; | 297 | ++i; |
298 | if (i == argCount) | 298 | if (i == argCount) |
299 | @@ -3983,6 +3990,7 @@ void Configure::generateQConfigCpp() | 299 | @@ -3984,6 +3991,7 @@ void Configure::generateQConfigCpp() |
300 | << " \"qt_hbinpath=" << formatPath(dictionary["QT_HOST_BINS"]) << "\"," << endl | 300 | << " \"qt_hbinpath=" << formatPath(dictionary["QT_HOST_BINS"]) << "\"," << endl |
301 | << " \"qt_hlibpath=" << formatPath(dictionary["QT_HOST_LIBS"]) << "\"," << endl | 301 | << " \"qt_hlibpath=" << formatPath(dictionary["QT_HOST_LIBS"]) << "\"," << endl |
302 | << " \"qt_hdatpath=" << formatPath(dictionary["QT_HOST_DATA"]) << "\"," << endl | 302 | << " \"qt_hdatpath=" << formatPath(dictionary["QT_HOST_DATA"]) << "\"," << endl |
@@ -305,5 +305,5 @@ index b756509..7e61845 100644 | |||
305 | << " \"qt_hostspec=" << hostSpec << "\"," << endl | 305 | << " \"qt_hostspec=" << hostSpec << "\"," << endl |
306 | << "#endif" << endl | 306 | << "#endif" << endl |
307 | -- | 307 | -- |
308 | 2.0.1 | 308 | 2.1.1 |
309 | 309 | ||