3rdparty: Add libzip

This commit is contained in:
Connor McLaughlin 2022-04-11 22:15:01 +10:00 committed by refractionpcsx2
parent 0914b2a474
commit 9aa2c52b20
11 changed files with 572 additions and 13 deletions

3
.gitmodules vendored
View File

@ -33,3 +33,6 @@
[submodule "3rdparty/sdl2/SDL"] [submodule "3rdparty/sdl2/SDL"]
path = 3rdparty/sdl2/SDL path = 3rdparty/sdl2/SDL
url = https://github.com/libsdl-org/SDL.git url = https://github.com/libsdl-org/SDL.git
[submodule "3rdparty/libzip/libzip"]
path = 3rdparty/libzip/libzip
url = https://github.com/nih-at/libzip.git

24
3rdparty/libzip/CMakeLists.txt vendored Normal file
View File

@ -0,0 +1,24 @@
set(BUILD_SHARED_LIBS OFF CACHE BOOL "")
set(LIBZIP_DO_INSTALL OFF CACHE BOOL "")
set(ENABLE_COMMONCRYPTO OFF CACHE BOOL "")
set(ENABLE_GNUTLS OFF CACHE BOOL "")
set(ENABLE_MBEDTLS OFF CACHE BOOL "")
set(ENABLE_WINDOWS_CRYPTO OFF CACHE BOOL "")
set(ENABLE_BZIP2 OFF CACHE BOOL "")
set(ENABLE_LZMA OFF CACHE BOOL "")
set(ENABLE_ZSTD OFF CACHE BOOL "")
set(BUILD_TOOLS OFF CACHE BOOL "")
set(BUILD_REGRESS OFF CACHE BOOL "")
set(BUILD_EXAMPLES OFF CACHE BOOL "")
set(BUILD_DOC OFF CACHE BOOL "")
if(WIN32)
# Needed otherwise find_package() will look in the system.
set(ZLIB_FOUND TRUE)
set(ZLIB_LIBRARY "$<TARGET_FILE:pcsx2-zlib>")
set(ZLIB_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/zlib")
endif()
add_subdirectory(libzip EXCLUDE_FROM_ALL)

1
3rdparty/libzip/libzip vendored Submodule

@ -0,0 +1 @@
Subproject commit bdc03ab23b703fcc516436d6ebcbfb6ac4484033

173
3rdparty/libzip/libzip.vcxproj vendored Normal file
View File

@ -0,0 +1,173 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(SolutionDir)common\vsprops\BaseProjectConfig.props" />
<Import Project="$(SolutionDir)common\vsprops\WinSDK.props" />
<PropertyGroup Label="Globals">
<ProjectGuid>{20B2E9FE-F020-42A0-B324-956F5B06EA68}</ProjectGuid>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
<WholeProgramOptimization Condition="$(Configuration.Contains(Release))">true</WholeProgramOptimization>
<UseDebugLibraries Condition="$(Configuration.Contains(Debug))">true</UseDebugLibraries>
<UseDebugLibraries Condition="!$(Configuration.Contains(Debug))">false</UseDebugLibraries>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings" />
<ImportGroup Label="PropertySheets">
<Import Project="..\DefaultProjectRootDir.props" />
<Import Project="..\3rdparty.props" />
<Import Condition="$(Configuration.Contains(Debug))" Project="..\..\common\vsprops\CodeGen_Debug.props" />
<Import Condition="$(Configuration.Contains(Devel))" Project="..\..\common\vsprops\CodeGen_Devel.props" />
<Import Condition="$(Configuration.Contains(Release))" Project="..\..\common\vsprops\CodeGen_Release.props" />
<Import Condition="!$(Configuration.Contains(Release))" Project="..\..\common\vsprops\IncrementalLinking.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<ClCompile Include="libzip\lib\zip_add.c" />
<ClCompile Include="libzip\lib\zip_add_dir.c" />
<ClCompile Include="libzip\lib\zip_add_entry.c" />
<ClCompile Include="libzip\lib\zip_algorithm_deflate.c" />
<ClCompile Include="libzip\lib\zip_buffer.c" />
<ClCompile Include="libzip\lib\zip_close.c" />
<ClCompile Include="libzip\lib\zip_crypto_win.c" />
<ClCompile Include="libzip\lib\zip_delete.c" />
<ClCompile Include="libzip\lib\zip_dirent.c" />
<ClCompile Include="libzip\lib\zip_dir_add.c" />
<ClCompile Include="libzip\lib\zip_discard.c" />
<ClCompile Include="libzip\lib\zip_entry.c" />
<ClCompile Include="libzip\lib\zip_error.c" />
<ClCompile Include="libzip\lib\zip_error_clear.c" />
<ClCompile Include="libzip\lib\zip_error_get.c" />
<ClCompile Include="libzip\lib\zip_error_get_sys_type.c" />
<ClCompile Include="libzip\lib\zip_error_strerror.c" />
<ClCompile Include="libzip\lib\zip_error_to_str.c" />
<ClCompile Include="libzip\lib\zip_extra_field.c" />
<ClCompile Include="libzip\lib\zip_extra_field_api.c" />
<ClCompile Include="libzip\lib\zip_fclose.c" />
<ClCompile Include="libzip\lib\zip_fdopen.c" />
<ClCompile Include="libzip\lib\zip_file_add.c" />
<ClCompile Include="libzip\lib\zip_file_error_clear.c" />
<ClCompile Include="libzip\lib\zip_file_error_get.c" />
<ClCompile Include="libzip\lib\zip_file_get_comment.c" />
<ClCompile Include="libzip\lib\zip_file_get_external_attributes.c" />
<ClCompile Include="libzip\lib\zip_file_get_offset.c" />
<ClCompile Include="libzip\lib\zip_file_rename.c" />
<ClCompile Include="libzip\lib\zip_file_replace.c" />
<ClCompile Include="libzip\lib\zip_file_set_comment.c" />
<ClCompile Include="libzip\lib\zip_file_set_encryption.c" />
<ClCompile Include="libzip\lib\zip_file_set_external_attributes.c" />
<ClCompile Include="libzip\lib\zip_file_set_mtime.c" />
<ClCompile Include="libzip\lib\zip_file_strerror.c" />
<ClCompile Include="libzip\lib\zip_fopen.c" />
<ClCompile Include="libzip\lib\zip_fopen_encrypted.c" />
<ClCompile Include="libzip\lib\zip_fopen_index.c" />
<ClCompile Include="libzip\lib\zip_fopen_index_encrypted.c" />
<ClCompile Include="libzip\lib\zip_fread.c" />
<ClCompile Include="libzip\lib\zip_fseek.c" />
<ClCompile Include="libzip\lib\zip_ftell.c" />
<ClCompile Include="libzip\lib\zip_get_archive_comment.c" />
<ClCompile Include="libzip\lib\zip_get_archive_flag.c" />
<ClCompile Include="libzip\lib\zip_get_encryption_implementation.c" />
<ClCompile Include="libzip\lib\zip_get_file_comment.c" />
<ClCompile Include="libzip\lib\zip_get_name.c" />
<ClCompile Include="libzip\lib\zip_get_num_entries.c" />
<ClCompile Include="libzip\lib\zip_get_num_files.c" />
<ClCompile Include="libzip\lib\zip_hash.c" />
<ClCompile Include="libzip\lib\zip_io_util.c" />
<ClCompile Include="libzip\lib\zip_libzip_version.c" />
<ClCompile Include="libzip\lib\zip_memdup.c" />
<ClCompile Include="libzip\lib\zip_name_locate.c" />
<ClCompile Include="libzip\lib\zip_new.c" />
<ClCompile Include="libzip\lib\zip_open.c" />
<ClCompile Include="libzip\lib\zip_pkware.c" />
<ClCompile Include="libzip\lib\zip_progress.c" />
<ClCompile Include="libzip\lib\zip_random_win32.c" />
<ClCompile Include="libzip\lib\zip_rename.c" />
<ClCompile Include="libzip\lib\zip_replace.c" />
<ClCompile Include="libzip\lib\zip_set_archive_comment.c" />
<ClCompile Include="libzip\lib\zip_set_archive_flag.c" />
<ClCompile Include="libzip\lib\zip_set_default_password.c" />
<ClCompile Include="libzip\lib\zip_set_file_comment.c" />
<ClCompile Include="libzip\lib\zip_set_file_compression.c" />
<ClCompile Include="libzip\lib\zip_set_name.c" />
<ClCompile Include="libzip\lib\zip_source_accept_empty.c" />
<ClCompile Include="libzip\lib\zip_source_begin_write.c" />
<ClCompile Include="libzip\lib\zip_source_begin_write_cloning.c" />
<ClCompile Include="libzip\lib\zip_source_buffer.c" />
<ClCompile Include="libzip\lib\zip_source_call.c" />
<ClCompile Include="libzip\lib\zip_source_close.c" />
<ClCompile Include="libzip\lib\zip_source_commit_write.c" />
<ClCompile Include="libzip\lib\zip_source_compress.c" />
<ClCompile Include="libzip\lib\zip_source_crc.c" />
<ClCompile Include="libzip\lib\zip_source_error.c" />
<ClCompile Include="libzip\lib\zip_source_file_common.c" />
<ClCompile Include="libzip\lib\zip_source_file_stdio.c" />
<ClCompile Include="libzip\lib\zip_source_file_win32.c" />
<ClCompile Include="libzip\lib\zip_source_file_win32_ansi.c" />
<ClCompile Include="libzip\lib\zip_source_file_win32_named.c" />
<ClCompile Include="libzip\lib\zip_source_file_win32_utf16.c" />
<ClCompile Include="libzip\lib\zip_source_file_win32_utf8.c" />
<ClCompile Include="libzip\lib\zip_source_free.c" />
<ClCompile Include="libzip\lib\zip_source_function.c" />
<ClCompile Include="libzip\lib\zip_source_get_file_attributes.c" />
<ClCompile Include="libzip\lib\zip_source_is_deleted.c" />
<ClCompile Include="libzip\lib\zip_source_layered.c" />
<ClCompile Include="libzip\lib\zip_source_open.c" />
<ClCompile Include="libzip\lib\zip_source_pkware_decode.c" />
<ClCompile Include="libzip\lib\zip_source_pkware_encode.c" />
<ClCompile Include="libzip\lib\zip_source_read.c" />
<ClCompile Include="libzip\lib\zip_source_remove.c" />
<ClCompile Include="libzip\lib\zip_source_rollback_write.c" />
<ClCompile Include="libzip\lib\zip_source_seek.c" />
<ClCompile Include="libzip\lib\zip_source_seek_write.c" />
<ClCompile Include="libzip\lib\zip_source_stat.c" />
<ClCompile Include="libzip\lib\zip_source_supports.c" />
<ClCompile Include="libzip\lib\zip_source_tell.c" />
<ClCompile Include="libzip\lib\zip_source_tell_write.c" />
<ClCompile Include="libzip\lib\zip_source_window.c" />
<ClCompile Include="libzip\lib\zip_source_winzip_aes_decode.c" />
<ClCompile Include="libzip\lib\zip_source_winzip_aes_encode.c" />
<ClCompile Include="libzip\lib\zip_source_write.c" />
<ClCompile Include="libzip\lib\zip_source_zip.c" />
<ClCompile Include="libzip\lib\zip_source_zip_new.c" />
<ClCompile Include="libzip\lib\zip_stat.c" />
<ClCompile Include="libzip\lib\zip_stat_index.c" />
<ClCompile Include="libzip\lib\zip_stat_init.c" />
<ClCompile Include="libzip\lib\zip_strerror.c" />
<ClCompile Include="libzip\lib\zip_string.c" />
<ClCompile Include="libzip\lib\zip_unchange.c" />
<ClCompile Include="libzip\lib\zip_unchange_all.c" />
<ClCompile Include="libzip\lib\zip_unchange_archive.c" />
<ClCompile Include="libzip\lib\zip_unchange_data.c" />
<ClCompile Include="libzip\lib\zip_utf-8.c" />
<ClCompile Include="libzip\lib\zip_winzip_aes.c" />
<ClCompile Include="private\zip_err_str.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="libzip\lib\compat.h" />
<ClInclude Include="libzip\lib\zip.h" />
<ClInclude Include="libzip\lib\zipint.h" />
<ClInclude Include="libzip\lib\zip_crypto.h" />
<ClInclude Include="libzip\lib\zip_crypto_win.h" />
<ClInclude Include="libzip\lib\zip_source_file.h" />
<ClInclude Include="libzip\lib\zip_source_file_stdio.h" />
<ClInclude Include="libzip\lib\zip_source_file_win32.h" />
<ClInclude Include="private\config.h" />
<ClInclude Include="zipconf.h" />
</ItemGroup>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>ZIP_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<WarningLevel>TurnOffAllWarnings</WarningLevel>
<AdditionalIncludeDirectories>$(SolutionDir)3rdparty\zlib;$(ProjectDir)private;$(ProjectDir)libzip\lib;$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets" />
</Project>

136
3rdparty/libzip/libzip.vcxproj.filters vendored Normal file
View File

@ -0,0 +1,136 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ClCompile Include="libzip\lib\zip_unchange_all.c" />
<ClCompile Include="libzip\lib\zip_unchange_archive.c" />
<ClCompile Include="libzip\lib\zip_unchange_data.c" />
<ClCompile Include="libzip\lib\zip_utf-8.c" />
<ClCompile Include="libzip\lib\zip_winzip_aes.c" />
<ClCompile Include="libzip\lib\zip_add.c" />
<ClCompile Include="libzip\lib\zip_add_dir.c" />
<ClCompile Include="libzip\lib\zip_add_entry.c" />
<ClCompile Include="libzip\lib\zip_algorithm_deflate.c" />
<ClCompile Include="libzip\lib\zip_buffer.c" />
<ClCompile Include="libzip\lib\zip_close.c" />
<ClCompile Include="libzip\lib\zip_crypto_win.c" />
<ClCompile Include="libzip\lib\zip_delete.c" />
<ClCompile Include="libzip\lib\zip_dir_add.c" />
<ClCompile Include="libzip\lib\zip_dirent.c" />
<ClCompile Include="libzip\lib\zip_discard.c" />
<ClCompile Include="libzip\lib\zip_entry.c" />
<ClCompile Include="libzip\lib\zip_error.c" />
<ClCompile Include="libzip\lib\zip_error_clear.c" />
<ClCompile Include="libzip\lib\zip_error_get.c" />
<ClCompile Include="libzip\lib\zip_error_get_sys_type.c" />
<ClCompile Include="libzip\lib\zip_error_strerror.c" />
<ClCompile Include="libzip\lib\zip_error_to_str.c" />
<ClCompile Include="libzip\lib\zip_extra_field.c" />
<ClCompile Include="libzip\lib\zip_extra_field_api.c" />
<ClCompile Include="libzip\lib\zip_fclose.c" />
<ClCompile Include="libzip\lib\zip_fdopen.c" />
<ClCompile Include="libzip\lib\zip_file_add.c" />
<ClCompile Include="libzip\lib\zip_file_error_clear.c" />
<ClCompile Include="libzip\lib\zip_file_error_get.c" />
<ClCompile Include="libzip\lib\zip_file_get_comment.c" />
<ClCompile Include="libzip\lib\zip_file_get_external_attributes.c" />
<ClCompile Include="libzip\lib\zip_file_get_offset.c" />
<ClCompile Include="libzip\lib\zip_file_rename.c" />
<ClCompile Include="libzip\lib\zip_file_replace.c" />
<ClCompile Include="libzip\lib\zip_file_set_comment.c" />
<ClCompile Include="libzip\lib\zip_file_set_encryption.c" />
<ClCompile Include="libzip\lib\zip_file_set_external_attributes.c" />
<ClCompile Include="libzip\lib\zip_file_set_mtime.c" />
<ClCompile Include="libzip\lib\zip_file_strerror.c" />
<ClCompile Include="libzip\lib\zip_fopen.c" />
<ClCompile Include="libzip\lib\zip_fopen_encrypted.c" />
<ClCompile Include="libzip\lib\zip_fopen_index.c" />
<ClCompile Include="libzip\lib\zip_fopen_index_encrypted.c" />
<ClCompile Include="libzip\lib\zip_fread.c" />
<ClCompile Include="libzip\lib\zip_fseek.c" />
<ClCompile Include="libzip\lib\zip_ftell.c" />
<ClCompile Include="libzip\lib\zip_get_archive_comment.c" />
<ClCompile Include="libzip\lib\zip_get_archive_flag.c" />
<ClCompile Include="libzip\lib\zip_get_encryption_implementation.c" />
<ClCompile Include="libzip\lib\zip_get_file_comment.c" />
<ClCompile Include="libzip\lib\zip_get_name.c" />
<ClCompile Include="libzip\lib\zip_get_num_entries.c" />
<ClCompile Include="libzip\lib\zip_get_num_files.c" />
<ClCompile Include="libzip\lib\zip_hash.c" />
<ClCompile Include="libzip\lib\zip_io_util.c" />
<ClCompile Include="libzip\lib\zip_libzip_version.c" />
<ClCompile Include="libzip\lib\zip_memdup.c" />
<ClCompile Include="libzip\lib\zip_name_locate.c" />
<ClCompile Include="libzip\lib\zip_new.c" />
<ClCompile Include="libzip\lib\zip_open.c" />
<ClCompile Include="libzip\lib\zip_pkware.c" />
<ClCompile Include="libzip\lib\zip_progress.c" />
<ClCompile Include="libzip\lib\zip_random_win32.c" />
<ClCompile Include="libzip\lib\zip_rename.c" />
<ClCompile Include="libzip\lib\zip_replace.c" />
<ClCompile Include="libzip\lib\zip_set_archive_comment.c" />
<ClCompile Include="libzip\lib\zip_set_archive_flag.c" />
<ClCompile Include="libzip\lib\zip_set_default_password.c" />
<ClCompile Include="libzip\lib\zip_set_file_comment.c" />
<ClCompile Include="libzip\lib\zip_set_file_compression.c" />
<ClCompile Include="libzip\lib\zip_set_name.c" />
<ClCompile Include="libzip\lib\zip_source_accept_empty.c" />
<ClCompile Include="libzip\lib\zip_source_begin_write.c" />
<ClCompile Include="libzip\lib\zip_source_begin_write_cloning.c" />
<ClCompile Include="libzip\lib\zip_source_buffer.c" />
<ClCompile Include="libzip\lib\zip_source_call.c" />
<ClCompile Include="libzip\lib\zip_source_close.c" />
<ClCompile Include="libzip\lib\zip_source_commit_write.c" />
<ClCompile Include="libzip\lib\zip_source_compress.c" />
<ClCompile Include="libzip\lib\zip_source_crc.c" />
<ClCompile Include="libzip\lib\zip_source_error.c" />
<ClCompile Include="libzip\lib\zip_source_file_common.c" />
<ClCompile Include="libzip\lib\zip_source_file_stdio.c" />
<ClCompile Include="libzip\lib\zip_source_file_win32.c" />
<ClCompile Include="libzip\lib\zip_source_file_win32_ansi.c" />
<ClCompile Include="libzip\lib\zip_source_file_win32_named.c" />
<ClCompile Include="libzip\lib\zip_source_file_win32_utf8.c" />
<ClCompile Include="libzip\lib\zip_source_file_win32_utf16.c" />
<ClCompile Include="libzip\lib\zip_source_free.c" />
<ClCompile Include="libzip\lib\zip_source_function.c" />
<ClCompile Include="libzip\lib\zip_source_get_file_attributes.c" />
<ClCompile Include="libzip\lib\zip_source_is_deleted.c" />
<ClCompile Include="libzip\lib\zip_source_layered.c" />
<ClCompile Include="libzip\lib\zip_source_open.c" />
<ClCompile Include="libzip\lib\zip_source_pkware_decode.c" />
<ClCompile Include="libzip\lib\zip_source_pkware_encode.c" />
<ClCompile Include="libzip\lib\zip_source_read.c" />
<ClCompile Include="libzip\lib\zip_source_remove.c" />
<ClCompile Include="libzip\lib\zip_source_rollback_write.c" />
<ClCompile Include="libzip\lib\zip_source_seek.c" />
<ClCompile Include="libzip\lib\zip_source_seek_write.c" />
<ClCompile Include="libzip\lib\zip_source_stat.c" />
<ClCompile Include="libzip\lib\zip_source_supports.c" />
<ClCompile Include="libzip\lib\zip_source_tell.c" />
<ClCompile Include="libzip\lib\zip_source_tell_write.c" />
<ClCompile Include="libzip\lib\zip_source_window.c" />
<ClCompile Include="libzip\lib\zip_source_winzip_aes_decode.c" />
<ClCompile Include="libzip\lib\zip_source_winzip_aes_encode.c" />
<ClCompile Include="libzip\lib\zip_source_write.c" />
<ClCompile Include="libzip\lib\zip_source_zip.c" />
<ClCompile Include="libzip\lib\zip_source_zip_new.c" />
<ClCompile Include="libzip\lib\zip_stat.c" />
<ClCompile Include="libzip\lib\zip_stat_index.c" />
<ClCompile Include="libzip\lib\zip_stat_init.c" />
<ClCompile Include="libzip\lib\zip_strerror.c" />
<ClCompile Include="libzip\lib\zip_string.c" />
<ClCompile Include="libzip\lib\zip_unchange.c" />
<ClCompile Include="private\zip_err_str.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="libzip\lib\zipint.h" />
<ClInclude Include="libzip\lib\compat.h" />
<ClInclude Include="libzip\lib\zip.h" />
<ClInclude Include="libzip\lib\zip_crypto.h" />
<ClInclude Include="libzip\lib\zip_crypto_win.h" />
<ClInclude Include="libzip\lib\zip_source_file.h" />
<ClInclude Include="libzip\lib\zip_source_file_stdio.h" />
<ClInclude Include="libzip\lib\zip_source_file_win32.h" />
<ClInclude Include="private\config.h" />
<ClInclude Include="zipconf.h" />
</ItemGroup>
</Project>

64
3rdparty/libzip/private/config.h vendored Normal file
View File

@ -0,0 +1,64 @@
#ifndef HAD_CONFIG_H
#define HAD_CONFIG_H
#ifndef _HAD_ZIPCONF_H
#include "zipconf.h"
#endif
/* BEGIN DEFINES */
/* #undef HAVE___PROGNAME */
#define HAVE__CLOSE
#define HAVE__DUP
#define HAVE__FDOPEN
#define HAVE__FILENO
#define HAVE__SETMODE
#define HAVE__SNPRINTF
#define HAVE__STRDUP
#define HAVE__STRICMP
#define HAVE__STRTOI64
#define HAVE__STRTOUI64
/* #undef HAVE__UMASK */
#define HAVE__UNLINK
/* #undef HAVE_ARC4RANDOM */
/* #undef HAVE_CLONEFILE */
/* #undef HAVE_COMMONCRYPTO */
#define HAVE_CRYPTO
/* #undef HAVE_FICLONERANGE */
#define HAVE_FILENO
/* #undef HAVE_FCHMOD */
/* #undef HAVE_FSEEKO */
/* #undef HAVE_FTELLO */
/* #undef HAVE_GETPROGNAME */
/* #undef HAVE_GNUTLS */
/* #undef HAVE_LIBBZ2 */
/* #undef HAVE_LIBLZMA */
/* #undef HAVE_LIBZSTD */
/* #undef HAVE_LOCALTIME_R */
/* #undef HAVE_MBEDTLS */
/* #undef HAVE_MKSTEMP */
/* #undef HAVE_NULLABLE */
/* #undef HAVE_OPENSSL */
#define HAVE_SETMODE
#define HAVE_SNPRINTF
/* #undef HAVE_STRCASECMP */
#define HAVE_STRDUP
#define HAVE_STRICMP
#define HAVE_STRTOLL
#define HAVE_STRTOULL
/* #undef HAVE_STRUCT_TM_TM_ZONE */
#define HAVE_STDBOOL_H
/* #undef HAVE_STRINGS_H */
/* #undef HAVE_UNISTD_H */
#define HAVE_WINDOWS_CRYPTO
#define SIZEOF_OFF_T 4
#define SIZEOF_SIZE_T 8
/* #undef HAVE_DIRENT_H */
/* #undef HAVE_FTS_H */
/* #undef HAVE_NDIR_H */
/* #undef HAVE_SYS_DIR_H */
/* #undef HAVE_SYS_NDIR_H */
/* #undef WORDS_BIGENDIAN */
#define HAVE_SHARED
/* END DEFINES */
#define PACKAGE "libzip"
#define VERSION "1.8.0"
#endif /* HAD_CONFIG_H */

77
3rdparty/libzip/private/zip_err_str.c vendored Normal file
View File

@ -0,0 +1,77 @@
/*
This file was generated automatically by CMake
from zip.h and zipint.h; make changes there.
*/
#include "zipint.h"
#define L ZIP_ET_LIBZIP
#define N ZIP_ET_NONE
#define S ZIP_ET_SYS
#define Z ZIP_ET_ZLIB
#define E ZIP_DETAIL_ET_ENTRY
#define G ZIP_DETAIL_ET_GLOBAL
const struct _zip_err_info _zip_err_str[] = {
{ N, "No error" },
{ N, "Multi-disk zip archives not supported" },
{ S, "Renaming temporary file failed" },
{ S, "Closing zip archive failed" },
{ S, "Seek error" },
{ S, "Read error" },
{ S, "Write error" },
{ N, "CRC error" },
{ N, "Containing zip archive was closed" },
{ N, "No such file" },
{ N, "File already exists" },
{ S, "Can't open file" },
{ S, "Failure to create temporary file" },
{ Z, "Zlib error" },
{ N, "Malloc failure" },
{ N, "Entry has been changed" },
{ N, "Compression method not supported" },
{ N, "Premature end of file" },
{ N, "Invalid argument" },
{ N, "Not a zip archive" },
{ N, "Internal error" },
{ L, "Zip archive inconsistent" },
{ S, "Can't remove file" },
{ N, "Entry has been deleted" },
{ N, "Encryption method not supported" },
{ N, "Read-only archive" },
{ N, "No password provided" },
{ N, "Wrong password provided" },
{ N, "Operation not supported" },
{ N, "Resource still in use" },
{ S, "Tell error" },
{ N, "Compressed data invalid" },
{ N, "Operation cancelled" },
};
const int _zip_err_str_count = sizeof(_zip_err_str)/sizeof(_zip_err_str[0]);
const struct _zip_err_info _zip_err_details[] = {
{ G, "no detail" },
{ G, "central directory overlaps EOCD, or there is space between them" },
{ G, "archive comment length incorrect" },
{ G, "central directory length invalid" },
{ E, "central header invalid" },
{ G, "central directory count of entries is incorrect" },
{ E, "local and central headers do not match" },
{ G, "wrong EOCD length" },
{ G, "EOCD64 overlaps EOCD, or there is space between them" },
{ G, "EOCD64 magic incorrect" },
{ G, "EOCD64 and EOCD do not match" },
{ G, "invalid value in central directory" },
{ E, "variable size fields overflow header" },
{ E, "invalid UTF-8 in filename" },
{ E, "invalid UTF-8 in comment" },
{ E, "invalid Zip64 extra field" },
{ E, "invalid WinZip AES extra field" },
{ E, "garbage at end of extra fields" },
{ E, "extra field length is invalid" },
{ E, "file length in header doesn't match actual file length" },
};
const int _zip_err_details_count = sizeof(_zip_err_details)/sizeof(_zip_err_details[0]);

51
3rdparty/libzip/zipconf.h vendored Normal file
View File

@ -0,0 +1,51 @@
#ifndef _HAD_ZIPCONF_H
#define _HAD_ZIPCONF_H
/*
zipconf.h -- platform specific include file
This file was generated automatically by CMake
based on ../cmake-zipconf.h.in.
*/
#define LIBZIP_VERSION "1.8.0"
#define LIBZIP_VERSION_MAJOR 1
#define LIBZIP_VERSION_MINOR 8
#define LIBZIP_VERSION_MICRO 0
/* #undef ZIP_STATIC */
#define _Nullable
#define _Nonnull
#if !defined(__STDC_FORMAT_MACROS)
#define __STDC_FORMAT_MACROS 1
#endif
#include <inttypes.h>
typedef int8_t zip_int8_t;
typedef uint8_t zip_uint8_t;
typedef int16_t zip_int16_t;
typedef uint16_t zip_uint16_t;
typedef int32_t zip_int32_t;
typedef uint32_t zip_uint32_t;
typedef int64_t zip_int64_t;
typedef uint64_t zip_uint64_t;
#define ZIP_INT8_MIN (-ZIP_INT8_MAX-1)
#define ZIP_INT8_MAX 0x7f
#define ZIP_UINT8_MAX 0xff
#define ZIP_INT16_MIN (-ZIP_INT16_MAX-1)
#define ZIP_INT16_MAX 0x7fff
#define ZIP_UINT16_MAX 0xffff
#define ZIP_INT32_MIN (-ZIP_INT32_MAX-1L)
#define ZIP_INT32_MAX 0x7fffffffL
#define ZIP_UINT32_MAX 0xffffffffLU
#define ZIP_INT64_MIN (-ZIP_INT64_MAX-1LL)
#define ZIP_INT64_MAX 0x7fffffffffffffffLL
#define ZIP_UINT64_MAX 0xffffffffffffffffULL
#endif /* zipconf.h */

View File

@ -58,6 +58,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glslang", "3rdparty\glslang
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL", "3rdparty\sdl2\SDL.vcxproj", "{812B4434-FD6B-4CB2-8865-5FD8EB34B046}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL", "3rdparty\sdl2\SDL.vcxproj", "{812B4434-FD6B-4CB2-8865-5FD8EB34B046}"
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libzip", "3rdparty\libzip\libzip.vcxproj", "{20B2E9FE-F020-42A0-B324-956F5B06EA68}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug AVX2|x64 = Debug AVX2|x64 Debug AVX2|x64 = Debug AVX2|x64
@ -68,6 +70,18 @@ Global
Release|x64 = Release|x64 Release|x64 = Release|x64
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2A016F21-87AE-4154-8271-1F57E91408E9}.Debug AVX2|x64.ActiveCfg = Debug AVX2|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Debug AVX2|x64.Build.0 = Debug AVX2|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Debug|x64.ActiveCfg = Debug|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Debug|x64.Build.0 = Debug|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Devel AVX2|x64.ActiveCfg = Devel AVX2|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Devel AVX2|x64.Build.0 = Devel AVX2|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Devel|x64.ActiveCfg = Devel|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Devel|x64.Build.0 = Devel|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Release AVX2|x64.ActiveCfg = Release AVX2|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Release AVX2|x64.Build.0 = Release AVX2|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Release|x64.ActiveCfg = Release|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Release|x64.Build.0 = Release|x64
{E9B51944-7E6D-4BCD-83F2-7BBD5A46182D}.Debug AVX2|x64.ActiveCfg = Debug|x64 {E9B51944-7E6D-4BCD-83F2-7BBD5A46182D}.Debug AVX2|x64.ActiveCfg = Debug|x64
{E9B51944-7E6D-4BCD-83F2-7BBD5A46182D}.Debug AVX2|x64.Build.0 = Debug|x64 {E9B51944-7E6D-4BCD-83F2-7BBD5A46182D}.Debug AVX2|x64.Build.0 = Debug|x64
{E9B51944-7E6D-4BCD-83F2-7BBD5A46182D}.Debug|x64.ActiveCfg = Debug|x64 {E9B51944-7E6D-4BCD-83F2-7BBD5A46182D}.Debug|x64.ActiveCfg = Debug|x64
@ -284,18 +298,6 @@ Global
{88FB34EC-845E-4F21-A552-F1573B9ED167}.Release AVX2|x64.Build.0 = Release|x64 {88FB34EC-845E-4F21-A552-F1573B9ED167}.Release AVX2|x64.Build.0 = Release|x64
{88FB34EC-845E-4F21-A552-F1573B9ED167}.Release|x64.ActiveCfg = Release|x64 {88FB34EC-845E-4F21-A552-F1573B9ED167}.Release|x64.ActiveCfg = Release|x64
{88FB34EC-845E-4F21-A552-F1573B9ED167}.Release|x64.Build.0 = Release|x64 {88FB34EC-845E-4F21-A552-F1573B9ED167}.Release|x64.Build.0 = Release|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Debug AVX2|x64.ActiveCfg = Debug AVX2|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Debug AVX2|x64.Build.0 = Debug AVX2|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Debug|x64.ActiveCfg = Debug|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Debug|x64.Build.0 = Debug|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Devel AVX2|x64.ActiveCfg = Devel AVX2|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Devel AVX2|x64.Build.0 = Devel AVX2|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Devel|x64.ActiveCfg = Devel|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Devel|x64.Build.0 = Devel|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Release AVX2|x64.ActiveCfg = Release AVX2|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Release AVX2|x64.Build.0 = Release AVX2|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Release|x64.ActiveCfg = Release|x64
{2A016F21-87AE-4154-8271-1F57E91408E9}.Release|x64.Build.0 = Release|x64
{1EC8B3C0-8FB3-46DE-A2E0-A9121203F266}.Debug AVX2|x64.ActiveCfg = Debug|x64 {1EC8B3C0-8FB3-46DE-A2E0-A9121203F266}.Debug AVX2|x64.ActiveCfg = Debug|x64
{1EC8B3C0-8FB3-46DE-A2E0-A9121203F266}.Debug AVX2|x64.Build.0 = Debug|x64 {1EC8B3C0-8FB3-46DE-A2E0-A9121203F266}.Debug AVX2|x64.Build.0 = Debug|x64
{1EC8B3C0-8FB3-46DE-A2E0-A9121203F266}.Debug|x64.ActiveCfg = Debug|x64 {1EC8B3C0-8FB3-46DE-A2E0-A9121203F266}.Debug|x64.ActiveCfg = Debug|x64
@ -356,6 +358,18 @@ Global
{812B4434-FD6B-4CB2-8865-5FD8EB34B046}.Release AVX2|x64.Build.0 = Release|x64 {812B4434-FD6B-4CB2-8865-5FD8EB34B046}.Release AVX2|x64.Build.0 = Release|x64
{812B4434-FD6B-4CB2-8865-5FD8EB34B046}.Release|x64.ActiveCfg = Release|x64 {812B4434-FD6B-4CB2-8865-5FD8EB34B046}.Release|x64.ActiveCfg = Release|x64
{812B4434-FD6B-4CB2-8865-5FD8EB34B046}.Release|x64.Build.0 = Release|x64 {812B4434-FD6B-4CB2-8865-5FD8EB34B046}.Release|x64.Build.0 = Release|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Debug AVX2|x64.ActiveCfg = Debug|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Debug AVX2|x64.Build.0 = Debug|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Debug|x64.ActiveCfg = Debug|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Debug|x64.Build.0 = Debug|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Devel AVX2|x64.ActiveCfg = Devel|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Devel AVX2|x64.Build.0 = Devel|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Devel|x64.ActiveCfg = Devel|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Devel|x64.Build.0 = Devel|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Release AVX2|x64.ActiveCfg = Release|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Release AVX2|x64.Build.0 = Release|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Release|x64.ActiveCfg = Release|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Release|x64.Build.0 = Release|x64
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
@ -382,6 +396,7 @@ Global
{DE9653B6-17DD-356A-9EE0-28A731772587} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38} {DE9653B6-17DD-356A-9EE0-28A731772587} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38}
{EF6834A9-11F3-4331-BC34-21B325ABB180} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38} {EF6834A9-11F3-4331-BC34-21B325ABB180} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38}
{812B4434-FD6B-4CB2-8865-5FD8EB34B046} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38} {812B4434-FD6B-4CB2-8865-5FD8EB34B046} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38}
{20B2E9FE-F020-42A0-B324-956F5B06EA68} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0BC474EA-3628-45D3-9DBC-E22D0B7E0F77} SolutionGuid = {0BC474EA-3628-45D3-9DBC-E22D0B7E0F77}

View File

@ -1,4 +1,3 @@
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.0.31606.5 VisualStudioVersion = 17.0.31606.5
@ -63,6 +62,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "imgui", "3rdparty\imgui\img
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glslang", "3rdparty\glslang\glslang.vcxproj", "{EF6834A9-11F3-4331-BC34-21B325ABB180}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glslang", "3rdparty\glslang\glslang.vcxproj", "{EF6834A9-11F3-4331-BC34-21B325ABB180}"
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libzip", "3rdparty\libzip\libzip.vcxproj", "{20B2E9FE-F020-42A0-B324-956F5B06EA68}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug AVX2|x64 = Debug AVX2|x64 Debug AVX2|x64 = Debug AVX2|x64
@ -361,6 +362,18 @@ Global
{EF6834A9-11F3-4331-BC34-21B325ABB180}.Release AVX2|x64.Build.0 = Release|x64 {EF6834A9-11F3-4331-BC34-21B325ABB180}.Release AVX2|x64.Build.0 = Release|x64
{EF6834A9-11F3-4331-BC34-21B325ABB180}.Release|x64.ActiveCfg = Release|x64 {EF6834A9-11F3-4331-BC34-21B325ABB180}.Release|x64.ActiveCfg = Release|x64
{EF6834A9-11F3-4331-BC34-21B325ABB180}.Release|x64.Build.0 = Release|x64 {EF6834A9-11F3-4331-BC34-21B325ABB180}.Release|x64.Build.0 = Release|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Debug AVX2|x64.ActiveCfg = Debug|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Debug AVX2|x64.Build.0 = Debug|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Debug|x64.ActiveCfg = Debug|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Debug|x64.Build.0 = Debug|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Devel AVX2|x64.ActiveCfg = Devel|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Devel AVX2|x64.Build.0 = Devel|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Devel|x64.ActiveCfg = Devel|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Devel|x64.Build.0 = Devel|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Release AVX2|x64.ActiveCfg = Release|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Release AVX2|x64.Build.0 = Release|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Release|x64.ActiveCfg = Release|x64
{20B2E9FE-F020-42A0-B324-956F5B06EA68}.Release|x64.Build.0 = Release|x64
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
@ -388,6 +401,7 @@ Global
{1EC8B3C0-8FB3-46DE-A2E0-A9121203F266} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38} {1EC8B3C0-8FB3-46DE-A2E0-A9121203F266} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38}
{88FB34EC-845E-4F21-A552-F1573B9ED167} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38} {88FB34EC-845E-4F21-A552-F1573B9ED167} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38}
{EF6834A9-11F3-4331-BC34-21B325ABB180} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38} {EF6834A9-11F3-4331-BC34-21B325ABB180} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38}
{20B2E9FE-F020-42A0-B324-956F5B06EA68} = {78EBE642-7A4D-4EA7-86BE-5639C6646C38}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0BC474EA-3628-45D3-9DBC-E22D0B7E0F77} SolutionGuid = {0BC474EA-3628-45D3-9DBC-E22D0B7E0F77}

View File

@ -265,6 +265,7 @@ endif()
add_subdirectory(3rdparty/simpleini EXCLUDE_FROM_ALL) add_subdirectory(3rdparty/simpleini EXCLUDE_FROM_ALL)
add_subdirectory(3rdparty/imgui EXCLUDE_FROM_ALL) add_subdirectory(3rdparty/imgui EXCLUDE_FROM_ALL)
add_subdirectory(3rdparty/libzip EXCLUDE_FROM_ALL)
if(USE_OPENGL) if(USE_OPENGL)
add_subdirectory(3rdparty/glad EXCLUDE_FROM_ALL) add_subdirectory(3rdparty/glad EXCLUDE_FROM_ALL)