diff options
author | Franklin Wei <franklin@rockbox.org> | 2019-11-09 20:52:08 -0500 |
---|---|---|
committer | Franklin Wei <franklin@rockbox.org> | 2019-11-09 20:54:57 -0500 |
commit | a5f228eee2240c3d12f0d03b51adad5603cb10d3 (patch) | |
tree | b1f514917f817ef973dc1aa935ff7b5979f2099b /rbutil/rbutilqt/rbutilqt.pro | |
parent | 1925d043a2d98caacc669ded319a7e1fcd197ef8 (diff) | |
download | rockbox-a5f228eee2240c3d12f0d03b51adad5603cb10d3.tar.gz rockbox-a5f228eee2240c3d12f0d03b51adad5603cb10d3.zip |
rbutil: fix windows cross compile (via M cross environment)
This fixes a couple of issues when cross-compiling for windows:
- lib builds (i.e. mks5lboot) were overriding the cross CC/CXX with the
native CC, producing incompatible binaries.
- Qt made the accessibility plugin part of the core library, so we no
longer need to import it.
Change-Id: I9d884aee62dfa51d3624a3fa9b99c23b3b375f20
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.pro')
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.pro | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro index cfd6fb39ab..43d74e59d7 100644 --- a/rbutil/rbutilqt/rbutilqt.pro +++ b/rbutil/rbutilqt/rbutilqt.pro | |||
@@ -32,6 +32,7 @@ unix:!mac:!noccache { | |||
32 | } | 32 | } |
33 | MACHINEFLAGS = $$find(QMAKE_CFLAGS, -m[63][42]) | 33 | MACHINEFLAGS = $$find(QMAKE_CFLAGS, -m[63][42]) |
34 | EXTRALIBS_OPTS += EXTRALIBS_CC=\"$$QMAKE_CC\" | 34 | EXTRALIBS_OPTS += EXTRALIBS_CC=\"$$QMAKE_CC\" |
35 | EXTRALIBS_OPTS += EXTRALIBS_CXX=\"$$QMAKE_CXX\" | ||
35 | EXTRALIBS_OPTS += EXTRALIB_CFLAGS=\"$$MACHINEFLAGS\" \ | 36 | EXTRALIBS_OPTS += EXTRALIB_CFLAGS=\"$$MACHINEFLAGS\" \ |
36 | 37 | ||
37 | MYBUILDDIR = $$OUT_PWD/build/ | 38 | MYBUILDDIR = $$OUT_PWD/build/ |
@@ -251,8 +252,10 @@ macx { | |||
251 | } | 252 | } |
252 | 253 | ||
253 | static { | 254 | static { |
254 | QTPLUGIN += qtaccessiblewidgets | 255 | if(equals(QT_MAJOR_VERSION, 5) : lessThan(QT_MINOR_VERSION, 4)) | lessThan(QT_MAJOR_VERSION, 5) { |
255 | LIBS += -L$$(QT_BUILD_TREE)/plugins/accessible -lqtaccessiblewidgets | 256 | QTPLUGIN += qtaccessiblewidgets |
257 | LIBS += -L$$(QT_BUILD_TREE)/plugins/accessible -lqtaccessiblewidgets | ||
258 | } | ||
256 | LIBS += -L. | 259 | LIBS += -L. |
257 | DEFINES += STATIC | 260 | DEFINES += STATIC |
258 | message("using static plugin") | 261 | message("using static plugin") |