2022-09-08 07:19:36 -07:00
|
|
|
const builtin = @import("builtin");
|
2021-07-06 20:53:10 -07:00
|
|
|
const std = @import("std");
|
2023-02-07 19:19:47 +01:00
|
|
|
const Build = std.Build;
|
2023-07-03 21:18:53 -07:00
|
|
|
const glfw = @import("sdk.zig").Sdk(.{
|
|
|
|
// TODO(build-system): This cannot be imported with the Zig package manager
|
|
|
|
// error: TarUnsupportedFileType
|
|
|
|
.xcode_frameworks = @import("libs/xcode-frameworks/build.zig"),
|
|
|
|
});
|
2021-10-30 21:24:15 -07:00
|
|
|
|
2023-02-07 19:19:47 +01:00
|
|
|
pub fn build(b: *Build) !void {
|
|
|
|
const optimize = b.standardOptimizeOption(.{});
|
2022-07-23 16:52:34 +04:30
|
|
|
const target = b.standardTargetOptions(.{});
|
|
|
|
|
2022-07-19 14:35:28 +04:30
|
|
|
const test_step = b.step("test", "Run library tests");
|
2023-07-03 21:18:53 -07:00
|
|
|
test_step.dependOn(&(try glfw.testStep(b, optimize, target)).step);
|
|
|
|
test_step.dependOn(&(try glfw.testStepShared(b, optimize, target)).step);
|
2022-09-25 20:32:51 +03:30
|
|
|
}
|