mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Update YACReaderLibrary.pro to use config.pri for default build options and wrapper.pri for 7z detection
This commit is contained in:
parent
0b1f062e65
commit
ae08d416d4
@ -15,9 +15,8 @@ INCLUDEPATH += ../common \
|
|||||||
|
|
||||||
DEFINES += SERVER_RELEASE NOMINMAX YACREADER_LIBRARY
|
DEFINES += SERVER_RELEASE NOMINMAX YACREADER_LIBRARY
|
||||||
|
|
||||||
CONFIG(no_opengl) {
|
#load default build flags
|
||||||
DEFINES += NO_OPENGL
|
include (../config.pri)
|
||||||
}
|
|
||||||
|
|
||||||
CONFIG(legacy_gl_widget) {
|
CONFIG(legacy_gl_widget) {
|
||||||
INCLUDEPATH += ../common/gl_legacy \
|
INCLUDEPATH += ../common/gl_legacy \
|
||||||
@ -217,10 +216,12 @@ SOURCES += comic_flow.cpp \
|
|||||||
|
|
||||||
include(./server/server.pri)
|
include(./server/server.pri)
|
||||||
include(../custom_widgets/custom_widgets_yacreaderlibrary.pri)
|
include(../custom_widgets/custom_widgets_yacreaderlibrary.pri)
|
||||||
!CONFIG(unarr){
|
CONFIG(7zip){
|
||||||
include(../compressed_archive/wrapper.pri)
|
include(../compressed_archive/wrapper.pri)
|
||||||
} else {
|
} else:CONFIG(unarr) {
|
||||||
include(../compressed_archive/unarr/unarr-wrapper.pri)
|
include(../compressed_archive/unarr/unarr-wrapper.pri)
|
||||||
|
} else {
|
||||||
|
error(No compression backend specified. Did you mess with the build system?)
|
||||||
}
|
}
|
||||||
|
|
||||||
include(./comic_vine/comic_vine.pri)
|
include(./comic_vine/comic_vine.pri)
|
||||||
@ -265,25 +266,6 @@ win32:RESOURCES += qml_win.qrc
|
|||||||
unix:!macx:RESOURCES += qml_win.qrc
|
unix:!macx:RESOURCES += qml_win.qrc
|
||||||
macx:RESOURCES += qml_osx.qrc
|
macx:RESOURCES += qml_osx.qrc
|
||||||
|
|
||||||
!CONFIG(unarr){
|
|
||||||
win32 {
|
|
||||||
!exists(../compressed_archive/lib7zip){
|
|
||||||
error(You\'ll need 7zip source code to compile YACReader. \
|
|
||||||
Please check the compressed_archive folder for further instructions.)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
unix {
|
|
||||||
exists (../compressed_archive/libp7zip) {
|
|
||||||
message(Found p7zip source code...)
|
|
||||||
system(patch -d ../compressed_archive -N -p0 -i libp7zip.patch)
|
|
||||||
} else {
|
|
||||||
error(You\'ll need 7zip source code to compile YACReader. \
|
|
||||||
Please check the compressed_archive folder for further instructions.)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
unix:!macx {
|
unix:!macx {
|
||||||
#set install prefix if it's empty
|
#set install prefix if it's empty
|
||||||
isEmpty(PREFIX) {
|
isEmpty(PREFIX) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user