Open Asset Importer Library built with Zig
  • Zig 55.9%
  • C 41.3%
  • C++ 2.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Felix Queißner ec4892cb62
Merge pull request #14 from Lemento/master
Changed hash field to new hash which was causing zig build to keep fe…
2025-10-30 07:23:17 +01:00
.github/workflows First revision: Building assimp partially works. 2021-09-03 13:44:41 +02:00
include Move HAVE_UNISTD_H definition inside conditional for when we're not on windows. Partially merge a change from zlib's zconf.h that fixes Z_HAVE_UNISTD_H being defined on windows. 2024-11-03 15:42:13 +00:00
src Add example c program 2024-02-25 01:45:18 +04:00
.gitattributes First revision: Building assimp partially works. 2021-09-03 13:44:41 +02:00
.gitignore Update .gitignore to ignore .zig-cache 2024-11-03 15:42:43 +00:00
build.zig updated package to have compatibilty with zig 0.15.1 2025-09-25 22:39:28 -05:00
build.zig.zon Changed hash field to new hash which was causing zig build to keep fetching assimp every run 2025-10-29 14:11:46 -04:00
LICENCE Adds BSD3 licence. 2021-09-03 15:02:40 +02:00
README.md Makes a nice release 2021-09-03 15:01:19 +02:00

OpenAssetImporter Library Binding for Zig

This repo is a build sdk for Assimp to be used with the Zig build system:

const std = @import("std");

// Import the SDK
const Assimp = @import("Sdk.zig");

pub fn build(b: *std.build.Builder) void {
    const mode = b.standardReleaseOptions();

    const exe = b.addExecutable("static-example", null);
    exe.setBuildMode(mode);
    exe.addCSourceFile("src/example.cpp", &[_][]const u8{"-std=c++17"});
    exe.linkLibC();
    exe.linkLibCpp();
    exe.install();
    
    // Create a new instance
    var sdk = Assimp.init(b);

    // And link Assimp statically to our exe and enable a default set of
    // formats.
    sdk.addTo(exe, .static, Assimp.FormatSet.default);
}