diff options
Diffstat (limited to 'recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch')
-rw-r--r-- | recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch b/recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch index 7e03f740..f8253ecf 100644 --- a/recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch +++ b/recipes-qt/qt5/qtbase/0003-Add-external-hostbindir-option.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 3648eeddaed0cf31fba226ec713d2321f398974f Mon Sep 17 00:00:00 2001 | 1 | From 5c2a17167e89f8f6cf26cbc289e57fa466678d2d 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/14] Add -external-hostbindir option | 4 | Subject: [PATCH 03/17] 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 |
@@ -28,10 +28,10 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | |||
28 | 8 files changed, 45 insertions(+), 7 deletions(-) | 28 | 8 files changed, 45 insertions(+), 7 deletions(-) |
29 | 29 | ||
30 | diff --git a/configure b/configure | 30 | diff --git a/configure b/configure |
31 | index 0e74f29..7f3f2f0 100755 | 31 | index eaa4092..43ad8df 100755 |
32 | --- a/configure | 32 | --- a/configure |
33 | +++ b/configure | 33 | +++ b/configure |
34 | @@ -788,6 +788,7 @@ QT_HOST_BINS= | 34 | @@ -791,6 +791,7 @@ QT_HOST_BINS= |
35 | QT_HOST_LIBS= | 35 | QT_HOST_LIBS= |
36 | QT_HOST_DATA= | 36 | QT_HOST_DATA= |
37 | QT_EXT_PREFIX= | 37 | QT_EXT_PREFIX= |
@@ -39,7 +39,7 @@ index 0e74f29..7f3f2f0 100755 | |||
39 | 39 | ||
40 | #flags for SQL drivers | 40 | #flags for SQL drivers |
41 | QT_CFLAGS_PSQL= | 41 | QT_CFLAGS_PSQL= |
42 | @@ -907,6 +908,7 @@ while [ "$#" -gt 0 ]; do | 42 | @@ -910,6 +911,7 @@ while [ "$#" -gt 0 ]; do |
43 | -testsdir| \ | 43 | -testsdir| \ |
44 | -hostdatadir| \ | 44 | -hostdatadir| \ |
45 | -hostbindir| \ | 45 | -hostbindir| \ |
@@ -47,7 +47,7 @@ index 0e74f29..7f3f2f0 100755 | |||
47 | -hostlibdir| \ | 47 | -hostlibdir| \ |
48 | -extprefix| \ | 48 | -extprefix| \ |
49 | -sysroot| \ | 49 | -sysroot| \ |
50 | @@ -1120,6 +1122,9 @@ while [ "$#" -gt 0 ]; do | 50 | @@ -1124,6 +1126,9 @@ while [ "$#" -gt 0 ]; do |
51 | extprefix) | 51 | extprefix) |
52 | QT_EXT_PREFIX="$VAL" | 52 | QT_EXT_PREFIX="$VAL" |
53 | ;; | 53 | ;; |
@@ -57,7 +57,7 @@ index 0e74f29..7f3f2f0 100755 | |||
57 | pkg-config) | 57 | pkg-config) |
58 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then | 58 | if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then |
59 | CFG_PKGCONFIG="$VAL" | 59 | CFG_PKGCONFIG="$VAL" |
60 | @@ -2236,6 +2241,10 @@ Installation options: | 60 | @@ -2248,6 +2253,10 @@ Installation options: |
61 | -hostdatadir <dir> . Data used by qmake will be installed to <dir> | 61 | -hostdatadir <dir> . Data used by qmake will be installed to <dir> |
62 | (default HOSTPREFIX) | 62 | (default HOSTPREFIX) |
63 | 63 | ||
@@ -68,7 +68,7 @@ index 0e74f29..7f3f2f0 100755 | |||
68 | Configure options: | 68 | Configure options: |
69 | 69 | ||
70 | The defaults (*) are usually acceptable. A plus (+) denotes a default value | 70 | The defaults (*) are usually acceptable. A plus (+) denotes a default value |
71 | @@ -3151,6 +3160,11 @@ fi | 71 | @@ -2906,6 +2915,11 @@ fi |
72 | # command line and environment validation | 72 | # command line and environment validation |
73 | #------------------------------------------------------------------------------- | 73 | #------------------------------------------------------------------------------- |
74 | 74 | ||
@@ -80,7 +80,7 @@ index 0e74f29..7f3f2f0 100755 | |||
80 | # update QT_CONFIG to show our current predefined configuration | 80 | # update QT_CONFIG to show our current predefined configuration |
81 | CFG_QCONFIG_PATH=$relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h | 81 | CFG_QCONFIG_PATH=$relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h |
82 | case "$CFG_QCONFIG" in | 82 | case "$CFG_QCONFIG" in |
83 | @@ -3838,6 +3852,7 @@ static const char qt_configure_prefix_path_strs[][256 + 12] = { | 83 | @@ -3593,6 +3607,7 @@ static const char qt_configure_prefix_path_strs[][256 + 12] = { |
84 | "qt_hbinpath=$QT_HOST_BINS", | 84 | "qt_hbinpath=$QT_HOST_BINS", |
85 | "qt_hlibpath=$QT_HOST_LIBS", | 85 | "qt_hlibpath=$QT_HOST_LIBS", |
86 | "qt_hdatpath=$QT_HOST_DATA", | 86 | "qt_hdatpath=$QT_HOST_DATA", |
@@ -135,10 +135,10 @@ index e50485c..71291ad 100644 | |||
135 | { "QMAKE_XSPEC", QLibraryInfo::TargetSpecPath, true }, | 135 | { "QMAKE_XSPEC", QLibraryInfo::TargetSpecPath, true }, |
136 | }; | 136 | }; |
137 | diff --git a/qtbase.pro b/qtbase.pro | 137 | diff --git a/qtbase.pro b/qtbase.pro |
138 | index 140a137..4e01d5b 100644 | 138 | index ed6fc39..2421f41 100644 |
139 | --- a/qtbase.pro | 139 | --- a/qtbase.pro |
140 | +++ b/qtbase.pro | 140 | +++ b/qtbase.pro |
141 | @@ -70,16 +70,22 @@ CONFIG -= qt | 141 | @@ -71,16 +71,22 @@ CONFIG -= qt |
142 | 142 | ||
143 | #qmake | 143 | #qmake |
144 | qmake.path = $$[QT_HOST_BINS] | 144 | qmake.path = $$[QT_HOST_BINS] |
@@ -165,10 +165,10 @@ index 140a137..4e01d5b 100644 | |||
165 | 165 | ||
166 | # If we are doing a prefix build, create a "module" pri which enables | 166 | # If we are doing a prefix build, create a "module" pri which enables |
167 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp | 167 | diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp |
168 | index c647a16..da82913 100644 | 168 | index 80e0f30..89e13cf 100644 |
169 | --- a/src/corelib/global/qlibraryinfo.cpp | 169 | --- a/src/corelib/global/qlibraryinfo.cpp |
170 | +++ b/src/corelib/global/qlibraryinfo.cpp | 170 | +++ b/src/corelib/global/qlibraryinfo.cpp |
171 | @@ -281,7 +281,7 @@ QLibraryInfo::isDebugBuild() | 171 | @@ -336,7 +336,7 @@ QLibraryInfo::isDebugBuild() |
172 | */ | 172 | */ |
173 | 173 | ||
174 | static const struct { | 174 | static const struct { |
@@ -177,7 +177,7 @@ index c647a16..da82913 100644 | |||
177 | } qtConfEntries[] = { | 177 | } qtConfEntries[] = { |
178 | { "Prefix", "." }, | 178 | { "Prefix", "." }, |
179 | { "Documentation", "doc" }, // should be ${Data}/doc | 179 | { "Documentation", "doc" }, // should be ${Data}/doc |
180 | @@ -307,6 +307,7 @@ static const struct { | 180 | @@ -362,6 +362,7 @@ static const struct { |
181 | { "HostBinaries", "bin" }, | 181 | { "HostBinaries", "bin" }, |
182 | { "HostLibraries", "lib" }, | 182 | { "HostLibraries", "lib" }, |
183 | { "HostData", "." }, | 183 | { "HostData", "." }, |
@@ -186,10 +186,10 @@ index c647a16..da82913 100644 | |||
186 | { "HostSpec", "" }, | 186 | { "HostSpec", "" }, |
187 | #endif | 187 | #endif |
188 | diff --git a/src/corelib/global/qlibraryinfo.h b/src/corelib/global/qlibraryinfo.h | 188 | diff --git a/src/corelib/global/qlibraryinfo.h b/src/corelib/global/qlibraryinfo.h |
189 | index 17864b5..a14bc0f 100644 | 189 | index 0b573c2..b5535ee 100644 |
190 | --- a/src/corelib/global/qlibraryinfo.h | 190 | --- a/src/corelib/global/qlibraryinfo.h |
191 | +++ b/src/corelib/global/qlibraryinfo.h | 191 | +++ b/src/corelib/global/qlibraryinfo.h |
192 | @@ -84,6 +84,7 @@ public: | 192 | @@ -88,6 +88,7 @@ public: |
193 | HostBinariesPath, | 193 | HostBinariesPath, |
194 | HostLibrariesPath, | 194 | HostLibrariesPath, |
195 | HostDataPath, | 195 | HostDataPath, |
@@ -198,10 +198,10 @@ index 17864b5..a14bc0f 100644 | |||
198 | HostSpecPath, | 198 | HostSpecPath, |
199 | LastHostPath = HostSpecPath, | 199 | LastHostPath = HostSpecPath, |
200 | diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp | 200 | diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp |
201 | index 5ab413a..50a192b 100644 | 201 | index fe2caa2..eb472db 100644 |
202 | --- a/tools/configure/configureapp.cpp | 202 | --- a/tools/configure/configureapp.cpp |
203 | +++ b/tools/configure/configureapp.cpp | 203 | +++ b/tools/configure/configureapp.cpp |
204 | @@ -1186,6 +1186,13 @@ void Configure::parseCmdLine() | 204 | @@ -1208,6 +1208,13 @@ void Configure::parseCmdLine() |
205 | dictionary[ "QT_EXT_PREFIX" ] = configCmdLine.at(i); | 205 | dictionary[ "QT_EXT_PREFIX" ] = configCmdLine.at(i); |
206 | } | 206 | } |
207 | 207 | ||
@@ -215,7 +215,7 @@ index 5ab413a..50a192b 100644 | |||
215 | else if (configCmdLine.at(i) == "-make-tool") { | 215 | else if (configCmdLine.at(i) == "-make-tool") { |
216 | ++i; | 216 | ++i; |
217 | if (i == argCount) | 217 | if (i == argCount) |
218 | @@ -3852,6 +3859,7 @@ void Configure::generateQConfigCpp() | 218 | @@ -3957,6 +3964,7 @@ void Configure::generateQConfigCpp() |
219 | << " \"qt_hbinpath=" << formatPath(dictionary["QT_HOST_BINS"]) << "\"," << endl | 219 | << " \"qt_hbinpath=" << formatPath(dictionary["QT_HOST_BINS"]) << "\"," << endl |
220 | << " \"qt_hlibpath=" << formatPath(dictionary["QT_HOST_LIBS"]) << "\"," << endl | 220 | << " \"qt_hlibpath=" << formatPath(dictionary["QT_HOST_LIBS"]) << "\"," << endl |
221 | << " \"qt_hdatpath=" << formatPath(dictionary["QT_HOST_DATA"]) << "\"," << endl | 221 | << " \"qt_hdatpath=" << formatPath(dictionary["QT_HOST_DATA"]) << "\"," << endl |
@@ -224,5 +224,5 @@ index 5ab413a..50a192b 100644 | |||
224 | << " \"qt_hostspec=" << hostSpec << "\"," << endl | 224 | << " \"qt_hostspec=" << hostSpec << "\"," << endl |
225 | << "#endif" << endl | 225 | << "#endif" << endl |
226 | -- | 226 | -- |
227 | 1.8.5.3 | 227 | 2.0.0 |
228 | 228 | ||