mach: zig fmt

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-10-16 12:54:40 -07:00
parent 023170352f
commit 96a9c94922

View file

@ -177,18 +177,21 @@ pub const App = struct {
} }
}; };
pub fn init(b: *Builder, options: struct { pub fn init(
name: []const u8, b: *Builder,
src: []const u8, options: struct {
target: CrossTarget, name: []const u8,
deps: ?[]const Pkg = null, src: []const u8,
res_dirs: ?[]const []const u8 = null, target: CrossTarget,
watch_paths: ?[]const []const u8 = null, deps: ?[]const Pkg = null,
res_dirs: ?[]const []const u8 = null,
watch_paths: ?[]const []const u8 = null,
/// If set, freetype will be linked and can be imported using this name. /// If set, freetype will be linked and can be imported using this name.
// TODO(build-system): name is currently not used / always "freetype" // TODO(build-system): name is currently not used / always "freetype"
use_freetype: ?[]const u8 = null, use_freetype: ?[]const u8 = null,
}) InitError!App { },
) InitError!App {
const target = (try std.zig.system.NativeTargetInfo.detect(options.target)).target; const target = (try std.zig.system.NativeTargetInfo.detect(options.target)).target;
const platform = Platform.fromTarget(target); const platform = Platform.fromTarget(target);