2012-03-24 22:39:19 +00:00
|
|
|
set(SRCS
|
2021-05-10 02:58:30 +00:00
|
|
|
zip_add.c
|
|
|
|
zip_add_dir.c
|
|
|
|
zip_add_entry.c
|
|
|
|
zip_algorithm_deflate.c
|
|
|
|
zip_buffer.c
|
|
|
|
zip_close.c
|
|
|
|
zip_delete.c
|
|
|
|
zip_dir_add.c
|
|
|
|
zip_dirent.c
|
|
|
|
zip_discard.c
|
|
|
|
zip_entry.c
|
|
|
|
zip_error.c
|
|
|
|
zip_error_clear.c
|
|
|
|
zip_error_get.c
|
|
|
|
zip_error_get_sys_type.c
|
|
|
|
zip_error_strerror.c
|
|
|
|
zip_error_to_str.c
|
|
|
|
zip_extra_field.c
|
|
|
|
zip_extra_field_api.c
|
|
|
|
zip_fclose.c
|
|
|
|
zip_fdopen.c
|
|
|
|
zip_file_add.c
|
|
|
|
zip_file_error_clear.c
|
|
|
|
zip_file_error_get.c
|
|
|
|
zip_file_get_comment.c
|
|
|
|
zip_file_get_external_attributes.c
|
|
|
|
zip_file_get_offset.c
|
|
|
|
zip_file_rename.c
|
|
|
|
zip_file_replace.c
|
|
|
|
zip_file_set_comment.c
|
|
|
|
zip_file_set_encryption.c
|
|
|
|
zip_file_set_external_attributes.c
|
|
|
|
zip_file_set_mtime.c
|
|
|
|
zip_file_strerror.c
|
|
|
|
zip_fopen.c
|
|
|
|
zip_fopen_encrypted.c
|
|
|
|
zip_fopen_index.c
|
|
|
|
zip_fopen_index_encrypted.c
|
|
|
|
zip_fread.c
|
|
|
|
zip_fseek.c
|
|
|
|
zip_ftell.c
|
|
|
|
zip_get_archive_comment.c
|
|
|
|
zip_get_archive_flag.c
|
|
|
|
zip_get_encryption_implementation.c
|
|
|
|
zip_get_file_comment.c
|
|
|
|
zip_get_name.c
|
|
|
|
zip_get_num_entries.c
|
|
|
|
zip_get_num_files.c
|
|
|
|
zip_hash.c
|
|
|
|
zip_io_util.c
|
|
|
|
zip_libzip_version.c
|
|
|
|
zip_memdup.c
|
|
|
|
zip_name_locate.c
|
|
|
|
zip_new.c
|
|
|
|
zip_open.c
|
|
|
|
zip_pkware.c
|
|
|
|
zip_progress.c
|
|
|
|
zip_rename.c
|
|
|
|
zip_replace.c
|
|
|
|
zip_set_archive_comment.c
|
|
|
|
zip_set_archive_flag.c
|
|
|
|
zip_set_default_password.c
|
|
|
|
zip_set_file_comment.c
|
|
|
|
zip_set_file_compression.c
|
|
|
|
zip_set_name.c
|
|
|
|
zip_source_accept_empty.c
|
|
|
|
zip_source_begin_write.c
|
|
|
|
zip_source_begin_write_cloning.c
|
|
|
|
zip_source_buffer.c
|
|
|
|
zip_source_call.c
|
|
|
|
zip_source_close.c
|
|
|
|
zip_source_commit_write.c
|
|
|
|
zip_source_compress.c
|
|
|
|
zip_source_crc.c
|
|
|
|
zip_source_error.c
|
|
|
|
zip_source_file_common.c
|
|
|
|
zip_source_file_stdio.c
|
|
|
|
zip_source_free.c
|
|
|
|
zip_source_function.c
|
|
|
|
zip_source_get_file_attributes.c
|
|
|
|
zip_source_is_deleted.c
|
|
|
|
zip_source_layered.c
|
|
|
|
zip_source_open.c
|
|
|
|
zip_source_pkware_decode.c
|
|
|
|
zip_source_pkware_encode.c
|
|
|
|
zip_source_read.c
|
|
|
|
zip_source_remove.c
|
|
|
|
zip_source_rollback_write.c
|
|
|
|
zip_source_seek.c
|
|
|
|
zip_source_seek_write.c
|
|
|
|
zip_source_stat.c
|
|
|
|
zip_source_supports.c
|
|
|
|
zip_source_tell.c
|
|
|
|
zip_source_tell_write.c
|
|
|
|
zip_source_window.c
|
|
|
|
zip_source_write.c
|
|
|
|
zip_source_zip.c
|
|
|
|
zip_source_zip_new.c
|
|
|
|
zip_stat.c
|
|
|
|
zip_stat_index.c
|
|
|
|
zip_stat_init.c
|
|
|
|
zip_strerror.c
|
|
|
|
zip_string.c
|
|
|
|
zip_unchange.c
|
|
|
|
zip_unchange_all.c
|
|
|
|
zip_unchange_archive.c
|
|
|
|
zip_unchange_data.c
|
|
|
|
zip_utf-8.c
|
|
|
|
zip_err_str.c)
|
2012-03-24 22:39:19 +00:00
|
|
|
|
2021-05-10 02:58:30 +00:00
|
|
|
if(WIN32)
|
|
|
|
set(SRCS ${SRCS}
|
|
|
|
zip_source_file_win32.c
|
|
|
|
zip_source_file_win32_named.c
|
|
|
|
zip_source_file_win32_utf16.c
|
|
|
|
zip_source_file_win32_utf8.c)
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore)
|
|
|
|
set(SRCS ${SRCS} zip_random_uwp.c)
|
|
|
|
else()
|
|
|
|
set(SRCS ${SRCS} zip_source_file_win32_ansi.c zip_random_win32.c)
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
set(SRCS ${SRCS}
|
|
|
|
zip_mkstempm.c
|
|
|
|
zip_source_file_stdio_named.c
|
|
|
|
zip_random_unix.c)
|
|
|
|
endif()
|
2012-03-24 22:39:19 +00:00
|
|
|
|
|
|
|
add_library(zip STATIC ${SRCS})
|
|
|
|
|
|
|
|
if(UNIX)
|
|
|
|
add_definitions(-fPIC)
|
|
|
|
endif(UNIX)
|
|
|
|
|