Skip to content

Commit

Permalink
Drop Qt4 related settings from QMake project
Browse files Browse the repository at this point in the history
  • Loading branch information
glassez committed Apr 26, 2017
1 parent e433cba commit d5d946d
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 20 deletions.
3 changes: 0 additions & 3 deletions macxconf.pri
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ exists($$OUT_PWD/../conf.pri) {

LIBS += -framework Carbon -framework IOKit

# C++11 support
lessThan(QT_MAJOR_VERSION, 5): QMAKE_CXXFLAGS += -std=c++11

QT_LANG_PATH = ../dist/qt-translations
DIST_PATH = ../dist/mac

Expand Down
3 changes: 0 additions & 3 deletions os2conf.pri
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# C++11 support
lessThan(QT_MAJOR_VERSION, 5): QMAKE_CXXFLAGS += -std=c++11

exists(conf.pri) {
# to the conf.pri goes all system dependent stuff
include(conf.pri)
Expand Down
5 changes: 1 addition & 4 deletions qm_gen.pri
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
TS_IN = $$fromfile(src/src.pro,TRANSLATIONS)
TS_IN_NOEXT = $$replace(TS_IN,".ts","")

isEmpty(QMAKE_LRELEASE) {
win32|os2:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
unix {
equals(QT_MAJOR_VERSION, 4) {
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease-qt4 }
}
equals(QT_MAJOR_VERSION, 5) {
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease-qt5 }
}
Expand Down
5 changes: 1 addition & 4 deletions src/src.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ CONFIG += qt thread silent
CONFIG += c++11
DEFINES += BOOST_NO_CXX11_RVALUE_REFERENCES

lessThan(QT_MAJOR_VERSION, 5): DEFINES += QStringLiteral=QLatin1String

# Windows specific configuration
win32: include(../winconf.pri)

Expand All @@ -25,8 +23,7 @@ nogui {
DEFINES += DISABLE_GUI
TARGET = qbittorrent-nox
} else {
QT += xml
greaterThan(QT_MAJOR_VERSION, 4): QT += concurrent widgets
QT += xml concurrent widgets
CONFIG(static) {
DEFINES += QBT_STATIC_QT
QTPLUGIN += qico
Expand Down
3 changes: 0 additions & 3 deletions unixconf.pri
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ exists($$OUT_PWD/../conf.pri) {
include(conf.pri)
}

# C++11 support
lessThan(QT_MAJOR_VERSION, 5): QMAKE_CXXFLAGS += -std=c++11

# COMPILATION SPECIFIC
!nogui:dbus: QT += dbus

Expand Down
3 changes: 0 additions & 3 deletions winconf-mingw.pri
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# C++11 support
lessThan(QT_MAJOR_VERSION, 5): QMAKE_CXXFLAGS += -std=gnu++11

strace_win{
contains(QMAKE_HOST.arch, x86) {
# i686 arch requires frame pointer preservation
Expand Down

0 comments on commit d5d946d

Please sign in to comment.