From c256c15cddaac5d626dd602a8b8a3fb039b3ccee Mon Sep 17 00:00:00 2001 From: Sacha Date: Thu, 21 Nov 2013 22:36:02 +1000 Subject: [PATCH] Qt: zlib is already used by Qt. Only compile it for exotic Qt builds where 'no-zlib' is configured. We will need to link it manually if 'system-zlib' is configured. Otherwise we already have it. --- Qt/Native.pro | 3 +-- Qt/PPSSPP.pro | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Qt/Native.pro b/Qt/Native.pro index 9fb2290550..f4a9e0b85a 100755 --- a/Qt/Native.pro +++ b/Qt/Native.pro @@ -52,12 +52,11 @@ HEADERS += ../ext/snappy/*.h INCLUDEPATH += ../ext/snappy # Zlib -!symbian: { +win32|contains(QT_CONFIG, no-zlib) { SOURCES += ../ext/zlib/*.c HEADERS += ../ext/zlib/*.h } - # Native SOURCES += ../native/audio/*.cpp \ diff --git a/Qt/PPSSPP.pro b/Qt/PPSSPP.pro index 235810ca1d..7c49fe1ee4 100755 --- a/Qt/PPSSPP.pro +++ b/Qt/PPSSPP.pro @@ -56,8 +56,9 @@ linux { } qnx: LIBS += -lscreen symbian: LIBS += -lRemConCoreApi -lRemConInterfaceBase -# Avoids problems with some compilers -unix:!symbian: LIBS += -lz +contains(QT_CONFIG, system-zlib) { + unix: LIBS += -lz +} # Main SOURCES += ../native/base/QtMain.cpp