forked from len0rd/rockbox
Update project file for Qt5 compatibility.
Qt5 splits widgets out of the QtGui to a new QtWidgets module. Change-Id: I35c6437a2e69c25b90989611a683855dfe31da80
This commit is contained in:
parent
7184980dca
commit
13c5c463d0
1 changed files with 14 additions and 6 deletions
|
|
@ -37,12 +37,14 @@ RCC_DIR = $$MYBUILDDIR/rcc
|
||||||
}
|
}
|
||||||
|
|
||||||
# check version of Qt installation
|
# check version of Qt installation
|
||||||
VER = $$find(QT_VERSION, ^4\\.[5-9]+.*)
|
!contains(QT_MAJOR_VERSION, 5) {
|
||||||
isEmpty(VER) {
|
VER = $$find(QT_VERSION, ^4\\.[5-9]+.*)
|
||||||
message("Qt >= 4.5 required!")
|
isEmpty(VER) {
|
||||||
!isEmpty(QT_VERSION) error("Qt found:" $$[QT_VERSION])
|
message("Qt >= 4.5 required!")
|
||||||
}
|
!isEmpty(QT_VERSION) error("Qt found:" $$[QT_VERSION])
|
||||||
|
}
|
||||||
message("Qt version used:" $$VER)
|
message("Qt version used:" $$VER)
|
||||||
|
}
|
||||||
|
|
||||||
MACHINEFLAGS = $$find(QMAKE_CFLAGS, -m[63][42])
|
MACHINEFLAGS = $$find(QMAKE_CFLAGS, -m[63][42])
|
||||||
|
|
||||||
|
|
@ -170,6 +172,12 @@ for(rblib, RBLIBS) {
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
TARGET = RockboxUtility
|
TARGET = RockboxUtility
|
||||||
QT += network
|
QT += network
|
||||||
|
|
||||||
|
contains(QT_MAJOR_VERSION, 5) {
|
||||||
|
message("Qt5 found")
|
||||||
|
QT += widgets
|
||||||
|
}
|
||||||
|
|
||||||
dbg {
|
dbg {
|
||||||
CONFIG += debug thread qt warn_on
|
CONFIG += debug thread qt warn_on
|
||||||
DEFINES -= QT_NO_DEBUG_OUTPUT
|
DEFINES -= QT_NO_DEBUG_OUTPUT
|
||||||
|
|
@ -229,7 +237,7 @@ macx {
|
||||||
-framework IOKit -framework CoreFoundation -framework Carbon \
|
-framework IOKit -framework CoreFoundation -framework Carbon \
|
||||||
-framework SystemConfiguration -framework CoreServices
|
-framework SystemConfiguration -framework CoreServices
|
||||||
INCLUDEPATH += /usr/local/include
|
INCLUDEPATH += /usr/local/include
|
||||||
|
|
||||||
# rule for creating a dmg file
|
# rule for creating a dmg file
|
||||||
dmg.commands = hdiutil create -ov -srcfolder rbutilqt.app/ rbutil.dmg
|
dmg.commands = hdiutil create -ov -srcfolder rbutilqt.app/ rbutil.dmg
|
||||||
QMAKE_EXTRA_TARGETS += dmg
|
QMAKE_EXTRA_TARGETS += dmg
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue