mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 07:24:58 -04:00
Add support for libunarr detection and move include/detection logic to unarr-wrapper.pri
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user