mach-ecs moves back into the main repository

Helps hexops/mach#1165

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-03-04 10:28:48 -07:00 committed by Stephen Gutekanst
parent 5f70579360
commit 221364415e
6 changed files with 4 additions and 15 deletions

View file

@ -45,7 +45,6 @@ You may have been linked to this issue because you sent a pull request to update
These projects have zero `build.zig.zon` dependencies, we update them first - and in any order. These projects have zero `build.zig.zon` dependencies, we update them first - and in any order.
* [ ] mach-ecs
* [ ] mach-gamemode * [ ] mach-gamemode
* [ ] mach-model3d * [ ] mach-model3d
* [ ] mach-sysjs * [ ] mach-sysjs
@ -143,7 +142,6 @@ These projects have dependencies on other projects. We update them in the exact
* [ ] mach, which depends on: * [ ] mach, which depends on:
* .zigversion * .zigversion
* build.zig version check * build.zig version check
* mach-ecs
* mach-core * mach-core
* mach-basisu * mach-basisu
* mach-sysaudio * mach-sysaudio

View file

@ -18,10 +18,6 @@ pub fn build(b: *std.Build) !void {
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
const mach_ecs_dep = b.dependency("mach_ecs", .{
.target = target,
.optimize = optimize,
});
const mach_basisu_dep = b.dependency("mach_basisu", .{ const mach_basisu_dep = b.dependency("mach_basisu", .{
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
@ -40,7 +36,6 @@ pub fn build(b: *std.Build) !void {
.root_source_file = .{ .path = sdkPath("/src/main.zig") }, .root_source_file = .{ .path = sdkPath("/src/main.zig") },
.imports = &.{ .imports = &.{
.{ .name = "mach-core", .module = mach_core_dep.module("mach-core") }, .{ .name = "mach-core", .module = mach_core_dep.module("mach-core") },
.{ .name = "mach-ecs", .module = mach_ecs_dep.module("mach-ecs") },
.{ .name = "mach-sysaudio", .module = mach_sysaudio_dep.module("mach-sysaudio") }, .{ .name = "mach-sysaudio", .module = mach_sysaudio_dep.module("mach-sysaudio") },
.{ .name = "mach-basisu", .module = mach_basisu_dep.module("mach-basisu") }, .{ .name = "mach-basisu", .module = mach_basisu_dep.module("mach-basisu") },
.{ .name = "mach-freetype", .module = mach_freetype_dep.module("mach-freetype") }, .{ .name = "mach-freetype", .module = mach_freetype_dep.module("mach-freetype") },

View file

@ -11,10 +11,6 @@
"README.md", "README.md",
}, },
.dependencies = .{ .dependencies = .{
.mach_ecs = .{
.url = "https://pkg.machengine.org/mach-ecs/83a3ed801008a976dd79e10068157b02c3b76a36.tar.gz",
.hash = "1220ed76b7395bfca9519ae58e7aa1c4ee94abc7e65b35a076f91d9c4ffa50de27e6",
},
.mach_core = .{ .mach_core = .{
.url = "https://pkg.machengine.org/mach-core/6a62bcc90e0d072d632788a6575d77942bd09a19.tar.gz", .url = "https://pkg.machengine.org/mach-core/6a62bcc90e0d072d632788a6575d77942bd09a19.tar.gz",
.hash = "12209d39954fcda0be158461c10f64d14d5c7d097bd6d26785b332d75ffefa7dd7a0", .hash = "12209d39954fcda0be158461c10f64d14d5c7d097bd6d26785b332d75ffefa7dd7a0",

View file

@ -1,7 +1,7 @@
const core = @import("mach-core"); const core = @import("mach-core");
const gpu = @import("mach-core").gpu; const gpu = @import("mach-core").gpu;
const std = @import("std"); const std = @import("std");
const ecs = @import("mach-ecs"); const ecs = @import("../main.zig").ecs;
var gpa = std.heap.GeneralPurposeAllocator(.{}){}; var gpa = std.heap.GeneralPurposeAllocator(.{}){};
const allocator = gpa.allocator(); const allocator = gpa.allocator();

View file

@ -1,7 +1,7 @@
const std = @import("std"); const std = @import("std");
const core = @import("mach-core"); const core = @import("mach-core");
const gpu = core.gpu; const gpu = core.gpu;
const ecs = @import("mach-ecs"); const ecs = @import("../main.zig").ecs;
const Engine = @import("../engine.zig").Engine; const Engine = @import("../engine.zig").Engine;
const mach = @import("../main.zig"); const mach = @import("../main.zig");

View file

@ -5,10 +5,10 @@ pub const Timer = core.Timer;
// Mach packages // Mach packages
pub const gpu = core.gpu; pub const gpu = core.gpu;
pub const sysjs = @import("mach-sysjs"); pub const sysjs = @import("mach-sysjs");
pub const ecs = @import("mach-ecs");
pub const sysaudio = @import("mach-sysaudio"); pub const sysaudio = @import("mach-sysaudio");
// Mach standard library // Mach standard library
pub const ecs = @import("ecs/main.zig");
pub const gfx = @import("gfx/main.zig"); pub const gfx = @import("gfx/main.zig");
pub const math = @import("math/main.zig"); pub const math = @import("math/main.zig");
pub const testing = @import("testing.zig"); pub const testing = @import("testing.zig");
@ -25,10 +25,10 @@ test {
// std.testing.refAllDeclsRecursive(@This()); // std.testing.refAllDeclsRecursive(@This());
_ = core; _ = core;
_ = gpu; _ = gpu;
_ = ecs;
_ = sysaudio; _ = sysaudio;
_ = gfx; _ = gfx;
_ = math; _ = math;
_ = testing; _ = testing;
std.testing.refAllDeclsRecursive(ecs);
std.testing.refAllDeclsRecursive(math); std.testing.refAllDeclsRecursive(math);
} }