Просмотр исходного кода

Support new compression types.

Brucey 3 месяцев назад
Родитель
Сommit
3920edc4b5
3 измененных файлов с 9 добавлено и 3 удалено
  1. 1 1
      zip.mod/common.bmx
  2. 6 1
      zip.mod/source.bmx
  3. 2 1
      zip.mod/zip.bmx

+ 1 - 1
zip.mod/common.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2022-2023 Bruce A Henderson
+' Copyright (c) 2022-2025 Bruce A Henderson
 ' All rights reserved.
 '
 ' Redistribution and use in source and binary forms, with or without

+ 6 - 1
zip.mod/source.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2022-2023 Bruce A Henderson
+' Copyright (c) 2022-2025 Bruce A Henderson
 ' All rights reserved.
 '
 ' Redistribution and use in source and binary forms, with or without
@@ -23,8 +23,13 @@
 SuperStrict
 
 Import Archive.zlib
+Import Archive.xz
+Import Archive.zstd
+Import Archive.bzip2
 
 Import "../zlib.mod/zlib/*.h"
+Import "../xz.mod/xz/src/liblzma/api/*.h"
+Import "../zstd.mod/zstd/lib/*.h"
 
 ?linux or win32
 Import Net.mbedtlsCrypto

+ 2 - 1
zip.mod/zip.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2022-2023 Bruce A Henderson
+' Copyright (c) 2022-2025 Bruce A Henderson
 ' All rights reserved.
 '
 ' Redistribution and use in source and binary forms, with or without
@@ -32,6 +32,7 @@ ModuleInfo "CC_OPTS: -DLIBARCHIVE_STATIC"
 ?linux or win32
 ModuleInfo "CC_OPTS: -DHAVE_LIBMBEDCRYPTO -DHAVE_MBEDTLS_AES_H -DHAVE_MBEDTLS_PKCS5_H -DHAVE_MBEDTLS_MD_H"
 ?
+ModuleInfo "CC_OPTS: -DHAVE_LZMA_H -DHAVE_BZLIB_H -DHAVE_ZSTD_H -DHAVE_ZSTD_compressStream"
 
 Import Archive.Core
 Import "common.bmx"