summaryrefslogtreecommitdiffstats
path: root/Source/cmArchiveWrite.h
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2010-08-13 15:49:47 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2010-08-13 15:49:47 (GMT)
commitb50c15915ac5cca79e00bf438dacd074fe531978 (patch)
tree2df00db421f95453c309703cd06244ecd166163b /Source/cmArchiveWrite.h
parent4663356079da1c578ab0f7762b4c9d87327b80c3 (diff)
downloadCMake-b50c15915ac5cca79e00bf438dacd074fe531978.zip
CMake-b50c15915ac5cca79e00bf438dacd074fe531978.tar.gz
CMake-b50c15915ac5cca79e00bf438dacd074fe531978.tar.bz2
Add ZIP archive format and LZMA compress support to libarchive-wrapper
This will be needed to use cmArchiveWrire in cmCPackArchiveGenerator with the same feature set as before. Note that adding zip support to libarchive-wrapper would also makes it easy to add a new -E zip command to cmake commands.
Diffstat (limited to 'Source/cmArchiveWrite.h')
-rw-r--r--Source/cmArchiveWrite.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/cmArchiveWrite.h b/Source/cmArchiveWrite.h
index 92c0c73..0bd3e9b 100644
--- a/Source/cmArchiveWrite.h
+++ b/Source/cmArchiveWrite.h
@@ -32,11 +32,19 @@ public:
{
CompressNone,
CompressGZip,
- CompressBZip2
+ CompressBZip2,
+ CompressLZMA
+ };
+
+ /** Archive Type */
+ enum Type
+ {
+ TypeTAR,
+ TypeZIP
};
/** Construct with output stream to which to write archive. */
- cmArchiveWrite(std::ostream& os, Compress c = CompressNone);
+ cmArchiveWrite(std::ostream& os, Compress c = CompressNone, Type = TypeTAR);
~cmArchiveWrite();
/**