Update YACReader.pro to use config.pri for default build options and wrapper.pri for 7z detection

This commit is contained in:
Felix Kauselmann 2015-05-08 21:00:59 +02:00
parent 7f342f8308
commit 0b1f062e65

View File

@ -8,10 +8,8 @@ DEPENDPATH += . \
DEFINES += NOMINMAX YACREADER DEFINES += NOMINMAX YACREADER
CONFIG(no_opengl) { #load default build flags
DEFINES += NO_OPENGL include (../config.pri)
}
unix:!macx{ unix:!macx{
QMAKE_CXXFLAGS += -std=c++11 QMAKE_CXXFLAGS += -std=c++11
@ -25,7 +23,7 @@ SOURCES += main.cpp
INCLUDEPATH += ../common \ INCLUDEPATH += ../common \
../custom_widgets ../custom_widgets
CONFIG(legacy_gl_widget) { !CONFIG(no_opengl):CONFIG(legacy_gl_widget) {
INCLUDEPATH += ../common/gl_legacy \ INCLUDEPATH += ../common/gl_legacy \
} else { } else {
INCLUDEPATH += ../common/gl \ INCLUDEPATH += ../common/gl \
@ -171,10 +169,12 @@ SOURCES += ../common/comic.cpp \
} }
include(../custom_widgets/custom_widgets_yacreader.pri) include(../custom_widgets/custom_widgets_yacreader.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(../shortcuts_management/shortcuts_management.pri) include(../shortcuts_management/shortcuts_management.pri)
@ -203,25 +203,6 @@ TRANSLATIONS = yacreader_es.ts \
yacreader_de.ts \ yacreader_de.ts \
yacreader_source.ts yacreader_source.ts
!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) {