From 7f342f8308d09242f7d71e3885e9037e301063e2 Mon Sep 17 00:00:00 2001 From: Felix Kauselmann <2039670+selmf@users.noreply.github.com> Date: Fri, 8 May 2015 20:59:53 +0200 Subject: [PATCH] Handle 7zip source detection and patching in wrapper.pri --- compressed_archive/wrapper.pri | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/compressed_archive/wrapper.pri b/compressed_archive/wrapper.pri index 933a27e7..9ae4b25b 100644 --- a/compressed_archive/wrapper.pri +++ b/compressed_archive/wrapper.pri @@ -1,6 +1,23 @@ INCLUDEPATH += $$PWD DEPENDPATH += $$PWD +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 -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.) +} +} + CONFIG += precompile_header win32 {PRECOMPILED_HEADER = $$PWD/StdAfx.h}