Changeset 98732 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Feb 25, 2023 6:26:14 PM (2 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/Makefile.kmk
r98513 r98732 342 342 ifdef IPRT_WITH_LZO 343 343 RuntimeBaseR3_DEFS += RTZIP_USE_LZO 344 endif 345 ifdef VBOX_WITH_LIBLZMA 346 RuntimeBaseR3_DEFS += IPRT_WITH_LZMA 347 RuntimeBaseR3_SDKS += VBoxLibLzma 344 348 endif 345 349 ifn1of ($(KBUILD_TARGET), win) … … 812 816 r3/generic/semspinmutex-r3-generic.cpp \ 813 817 r3/xml.cpp \ 814 common/zip/xarvfs.cpp 818 common/zip/xarvfs.cpp \ 819 common/zip/lzmavfs.cpp \ 815 820 816 821 … … 1833 1838 r3/xml.cpp \ 1834 1839 common/zip/xarvfs.cpp \ 1840 common/zip/lzmavfs.cpp \ 1835 1841 common/misc/json.cpp \ 1836 1842 generic/RTLogWriteStdErr-generic.cpp \ … … 2465 2471 common/vfs/vfsstdpipe.cpp \ 2466 2472 common/zip/gzipvfs.cpp \ 2473 common/zip/lzmavfs.cpp \ 2467 2474 common/zip/tarcmd.cpp \ 2468 2475 common/zip/tarvfs.cpp \ … … 2707 2714 RuntimeGuestR3_TEMPLATE := VBoxGuestR3Lib 2708 2715 RuntimeGuestR3_EXTENDS := RuntimeR3 2709 RuntimeGuestR3_DEFS = $(filter-out RTCRITSECT_STRICT RT_NO_GIP IN_SUP_R3 , $(RuntimeR3_DEFS))2716 RuntimeGuestR3_DEFS = $(filter-out RTCRITSECT_STRICT RT_NO_GIP IN_SUP_R3 IPRT_WITH_LZMA, $(RuntimeR3_DEFS)) 2710 2717 RuntimeGuestR3_SOURCES = $(filter-out \ 2711 2718 common/time/timesupref.cpp \ … … 2713 2720 common/time/timesup.cpp \ 2714 2721 common/zip/xarvfs.cpp \ 2722 common/zip/lzmavfs.cpp \ 2715 2723 r3/xml.cpp \ 2716 2724 generic/RTLogWriteUser-generic.cpp \ … … 2774 2782 VBoxRT_SDKS += VBoxLibCurl 2775 2783 endif 2784 ifdef VBOX_WITH_LIBLZMA 2785 VBoxRT_SDKS += VBoxLibLzma 2786 endif 2776 2787 VBoxRT_SDKS += VBoxOpenSslStatic 2777 2788 if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS)) … … 2794 2805 ifdef VBOX_WITH_LIBCURL 2795 2806 VBoxRT_DEFS += IPRT_WITH_HTTP 2807 endif 2808 ifdef VBOX_WITH_LIBLZMA 2809 VBoxRT_DEFS += IPRT_WITH_LZMA 2796 2810 endif 2797 2811 ifdef RTALLOC_REPLACE_MALLOC … … 3011 3025 ifdef VBOX_WITH_LIBCURL 3012 3026 VBoxRT-x86_SDKS += VBoxLibCurl-x86 3027 endif 3028 ifdef VBOX_WITH_LIBZMA 3029 VBoxRT-x86_SDKS += VBoxLibLzma-x86 3013 3030 endif 3014 3031 VBoxRT-x86_SDKS += VBoxOpenSslStatic-x86 -
trunk/src/VBox/Runtime/common/zip/tarcmd.cpp
r98462 r98732 126 126 /** Whether to handle directories recursively or not. Defaults to \c true. */ 127 127 bool fRecursive; 128 /** The compressor/decompressor method to employ (0, z or j ). */128 /** The compressor/decompressor method to employ (0, z or j or J). */ 129 129 char chZipper; 130 130 … … 597 597 RTMsgError("Failed to open gzip decompressor: %Rrc", rc); 598 598 break; 599 600 #ifdef IPRT_WITH_LZMA 601 /* xz/lzma */ 602 case 'J': 603 rc = RTZipXzCompressIoStream(hVfsIos, 0 /*fFlags*/, 6, &hVfsIosComp); 604 if (RT_FAILURE(rc)) 605 RTMsgError("Failed to open xz compressor: %Rrc", rc); 606 break; 607 #endif 599 608 600 609 /* bunzip2 */ … … 861 870 break; 862 871 872 #ifdef IPRT_WITH_LZMA 873 /* xz/lzma */ 874 case 'J': 875 rc = RTZipXzDecompressIoStream(hVfsIos, 0 /*fFlags*/, &hVfsIosDecomp); 876 if (RT_FAILURE(rc)) 877 RTMsgError("Failed to open gzip decompressor: %Rrc", rc); 878 break; 879 #endif 880 863 881 /* bunzip2 */ 864 882 case 'j': … … 1668 1686 " -z, --gzip, --gunzip, --ungzip (all)\n" 1669 1687 " Compress/decompress the archive with gzip.\n" 1688 #ifdef IPRT_WITH_LZMA 1689 " -J, --xz (all)\n" 1690 " Compress/decompress the archive using xz/lzma.\n" 1691 #endif 1670 1692 "\n"); 1671 1693 RTPrintf("Misc Options:\n" … … 1750 1772 { "--gunzip", 'z', RTGETOPT_REQ_NOTHING }, 1751 1773 { "--ungzip", 'z', RTGETOPT_REQ_NOTHING }, 1774 #ifdef IPRT_WITH_LZMA 1775 { "--xz", 'J', RTGETOPT_REQ_NOTHING }, 1776 #endif 1752 1777 1753 1778 /* other options. */ … … 1842 1867 case 'j': 1843 1868 case 'z': 1869 #ifdef IPRT_WITH_LZMA 1870 case 'J': 1871 #endif 1844 1872 if (Opts.chZipper) 1845 1873 return RTMsgErrorExit(RTEXITCODE_SYNTAX, "You may only specify one compressor / decompressor");
Note:
See TracChangeset
for help on using the changeset viewer.