Skip to content

YuriSizuku/alter-ZipStb

Repository files navigation

ZipStb

GitHub tag (latest by date)GitHub Workflow Status

🌿 A single header library (similar to stb) for zip,
compatible with gcc, tcc, llvm-mingw(clang), msvc.

usage

Include the single header file either in src/stb_zip.h or build/stb_zip.h, for example

#define ZIP_IMPLEMENTATION
#ifndef ZIP_SHARED // if you want to build dll and export api
#include "std_zip.h"

build

prepare enviroment

git clone https://github.com/YuriSizuku/alter-ZipStb.git --recursive
cd alter-ZipStb
chmod +x script/*.sh script/*.py
export MINGWSDK=/path/to/llvmmingw && script/install_llvmmingw.sh

build stb_zip.h

mkdir build
python script/build_stb_zip.py

build for debug

make prepare StbZip
make libzip libzip_test CC=i686-w64-mingw32-gcc BUILD_TYPE=32d
make libzip libzip_test CC=x86_64-w64-mingw32-gcc BUILD_TYPE=64d

About

A single header project (like stb) for zip

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages