glfw: split into its own repo
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ce747b7fdc
commit
3d71f9959f
2 changed files with 0 additions and 31 deletions
23
build.zig
23
build.zig
|
|
@ -1,23 +0,0 @@
|
||||||
const Builder = @import("std").build.Builder;
|
|
||||||
const glfw = @import("glfw/build.zig");
|
|
||||||
|
|
||||||
pub fn build(b: *Builder) void {
|
|
||||||
const mode = b.standardReleaseOptions();
|
|
||||||
const target = b.standardTargetOptions(.{});
|
|
||||||
|
|
||||||
const lib = b.addStaticLibrary("engine", "src/main.zig");
|
|
||||||
lib.setBuildMode(mode);
|
|
||||||
lib.setTarget(target);
|
|
||||||
lib.addPackagePath("glfw", "glfw/src/main.zig");
|
|
||||||
glfw.link(b, lib, .{});
|
|
||||||
lib.install();
|
|
||||||
|
|
||||||
var main_tests = b.addTest("src/main.zig");
|
|
||||||
main_tests.setBuildMode(mode);
|
|
||||||
main_tests.setTarget(target);
|
|
||||||
main_tests.addPackagePath("glfw", "glfw/src/main.zig");
|
|
||||||
glfw.link(b, main_tests, .{});
|
|
||||||
|
|
||||||
const test_step = b.step("test", "Run library tests");
|
|
||||||
test_step.dependOn(&main_tests.step);
|
|
||||||
}
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
const std = @import("std");
|
|
||||||
const testing = std.testing;
|
|
||||||
|
|
||||||
const glfw = @import("glfw");
|
|
||||||
|
|
||||||
test "glfw_basic" {
|
|
||||||
glfw.basicTest() catch unreachable;
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue