mirror of
https://github.com/allyourcodebase/assimp.git
synced 2026-11-17 01:20:39 +00:00
Open Asset Importer Library built with Zig
- Zig 55.9%
- C 41.3%
- C++ 2.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github/workflows | ||
| include | ||
| src | ||
| .gitattributes | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENCE | ||
| README.md | ||
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);
}