Remove unnecessary top level 'quazip' dir
This commit is contained in:
parent
d06811b8f9
commit
3434f2dee3
82 changed files with 254 additions and 254 deletions
63
CMakeLists.txt
Normal file
63
CMakeLists.txt
Normal file
|
@ -0,0 +1,63 @@
|
|||
project(QuaZip)
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
# CMP0042: Explicitly acknowledge MACOSX_RPATH
|
||||
# (introduced in CMake 2.8.12, enabled by default in CMake 3.0,
|
||||
# and producing a warning when unset since 3.7.1)
|
||||
cmake_policy(SET CMP0042 NEW)
|
||||
|
||||
option(BUILD_WITH_QT4 "Build QuaZip with Qt4 no matter if Qt5 was found" OFF)
|
||||
|
||||
if( NOT BUILD_WITH_QT4 )
|
||||
# try Qt5 first, and prefer that if found
|
||||
find_package(Qt5Core QUIET)
|
||||
endif()
|
||||
|
||||
if(Qt5Core_FOUND)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(QTCORE_LIBRARIES ${Qt5Core_LIBRARIES})
|
||||
set(QUAZIP_LIB_VERSION_SUFFIX 5)
|
||||
# if there is no QT_ROOT, try to deduce it from Qt QtCore include
|
||||
if("${QT_ROOT}" STREQUAL "")
|
||||
set(QT_ROOT ${QT_QTCORE_INCLUDE_DIR}/../..)
|
||||
endif()
|
||||
include_directories(${Qt5Core_INCLUDE_DIRS})
|
||||
|
||||
macro(qt_wrap_cpp)
|
||||
qt5_wrap_cpp(${ARGN})
|
||||
endmacro()
|
||||
else()
|
||||
set(qt_min_version "4.5.0")
|
||||
find_package(Qt4 REQUIRED)
|
||||
set(QT_USE_QTGUI false)
|
||||
include(${QT_USE_FILE})
|
||||
include_directories(${QT_INCLUDES})
|
||||
set(QTCORE_LIBRARIES ${QT_QTCORE_LIBRARY})
|
||||
|
||||
macro(qt_wrap_cpp)
|
||||
qt4_wrap_cpp(${ARGN})
|
||||
endmacro()
|
||||
endif()
|
||||
|
||||
# Use system zlib on unix and Qt ZLIB on Windows
|
||||
if(UNIX OR MINGW)
|
||||
find_package(ZLIB REQUIRED)
|
||||
else(UNIX OR MINGW)
|
||||
set(ZLIB_INCLUDE_DIRS "${QT_ROOT}/src/3rdparty/zlib" CACHE STRING "Path to ZLIB headers of Qt")
|
||||
set(ZLIB_LIBRARIES "")
|
||||
if(NOT EXISTS "${ZLIB_INCLUDE_DIRS}/zlib.h")
|
||||
message("Please specify a valid zlib include dir")
|
||||
endif(NOT EXISTS "${ZLIB_INCLUDE_DIRS}/zlib.h")
|
||||
endif(UNIX OR MINGW)
|
||||
|
||||
# All build libraries are moved to this directory
|
||||
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
|
||||
|
||||
set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)")
|
||||
set(LIB_DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE STRING "Library directory name" FORCE)
|
||||
set(QUAZIP_LIB_TARGET_NAME quazip${QUAZIP_LIB_VERSION_SUFFIX} CACHE
|
||||
INTERNAL "Target name of libquazip" FORCE)
|
||||
|
||||
add_subdirectory(quazip)
|
||||
|
||||
install(FILES FindQuaZip.cmake RENAME FindQuaZip${QUAZIP_LIB_VERSION_SUFFIX}.cmake DESTINATION ${CMAKE_ROOT}/Modules)
|
3
quazip.pri
Normal file
3
quazip.pri
Normal file
|
@ -0,0 +1,3 @@
|
|||
INCLUDEPATH+=$$PWD
|
||||
DEPENDPATH+=$$PWD/quazip
|
||||
include($$PWD/quazip/quazip.pri)
|
3
quazip.pro
Normal file
3
quazip.pro
Normal file
|
@ -0,0 +1,3 @@
|
|||
TEMPLATE=subdirs
|
||||
SUBDIRS=quazip qztest
|
||||
qztest.depends = quazip
|
37
quazip.sln
Normal file
37
quazip.sln
Normal file
|
@ -0,0 +1,37 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.40629.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "quazip", "quazip\quazip.vcxproj", "{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "qztest", "qztest\qztest.vcxproj", "{7632B767-D089-4F15-8B1E-C4B3F9EBF592}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Debug|x64 = Debug|x64
|
||||
Release|Win32 = Release|Win32
|
||||
Release|x64 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Debug|x64.Build.0 = Debug|x64
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Release|Win32.Build.0 = Release|Win32
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Release|x64.ActiveCfg = Release|x64
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Release|x64.Build.0 = Release|x64
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Debug|x64.ActiveCfg = Debug|Win32
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Release|Win32.Build.0 = Release|Win32
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Release|x64.ActiveCfg = Release|x64
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Release|x64.Build.0 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -1,63 +1,31 @@
|
|||
project(QuaZip)
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
# set all include directories for in and out of source builds
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${ZLIB_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
# CMP0042: Explicitly acknowledge MACOSX_RPATH
|
||||
# (introduced in CMake 2.8.12, enabled by default in CMake 3.0,
|
||||
# and producing a warning when unset since 3.7.1)
|
||||
cmake_policy(SET CMP0042 NEW)
|
||||
file(GLOB SRCS "*.c" "*.cpp")
|
||||
file(GLOB PUBLIC_HEADERS "*.h")
|
||||
|
||||
option(BUILD_WITH_QT4 "Build QuaZip with Qt4 no matter if Qt5 was found" OFF)
|
||||
# Must be added to enable export macro
|
||||
ADD_DEFINITIONS(-DQUAZIP_BUILD)
|
||||
|
||||
if( NOT BUILD_WITH_QT4 )
|
||||
# try Qt5 first, and prefer that if found
|
||||
find_package(Qt5Core QUIET)
|
||||
qt_wrap_cpp(MOC_SRCS ${PUBLIC_HEADERS})
|
||||
set(SRCS ${SRCS} ${MOC_SRCS})
|
||||
|
||||
add_library(${QUAZIP_LIB_TARGET_NAME} SHARED ${SRCS})
|
||||
add_library(quazip_static STATIC ${SRCS})
|
||||
|
||||
# Windows uses .lib extension for both static and shared library
|
||||
# *nix systems use different extensions for SHARED and STATIC library and by convention both libraries have the same name
|
||||
if (NOT WIN32)
|
||||
set_target_properties(quazip_static PROPERTIES OUTPUT_NAME quazip${QUAZIP_LIB_VERSION_SUFFIX})
|
||||
endif ()
|
||||
|
||||
if(Qt5Core_FOUND)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(QTCORE_LIBRARIES ${Qt5Core_LIBRARIES})
|
||||
set(QUAZIP_LIB_VERSION_SUFFIX 5)
|
||||
# if there is no QT_ROOT, try to deduce it from Qt QtCore include
|
||||
if("${QT_ROOT}" STREQUAL "")
|
||||
set(QT_ROOT ${QT_QTCORE_INCLUDE_DIR}/../..)
|
||||
endif()
|
||||
include_directories(${Qt5Core_INCLUDE_DIRS})
|
||||
set_target_properties(${QUAZIP_LIB_TARGET_NAME} quazip_static PROPERTIES VERSION 1.0.0 SOVERSION 1 DEBUG_POSTFIX d)
|
||||
# Link against ZLIB_LIBRARIES if needed (on Windows this variable is empty)
|
||||
target_link_libraries(${QUAZIP_LIB_TARGET_NAME} quazip_static ${QT_QTMAIN_LIBRARY} ${QTCORE_LIBRARIES} ${ZLIB_LIBRARIES})
|
||||
|
||||
macro(qt_wrap_cpp)
|
||||
qt5_wrap_cpp(${ARGN})
|
||||
endmacro()
|
||||
else()
|
||||
set(qt_min_version "4.5.0")
|
||||
find_package(Qt4 REQUIRED)
|
||||
set(QT_USE_QTGUI false)
|
||||
include(${QT_USE_FILE})
|
||||
include_directories(${QT_INCLUDES})
|
||||
set(QTCORE_LIBRARIES ${QT_QTCORE_LIBRARY})
|
||||
|
||||
macro(qt_wrap_cpp)
|
||||
qt4_wrap_cpp(${ARGN})
|
||||
endmacro()
|
||||
endif()
|
||||
|
||||
# Use system zlib on unix and Qt ZLIB on Windows
|
||||
if(UNIX OR MINGW)
|
||||
find_package(ZLIB REQUIRED)
|
||||
else(UNIX OR MINGW)
|
||||
set(ZLIB_INCLUDE_DIRS "${QT_ROOT}/src/3rdparty/zlib" CACHE STRING "Path to ZLIB headers of Qt")
|
||||
set(ZLIB_LIBRARIES "")
|
||||
if(NOT EXISTS "${ZLIB_INCLUDE_DIRS}/zlib.h")
|
||||
message("Please specify a valid zlib include dir")
|
||||
endif(NOT EXISTS "${ZLIB_INCLUDE_DIRS}/zlib.h")
|
||||
endif(UNIX OR MINGW)
|
||||
|
||||
# All build libraries are moved to this directory
|
||||
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
|
||||
|
||||
set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)")
|
||||
set(LIB_DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE STRING "Library directory name" FORCE)
|
||||
set(QUAZIP_LIB_TARGET_NAME quazip${QUAZIP_LIB_VERSION_SUFFIX} CACHE
|
||||
INTERNAL "Target name of libquazip" FORCE)
|
||||
|
||||
add_subdirectory(quazip)
|
||||
|
||||
install(FILES FindQuaZip.cmake RENAME FindQuaZip${QUAZIP_LIB_VERSION_SUFFIX}.cmake DESTINATION ${CMAKE_ROOT}/Modules)
|
||||
install(FILES ${PUBLIC_HEADERS} DESTINATION include/quazip${QUAZIP_LIB_VERSION_SUFFIX})
|
||||
install(TARGETS ${QUAZIP_LIB_TARGET_NAME} quazip_static LIBRARY DESTINATION ${LIB_DESTINATION} ARCHIVE DESTINATION ${LIB_DESTINATION} RUNTIME DESTINATION ${LIB_DESTINATION})
|
||||
|
|
|
@ -1,3 +1,33 @@
|
|||
INCLUDEPATH += $$PWD
|
||||
DEPENDPATH+=$$PWD/quazip
|
||||
include($$PWD/quazip/quazip.pri)
|
||||
DEPENDPATH += $$PWD
|
||||
HEADERS += \
|
||||
$$PWD/crypt.h \
|
||||
$$PWD/ioapi.h \
|
||||
$$PWD/JlCompress.h \
|
||||
$$PWD/quaadler32.h \
|
||||
$$PWD/quachecksum32.h \
|
||||
$$PWD/quacrc32.h \
|
||||
$$PWD/quagzipfile.h \
|
||||
$$PWD/quaziodevice.h \
|
||||
$$PWD/quazipdir.h \
|
||||
$$PWD/quazipfile.h \
|
||||
$$PWD/quazipfileinfo.h \
|
||||
$$PWD/quazip_global.h \
|
||||
$$PWD/quazip.h \
|
||||
$$PWD/quazipnewinfo.h \
|
||||
$$PWD/unzip.h \
|
||||
$$PWD/zip.h
|
||||
|
||||
SOURCES += $$PWD/qioapi.cpp \
|
||||
$$PWD/JlCompress.cpp \
|
||||
$$PWD/quaadler32.cpp \
|
||||
$$PWD/quacrc32.cpp \
|
||||
$$PWD/quagzipfile.cpp \
|
||||
$$PWD/quaziodevice.cpp \
|
||||
$$PWD/quazip.cpp \
|
||||
$$PWD/quazipdir.cpp \
|
||||
$$PWD/quazipfile.cpp \
|
||||
$$PWD/quazipfileinfo.cpp \
|
||||
$$PWD/quazipnewinfo.cpp \
|
||||
$$PWD/unzip.c \
|
||||
$$PWD/zip.c
|
||||
|
|
|
@ -1,3 +1,87 @@
|
|||
TEMPLATE=subdirs
|
||||
SUBDIRS=quazip qztest
|
||||
qztest.depends = quazip
|
||||
TEMPLATE = lib
|
||||
CONFIG += qt warn_on
|
||||
QT -= gui
|
||||
|
||||
# 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)
|
||||
|
||||
|
||||
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)"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,35 +1,18 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.40629.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "quazip", "quazip\quazip.vcxproj", "{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "qztest", "qztest\qztest.vcxproj", "{7632B767-D089-4F15-8B1E-C4B3F9EBF592}"
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual C++ Express 2008
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "quazip", "quazip.vcproj", "{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Debug|x64 = Debug|x64
|
||||
Release|Win32 = Release|Win32
|
||||
Release|x64 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Debug|x64.Build.0 = Debug|x64
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Release|Win32.Build.0 = Release|Win32
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Release|x64.ActiveCfg = Release|x64
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Release|x64.Build.0 = Release|x64
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Debug|x64.ActiveCfg = Debug|Win32
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Release|Win32.Build.0 = Release|Win32
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Release|x64.ActiveCfg = Release|x64
|
||||
{7632B767-D089-4F15-8B1E-C4B3F9EBF592}.Release|x64.Build.0 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
# set all include directories for in and out of source builds
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${ZLIB_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
file(GLOB SRCS "*.c" "*.cpp")
|
||||
file(GLOB PUBLIC_HEADERS "*.h")
|
||||
|
||||
# Must be added to enable export macro
|
||||
ADD_DEFINITIONS(-DQUAZIP_BUILD)
|
||||
|
||||
qt_wrap_cpp(MOC_SRCS ${PUBLIC_HEADERS})
|
||||
set(SRCS ${SRCS} ${MOC_SRCS})
|
||||
|
||||
add_library(${QUAZIP_LIB_TARGET_NAME} SHARED ${SRCS})
|
||||
add_library(quazip_static STATIC ${SRCS})
|
||||
|
||||
# Windows uses .lib extension for both static and shared library
|
||||
# *nix systems use different extensions for SHARED and STATIC library and by convention both libraries have the same name
|
||||
if (NOT WIN32)
|
||||
set_target_properties(quazip_static PROPERTIES OUTPUT_NAME quazip${QUAZIP_LIB_VERSION_SUFFIX})
|
||||
endif ()
|
||||
|
||||
set_target_properties(${QUAZIP_LIB_TARGET_NAME} quazip_static PROPERTIES VERSION 1.0.0 SOVERSION 1 DEBUG_POSTFIX d)
|
||||
# Link against ZLIB_LIBRARIES if needed (on Windows this variable is empty)
|
||||
target_link_libraries(${QUAZIP_LIB_TARGET_NAME} quazip_static ${QT_QTMAIN_LIBRARY} ${QTCORE_LIBRARIES} ${ZLIB_LIBRARIES})
|
||||
|
||||
install(FILES ${PUBLIC_HEADERS} DESTINATION include/quazip${QUAZIP_LIB_VERSION_SUFFIX})
|
||||
install(TARGETS ${QUAZIP_LIB_TARGET_NAME} quazip_static LIBRARY DESTINATION ${LIB_DESTINATION} ARCHIVE DESTINATION ${LIB_DESTINATION} RUNTIME DESTINATION ${LIB_DESTINATION})
|
|
@ -1,33 +0,0 @@
|
|||
INCLUDEPATH += $$PWD
|
||||
DEPENDPATH += $$PWD
|
||||
HEADERS += \
|
||||
$$PWD/crypt.h \
|
||||
$$PWD/ioapi.h \
|
||||
$$PWD/JlCompress.h \
|
||||
$$PWD/quaadler32.h \
|
||||
$$PWD/quachecksum32.h \
|
||||
$$PWD/quacrc32.h \
|
||||
$$PWD/quagzipfile.h \
|
||||
$$PWD/quaziodevice.h \
|
||||
$$PWD/quazipdir.h \
|
||||
$$PWD/quazipfile.h \
|
||||
$$PWD/quazipfileinfo.h \
|
||||
$$PWD/quazip_global.h \
|
||||
$$PWD/quazip.h \
|
||||
$$PWD/quazipnewinfo.h \
|
||||
$$PWD/unzip.h \
|
||||
$$PWD/zip.h
|
||||
|
||||
SOURCES += $$PWD/qioapi.cpp \
|
||||
$$PWD/JlCompress.cpp \
|
||||
$$PWD/quaadler32.cpp \
|
||||
$$PWD/quacrc32.cpp \
|
||||
$$PWD/quagzipfile.cpp \
|
||||
$$PWD/quaziodevice.cpp \
|
||||
$$PWD/quazip.cpp \
|
||||
$$PWD/quazipdir.cpp \
|
||||
$$PWD/quazipfile.cpp \
|
||||
$$PWD/quazipfileinfo.cpp \
|
||||
$$PWD/quazipnewinfo.cpp \
|
||||
$$PWD/unzip.c \
|
||||
$$PWD/zip.c
|
|
@ -1,87 +0,0 @@
|
|||
TEMPLATE = lib
|
||||
CONFIG += qt warn_on
|
||||
QT -= gui
|
||||
|
||||
# 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)
|
||||
|
||||
|
||||
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)"
|
||||
}
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual C++ Express 2008
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "quazip", "quazip.vcproj", "{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{E4AC5F56-B711-4F0E-BC83-CDE8B6CD53AD}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
Loading…
Reference in a new issue