Add support for libunarr detection and move include/detection logic to unarr-wrapper.pri

This commit is contained in:
Felix Kauselmann
2015-04-29 13:12:22 +02:00
parent c4ddd42cd6
commit 9dc0d85c2d
4 changed files with 24 additions and 35 deletions

View File

@ -13,26 +13,6 @@ win32 {
CONFIG -= embed_manifest_exe
}
unix {
#these flags are probably redundant
#qmake tends to chose it's own flags and ignores system wide flags on unix
QMAKE_CXXFLAGS+= -std=c++11 -O2 -pipe -Wall -fomit-frame-pointer
QMAKE_CFLAGS+= -O2 -pipe -Wall -fomit-frame-pointer
#this might need a little tweaking on mac os
!CONFIG(unarr){
DEFINES += "LIBDIR=\\\"$$/usr/lib\\\""
}
else{
#make unarr use system zlib and bzip2
#these are pretty much standard on unix
DEFINES += HAVE_ZLIB HAVE_BZIP2 NDEBUG
#add zlib and bz2 to libs
#we also need libm for mathematics
LIBS += -lbz2 -lz -lm
}
}
!CONFIG(unarr){
include(../../compressed_archive/wrapper.pri)
} else {