From 966ab855a7f48df0113b9386240baf0ff7de82cc Mon Sep 17 00:00:00 2001 From: Felix Kauselmann <2039670+selmf@users.noreply.github.com> Date: Fri, 20 Mar 2015 23:00:30 +0100 Subject: [PATCH] add unarr option to YACReader.pro --- YACReader/YACReader.pro | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/YACReader/YACReader.pro b/YACReader/YACReader.pro index 31378ae9..77f21926 100644 --- a/YACReader/YACReader.pro +++ b/YACReader/YACReader.pro @@ -174,7 +174,11 @@ SOURCES += ../common/comic.cpp \ } include(../custom_widgets/custom_widgets_yacreader.pri) +!CONFIG(unarr){ include(../compressed_archive/wrapper.pri) +} else { +include(../compressed_archive/unarr/unarr-wrapper.pri) +} include(../shortcuts_management/shortcuts_management.pri) RESOURCES += yacreader_images.qrc \ @@ -202,7 +206,7 @@ TRANSLATIONS = yacreader_es.ts \ yacreader_de.ts \ yacreader_source.ts - +!CONFIG(unarr){ win32 { !exists (../compressed_archive/lib7zip) { error(You\'ll need 7zip source code to compile YACReader. \ @@ -219,6 +223,12 @@ exists (../compressed_archive/libp7zip) { Please check the compressed_archive folder for further instructions.) } } +} else { +exists (../compressed_archive/unarr/unarr-master) { + message(Found unarr source-code) + } +} + unix:!macx { #set install prefix if it's empty