Skip to content

Instantly share code, notes, and snippets.

@skeeto
Last active May 31, 2024 15:50
Show Gist options
  • Save skeeto/36179312f7f953a3ce55e63bfec9bf2a to your computer and use it in GitHub Desktop.
Save skeeto/36179312f7f953a3ce55e63bfec9bf2a to your computer and use it in GitHub Desktop.
Kanzi unity build
// $ c++ -o kanzi kanzi.cpp
#define WIN32_LEAN_AND_MEAN // avoids std::byte conflicts
#include "src/app/BlockDecompressor.cpp"
#include "src/app/Kanzi.cpp"
#include "src/app/InfoPrinter.cpp"
#include "src/app/BlockCompressor.cpp"
#include "src/transform/BWTS.cpp"
#include "src/transform/BWTBlockCodec.cpp"
#include "src/transform/SBRT.cpp"
#include "src/transform/ZRLT.cpp"
#include "src/transform/LZCodec.cpp"
#include "src/transform/AliasCodec.cpp"
#include "src/transform/BWT.cpp"
#include "src/transform/RLT.cpp"
#include "src/transform/ROLZCodec.cpp"
#include "src/transform/SRT.cpp"
#include "src/transform/TextCodec.cpp"
#include "src/transform/DivSufSort.cpp"
#include "src/transform/UTFCodec.cpp"
#include "src/transform/EXECodec.cpp"
#include "src/transform/FSDCodec.cpp"
#include "src/io/CompressedInputStream.cpp"
#include "src/io/CompressedOutputStream.cpp"
#include "src/Global.cpp"
#include "src/entropy/RangeEncoder.cpp"
#include "src/entropy/CMPredictor.cpp"
#include "src/entropy/ExpGolombEncoder.cpp"
#include "src/entropy/BinaryEntropyEncoder.cpp"
#include "src/entropy/ANSRangeDecoder.cpp"
#include "src/entropy/EntropyUtils.cpp"
#include "src/entropy/FPAQEncoder.cpp"
#include "src/entropy/BinaryEntropyDecoder.cpp"
#include "src/entropy/HuffmanCommon.cpp"
#include "src/entropy/ANSRangeEncoder.cpp"
#include "src/entropy/FPAQDecoder.cpp"
#include "src/entropy/ExpGolombDecoder.cpp"
#include "src/entropy/TPAQPredictor.cpp"
#include "src/entropy/HuffmanDecoder.cpp"
#include "src/entropy/HuffmanEncoder.cpp"
#include "src/entropy/RangeDecoder.cpp"
#include "src/bitstream/DefaultInputBitStream.cpp"
#include "src/bitstream/DebugInputBitStream.cpp"
#include "src/bitstream/DebugOutputBitStream.cpp"
#include "src/bitstream/DefaultOutputBitStream.cpp"
#include "src/Event.cpp"
#include "src/api/Decompressor.cpp"
#include "src/api/Compressor.cpp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment