代码拉取完成,页面将自动刷新
include($$PWD/../../global_variable.pri)
TEMPLATE = lib
CONFIG += qt warn_on
QT -= gui
QT += core
# The ABI version.
!win32:VERSION = 1.0.0
# 1.0.0 is the first stable ABI.
# The next binary incompatible change will be 2.0.0 and so on.
# The existing QuaZIP policy on changing ABI requires to bump the
# major version of QuaZIP itself as well. Note that there may be
# other reasons for chaging the major version of QuaZIP, so
# in case where there is a QuaZIP major version bump but no ABI change,
# the VERSION variable will stay the same.
# For example:
# QuaZIP 1.0 is released after some 0.x, keeping binary compatibility.
# VERSION stays 1.0.0.
# Then some binary incompatible change is introduced. QuaZIP goes up to
# 2.0, VERSION to 2.0.0.
# And so on.
# This one handles dllimport/dllexport directives.
DEFINES += QUAZIP_BUILD
# You'll need to define this one manually if using a build system other
# than qmake or using QuaZIP sources directly in your project.
CONFIG(staticlib): DEFINES += QUAZIP_STATIC
# Input
include(quazip.pri)
contains(COMPILATION_METHOD, yxz) {
# 编译输出
TARGET_DIR = $$PWD/../../third_libs/$$TARGET
DESTDIR = $$TARGET_DIR/$$ARCH_PATH/$$QT_VERSION_PATH/$$BUILD_TYPE
# 构造完成后,复制头文件到指定目录的命令,适用于Unix和Windows系统
win32 {
# Windows系统下的命令
QMAKE_POST_LINK += xcopy \"$$replace(PWD, /, \\)\\*.h\" \"$$replace(TARGET_DIR, /, \\)\\include\\\" /s /h /o /k /y
} else {
# Unix系统(包括Linux和macOS)下的命令
QMAKE_POST_LINK += mkdir -p $$TARGET_DIR/include && \
find $$PWD -type f -name "*.h" -exec cp {} $$TARGET_DIR \;
}
}
CONFIG(debug, debug|release) {
mac: TARGET = $$join(TARGET,,,_debug)
win32: TARGET = $$join(TARGET,,,d)
}
unix:!symbian {
headers.path=$$PREFIX/include/quazip
headers.files=$$HEADERS
target.path=$$PREFIX/lib/$${LIB_ARCH}
INSTALLS += headers target
OBJECTS_DIR=.obj
MOC_DIR=.moc
}
win32 {
headers.path=$$PREFIX/include/quazip
headers.files=$$HEADERS
target.path=$$PREFIX/lib
INSTALLS += headers target
# workaround for qdatetime.h macro bug
DEFINES += NOMINMAX
}
symbian {
# Note, on Symbian you may run into troubles with LGPL.
# The point is, if your application uses some version of QuaZip,
# and a newer binary compatible version of QuaZip is released, then
# the users of your application must be able to relink it with the
# new QuaZip version. For example, to take advantage of some QuaZip
# bug fixes.
# This is probably best achieved by building QuaZip as a static
# library and providing linkable object files of your application,
# so users can relink it.
CONFIG += staticlib
CONFIG += debug_and_release
LIBS += -lezip
#Export headers to SDK Epoc32/include directory
exportheaders.sources = $$HEADERS
exportheaders.path = quazip
for(header, exportheaders.sources) {
BLD_INF_RULES.prj_exports += "$$header $$exportheaders.path/$$basename(header)"
}
}
HEADERS += \
crc32.h \
deflate.h \
gzguts.h \
inffast.h \
inffixed.h \
inflate.h \
inftrees.h \
trees.h \
zconf.h \
zlib.h \
zutil.h
SOURCES += \
adler32.c \
compress.c \
crc32.c \
deflate.c \
gzclose.c \
gzlib.c \
gzread.c \
gzwrite.c \
infback.c \
inffast.c \
inflate.c \
inftrees.c \
trees.c \
uncompr.c \
zutil.c
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。