An open API service indexing awesome lists of open source software.

https://github.com/timsurber/libjpeg

libjpeg packaged for zig
https://github.com/timsurber/libjpeg

zig zig-package

Last synced: 9 months ago
JSON representation

libjpeg packaged for zig

Awesome Lists containing this project

README

          

# libjpeg
This is [libjpeg](https://ijg.org/) packaged for zig.

## How to use it

First, update your `build.zig.zon`:

```
zig fetch --save https://github.com/timsurber/libjpeg/archive/refs/heads/main.zip
```

Next, add this snippet to your `build.zig` script:

```zig

const libjpeg_dep = b.dependency("libjpeg", .{
.target = target,
.optimize = optimize,
});
your_compilation.linkLibrary(libjpeg_dep.artifact("jpeg"));
```

This will provide libjpeg as a static library to `your_compilation`.