mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
44 lines
998 B
Prolog
44 lines
998 B
Prolog
TEMPLATE = app
|
|
CONFIG += console
|
|
|
|
SOURCES += \
|
|
main.cpp \
|
|
|
|
QT += core
|
|
|
|
win32 {
|
|
LIBS += -loleaut32 -lole32
|
|
QMAKE_CXXFLAGS_RELEASE += /MP /Ob2 /Oi /Ot /GT
|
|
QMAKE_LFLAGS_RELEASE += /LTCG
|
|
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 {
|
|
include(../../compressed_archive/unarr/unarr-wrapper.pri)
|
|
}
|
|
|
|
|
|
|