2011-12-20 03:30:59 +04:00
|
|
|
|
|
|
|
############################################
|
|
|
|
#
|
|
|
|
# How to build libarchive
|
|
|
|
#
|
|
|
|
############################################
|
|
|
|
|
|
|
|
# Public headers
|
|
|
|
SET(include_HEADERS
|
|
|
|
archive.h
|
|
|
|
archive_entry.h
|
|
|
|
)
|
|
|
|
|
|
|
|
# Sources and private headers
|
|
|
|
SET(libarchive_SOURCES
|
|
|
|
archive_acl.c
|
|
|
|
archive_check_magic.c
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_cmdline.c
|
|
|
|
archive_cmdline_private.h
|
|
|
|
archive_crc32.h
|
2015-10-21 11:47:34 +03:00
|
|
|
archive_cryptor.c
|
|
|
|
archive_cryptor_private.h
|
|
|
|
archive_digest.c
|
|
|
|
archive_digest_private.h
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_endian.h
|
|
|
|
archive_entry.c
|
|
|
|
archive_entry.h
|
|
|
|
archive_entry_copy_stat.c
|
|
|
|
archive_entry_link_resolver.c
|
|
|
|
archive_entry_locale.h
|
|
|
|
archive_entry_private.h
|
|
|
|
archive_entry_sparse.c
|
|
|
|
archive_entry_stat.c
|
|
|
|
archive_entry_strmode.c
|
|
|
|
archive_entry_xattr.c
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_getdate.c
|
2016-04-30 20:26:35 +03:00
|
|
|
archive_getdate.h
|
2015-10-21 11:47:34 +03:00
|
|
|
archive_hmac.c
|
|
|
|
archive_hmac_private.h
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_match.c
|
2016-11-17 23:26:41 +03:00
|
|
|
archive_openssl_evp_private.h
|
|
|
|
archive_openssl_hmac_private.h
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_options.c
|
|
|
|
archive_options_private.h
|
2014-03-18 07:43:07 +04:00
|
|
|
archive_pack_dev.h
|
|
|
|
archive_pack_dev.c
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_pathmatch.c
|
|
|
|
archive_pathmatch.h
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_platform.h
|
|
|
|
archive_ppmd_private.h
|
|
|
|
archive_ppmd7.c
|
|
|
|
archive_ppmd7_private.h
|
|
|
|
archive_private.h
|
2015-10-21 11:47:34 +03:00
|
|
|
archive_random.c
|
|
|
|
archive_random_private.h
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_rb.c
|
|
|
|
archive_rb.h
|
|
|
|
archive_read.c
|
2015-10-21 11:47:34 +03:00
|
|
|
archive_read_add_passphrase.c
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_read_append_filter.c
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_read_data_into_fd.c
|
|
|
|
archive_read_disk_entry_from_file.c
|
|
|
|
archive_read_disk_posix.c
|
|
|
|
archive_read_disk_private.h
|
|
|
|
archive_read_disk_set_standard_lookup.c
|
|
|
|
archive_read_extract.c
|
2014-04-15 06:19:05 +04:00
|
|
|
archive_read_extract2.c
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_read_open_fd.c
|
|
|
|
archive_read_open_file.c
|
|
|
|
archive_read_open_filename.c
|
|
|
|
archive_read_open_memory.c
|
|
|
|
archive_read_private.h
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_read_set_format.c
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_read_set_options.c
|
|
|
|
archive_read_support_filter_all.c
|
|
|
|
archive_read_support_filter_bzip2.c
|
|
|
|
archive_read_support_filter_compress.c
|
|
|
|
archive_read_support_filter_gzip.c
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_read_support_filter_grzip.c
|
|
|
|
archive_read_support_filter_lrzip.c
|
2015-10-21 11:47:34 +03:00
|
|
|
archive_read_support_filter_lz4.c
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_read_support_filter_lzop.c
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_read_support_filter_none.c
|
|
|
|
archive_read_support_filter_program.c
|
|
|
|
archive_read_support_filter_rpm.c
|
|
|
|
archive_read_support_filter_uu.c
|
|
|
|
archive_read_support_filter_xz.c
|
|
|
|
archive_read_support_format_7zip.c
|
|
|
|
archive_read_support_format_all.c
|
|
|
|
archive_read_support_format_ar.c
|
|
|
|
archive_read_support_format_by_code.c
|
|
|
|
archive_read_support_format_cab.c
|
|
|
|
archive_read_support_format_cpio.c
|
|
|
|
archive_read_support_format_empty.c
|
|
|
|
archive_read_support_format_iso9660.c
|
|
|
|
archive_read_support_format_lha.c
|
|
|
|
archive_read_support_format_mtree.c
|
|
|
|
archive_read_support_format_rar.c
|
|
|
|
archive_read_support_format_raw.c
|
|
|
|
archive_read_support_format_tar.c
|
2015-10-21 11:47:34 +03:00
|
|
|
archive_read_support_format_warc.c
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_read_support_format_xar.c
|
|
|
|
archive_read_support_format_zip.c
|
|
|
|
archive_string.c
|
|
|
|
archive_string.h
|
|
|
|
archive_string_composition.h
|
|
|
|
archive_string_sprintf.c
|
|
|
|
archive_util.c
|
|
|
|
archive_virtual.c
|
|
|
|
archive_write.c
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_write_disk_acl.c
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_write_disk_posix.c
|
|
|
|
archive_write_disk_private.h
|
|
|
|
archive_write_disk_set_standard_lookup.c
|
|
|
|
archive_write_private.h
|
|
|
|
archive_write_open_fd.c
|
|
|
|
archive_write_open_file.c
|
|
|
|
archive_write_open_filename.c
|
|
|
|
archive_write_open_memory.c
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_write_add_filter.c
|
|
|
|
archive_write_add_filter_b64encode.c
|
|
|
|
archive_write_add_filter_by_name.c
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_write_add_filter_bzip2.c
|
|
|
|
archive_write_add_filter_compress.c
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_write_add_filter_grzip.c
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_write_add_filter_gzip.c
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_write_add_filter_lrzip.c
|
2015-10-21 11:47:34 +03:00
|
|
|
archive_write_add_filter_lz4.c
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_write_add_filter_lzop.c
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_write_add_filter_none.c
|
|
|
|
archive_write_add_filter_program.c
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_write_add_filter_uuencode.c
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_write_add_filter_xz.c
|
|
|
|
archive_write_set_format.c
|
|
|
|
archive_write_set_format_7zip.c
|
|
|
|
archive_write_set_format_ar.c
|
|
|
|
archive_write_set_format_by_name.c
|
|
|
|
archive_write_set_format_cpio.c
|
|
|
|
archive_write_set_format_cpio_newc.c
|
2015-10-21 11:47:34 +03:00
|
|
|
archive_write_set_format_filter_by_ext.c
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_write_set_format_gnutar.c
|
|
|
|
archive_write_set_format_iso9660.c
|
|
|
|
archive_write_set_format_mtree.c
|
|
|
|
archive_write_set_format_pax.c
|
2014-03-18 07:43:07 +04:00
|
|
|
archive_write_set_format_raw.c
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_write_set_format_shar.c
|
|
|
|
archive_write_set_format_ustar.c
|
2013-02-09 21:17:57 +04:00
|
|
|
archive_write_set_format_v7tar.c
|
2015-10-21 11:47:34 +03:00
|
|
|
archive_write_set_format_warc.c
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_write_set_format_xar.c
|
|
|
|
archive_write_set_format_zip.c
|
|
|
|
archive_write_set_options.c
|
2015-10-21 11:47:34 +03:00
|
|
|
archive_write_set_passphrase.c
|
|
|
|
archive_xxhash.h
|
2013-02-09 21:17:57 +04:00
|
|
|
filter_fork_posix.c
|
2011-12-20 03:30:59 +04:00
|
|
|
filter_fork.h
|
2015-10-21 11:47:34 +03:00
|
|
|
xxhash.c
|
2011-12-20 03:30:59 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
# Man pages
|
|
|
|
SET(libarchive_MANS
|
|
|
|
archive_entry.3
|
|
|
|
archive_entry_acl.3
|
|
|
|
archive_entry_linkify.3
|
|
|
|
archive_entry_paths.3
|
|
|
|
archive_entry_perms.3
|
|
|
|
archive_entry_stat.3
|
|
|
|
archive_entry_time.3
|
|
|
|
archive_read.3
|
2015-10-21 11:47:34 +03:00
|
|
|
archive_read_add_passphrase.3
|
2011-12-20 03:30:59 +04:00
|
|
|
archive_read_disk.3
|
|
|
|
archive_read_set_options.3
|
|
|
|
archive_util.3
|
|
|
|
archive_write.3
|
|
|
|
archive_write_disk.3
|
|
|
|
archive_write_set_options.3
|
2015-10-21 11:47:34 +03:00
|
|
|
archive_write_set_passphrase.3
|
2011-12-20 03:30:59 +04:00
|
|
|
cpio.5
|
|
|
|
libarchive.3
|
|
|
|
libarchive_internals.3
|
|
|
|
libarchive-formats.5
|
|
|
|
mtree.5
|
|
|
|
tar.5
|
|
|
|
)
|
|
|
|
|
|
|
|
IF(WIN32 AND NOT CYGWIN)
|
|
|
|
LIST(APPEND libarchive_SOURCES archive_entry_copy_bhfi.c)
|
|
|
|
LIST(APPEND libarchive_SOURCES archive_read_disk_windows.c)
|
|
|
|
LIST(APPEND libarchive_SOURCES archive_windows.c)
|
|
|
|
LIST(APPEND libarchive_SOURCES archive_windows.h)
|
|
|
|
LIST(APPEND libarchive_SOURCES archive_write_disk_windows.c)
|
|
|
|
LIST(APPEND libarchive_SOURCES filter_fork_windows.c)
|
|
|
|
ENDIF(WIN32 AND NOT CYGWIN)
|
|
|
|
|
2011-12-20 21:07:39 +04:00
|
|
|
# CMake needs just one static "cmlibarchive" library.
|
|
|
|
ADD_LIBRARY(cmlibarchive STATIC ${libarchive_SOURCES} ${include_HEADERS})
|
|
|
|
TARGET_LINK_LIBRARIES(cmlibarchive ${ADDITIONAL_LIBS})
|