fold app/ into src/editor/
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
71863e215c
commit
d72155df4c
10 changed files with 11 additions and 4 deletions
|
|
@ -63,7 +63,7 @@ pub fn build(b: *std.Build) !void {
|
||||||
if (target.getCpuArch() != .wasm32) {
|
if (target.getCpuArch() != .wasm32) {
|
||||||
const app = b.addExecutable(.{
|
const app = b.addExecutable(.{
|
||||||
.name = "mach",
|
.name = "mach",
|
||||||
.root_source_file = .{ .path = "app/main.zig" },
|
.root_source_file = .{ .path = "src/mach.zig" },
|
||||||
.version = .{ .major = 0, .minor = 1, .patch = 0 },
|
.version = .{ .major = 0, .minor = 1, .patch = 0 },
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
.target = target,
|
.target = target,
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ const std = @import("std");
|
||||||
const mime_map = @import("Builder/mime.zig").mime_map;
|
const mime_map = @import("Builder/mime.zig").mime_map;
|
||||||
const Target = @import("target.zig").Target;
|
const Target = @import("target.zig").Target;
|
||||||
const OptimizeMode = std.builtin.OptimizeMode;
|
const OptimizeMode = std.builtin.OptimizeMode;
|
||||||
const allocator = @import("root").allocator;
|
const allocator = @import("entrypoint.zig").allocator;
|
||||||
|
|
||||||
const Builder = @This();
|
const Builder = @This();
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
|
@ -10,7 +10,7 @@ var arg_i: usize = 1;
|
||||||
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
|
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
|
||||||
pub const allocator = gpa.allocator();
|
pub const allocator = gpa.allocator();
|
||||||
|
|
||||||
pub fn main() !void {
|
pub fn Main() !void {
|
||||||
defer _ = gpa.deinit();
|
defer _ = gpa.deinit();
|
||||||
|
|
||||||
args = try std.process.argsAlloc(allocator);
|
args = try std.process.argsAlloc(allocator);
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const allocator = @import("root").allocator;
|
const allocator = @import("entrypoint.zig").allocator;
|
||||||
|
|
||||||
pub const Target = enum {
|
pub const Target = enum {
|
||||||
@"linux-x86_64",
|
@"linux-x86_64",
|
||||||
7
src/mach.zig
Normal file
7
src/mach.zig
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
//! The 'mach' CLI and engine editor
|
||||||
|
|
||||||
|
const entrypoint = @import("editor/entrypoint.zig");
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
try entrypoint.Main();
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue