+ WIP bindings

This commit is contained in:
REMqb
2024-04-30 20:05:18 +02:00
parent 97c82cd688
commit b3ae163518
6 changed files with 115 additions and 147 deletions

View File

@@ -127,13 +127,7 @@ fn buildNzsl(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.Opti
lib.addSystemIncludePath(ordered_map.path("include"));
lib.addSystemIncludePath(fast_float.path("include"));
// const includeFlag = std.fmt.allocPrint(b.allocator, "\"-isystem {s}\"", .{upstream.path("include").getPath(b)}) catch unreachable;
// defer b.allocator.free(includeFlag);
const flags = [_][]const u8{
// includeFlag
//"-I=" ++ .upstream.path(),
if (shared)
"-DCNZSL_DYNAMIC" else "-DCNZSL_STATIC",
if (shared) "-DNZSL_DYNAMIC" else "-DNZSL_STATIC",