mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Warn if Qt < 5.6 is used for compilation (minium requirement for qml components)
This commit is contained in:
parent
d1238bd22c
commit
5ae60f7bbe
33
config.pri
33
config.pri
@ -1,8 +1,8 @@
|
|||||||
#functions to automatically initialize some of YACReader's build options to
|
# functions to automatically initialize some of YACReader's build options to
|
||||||
#default values if they're not set on build time
|
# default values if they're not set on build time
|
||||||
#for a more detailed description, see INSTALL.TXT
|
# for a more detailed description, see INSTALL.TXT
|
||||||
|
|
||||||
#check Qt version
|
# check Qt version
|
||||||
QT_VERSION = $$[QT_VERSION]
|
QT_VERSION = $$[QT_VERSION]
|
||||||
QT_VERSION = $$split(QT_VERSION, ".")
|
QT_VERSION = $$split(QT_VERSION, ".")
|
||||||
QT_VER_MAJ = $$member(QT_VERSION, 0)
|
QT_VER_MAJ = $$member(QT_VERSION, 0)
|
||||||
@ -11,12 +11,16 @@ QT_VER_MIN = $$member(QT_VERSION, 1)
|
|||||||
lessThan(QT_VER_MAJ, 5) {
|
lessThan(QT_VER_MAJ, 5) {
|
||||||
error(YACReader requires Qt 5 or newer but Qt $$[QT_VERSION] was detected.)
|
error(YACReader requires Qt 5 or newer but Qt $$[QT_VERSION] was detected.)
|
||||||
}
|
}
|
||||||
lessThan(QT_VER_MIN, 4):!CONFIG(no_opengl) {
|
lessThan(QT_VER_MIN, 6) {
|
||||||
CONFIG += legacy_gl_widget
|
warning ("Qt < 5.6 detected. Compilation will probably work, but some qml based components in YACReaderLibrary (GridView, InfoView) will fail at runtime.")
|
||||||
message ("Qt < 5.4 detected. Using QGLWidget for coverflow.")
|
|
||||||
}
|
}
|
||||||
lessThan(QT_VER_MIN, 3){
|
lessThan(QT_VER_MIN, 4):!CONFIG(no_opengl) {
|
||||||
error ("You need at least Qt 5.3 to build YACReader or YACReaderLibrary")
|
CONFIG += legacy_gl_widget
|
||||||
|
warning ("Qt < 5.4 detected. Using QGLWidget for coverflow.")
|
||||||
|
warning ("QGLWidget based coverflow is scheduled for removal.")
|
||||||
|
}
|
||||||
|
lessThan(QT_VER_MIN, 3) {
|
||||||
|
error ("You need at least Qt 5.3 to compile YACReader or YACReaderLibrary.")
|
||||||
}
|
}
|
||||||
|
|
||||||
#build without opengl widget support
|
#build without opengl widget support
|
||||||
@ -24,17 +28,12 @@ CONFIG(no_opengl) {
|
|||||||
DEFINES += NO_OPENGL
|
DEFINES += NO_OPENGL
|
||||||
}
|
}
|
||||||
|
|
||||||
#default values for decompression backends
|
# default value for comic archive decompression backend
|
||||||
!CONFIG(unarr):!CONFIG(7zip) {
|
!CONFIG(unarr):!CONFIG(7zip) {
|
||||||
unix {
|
CONFIG += unarr
|
||||||
CONFIG += unarr
|
|
||||||
}
|
|
||||||
win32 {
|
|
||||||
CONFIG += unarr
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#default values for pdf render backend
|
# default values for pdf render backend
|
||||||
win32:!CONFIG(poppler):!CONFIG(pdfium):!CONFIG(no_pdf) {
|
win32:!CONFIG(poppler):!CONFIG(pdfium):!CONFIG(no_pdf) {
|
||||||
CONFIG += pdfium
|
CONFIG += pdfium
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user