]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Updated README
authorCarl Woffenden <cwoffenden@gmail.com>
Wed, 19 Jan 2022 14:57:33 +0000 (15:57 +0100)
committerCarl Woffenden <cwoffenden@gmail.com>
Wed, 19 Jan 2022 14:57:33 +0000 (15:57 +0100)
build/single_file_libs/README.md

index 1705b769b85c3bf9663287eeb21d4bf3454d57ae..64c973a68d6c857b010a0672376c782399cb310b 100644 (file)
@@ -12,7 +12,7 @@ This is the most common use case. The decompression library is small, adding, fo
 Create `zstddeclib.c` from the Zstd source using:
 ```
 cd zstd/build/single_file_libs
-./combine.sh -r ../../lib -o zstddeclib.c zstddeclib-in.c
+python3 combine.py -r ../../lib -x legacy/zstd_legacy.h -o zstddeclib.c zstddeclib-in.c
 ```
 Then add the resulting file to your project (see the [example files](examples)).
 
@@ -26,7 +26,7 @@ The same tool can amalgamate the entire Zstd library for ease of adding both com
 Create `zstd.c` from the Zstd source using:
 ```
 cd zstd/build/single_file_libs
-./combine.sh -r ../../lib -o zstd.c zstd-in.c
+python3 combine.py -r ../../lib -x legacy/zstd_legacy.h -k zstd.h -o zstd.c zstd-in.c
 ```
 It's possible to create a compressor-only library but since the decompressor is so small in comparison this doesn't bring much of a gain (but for the curious, simply remove the files in the _decompress_ section at the end of `zstd-in.c`).