thechampagne / webview-zig

⚡ Zig binding & wrapper for a tiny cross-platform webview library to build modern cross-platform GUIs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webview-zig

Zig binding for a tiny cross-platform webview library to build modern cross-platform GUIs.

Requirements

Usage

build.zig.zon:

.{
    .dependencies = .{
        .webview = .{
            .url = "https://github.com/thechampagne/webview-zig/archive/refs/heads/main.tar.gz" ,
            .hash = "12208586373679a455aa8ef874112c93c1613196f60137878d90ce9d2ae8fb9cd511",
        },
    },
}

build.zig:

const webview = b.dependency("webview", .{
    .target = target,
    .optimize = optimize,
});
exe.root_module.addImport("webview", webview.module("webview"));
exe.linkLibrary(webview.artifact("webviewStatic")); // or "webviewShared" for shared library
// exe.linkSystemLibrary("webview"); to link with installed prebuilt library without building

References

License

This repo is released under the MIT License.

About

⚡ Zig binding & wrapper for a tiny cross-platform webview library to build modern cross-platform GUIs.

License:MIT License


Languages

Language:Zig 100.0%