mach: zig fmt
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
023170352f
commit
96a9c94922
1 changed files with 14 additions and 11 deletions
|
|
@ -177,7 +177,9 @@ pub const App = struct {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn init(b: *Builder, options: struct {
|
pub fn init(
|
||||||
|
b: *Builder,
|
||||||
|
options: struct {
|
||||||
name: []const u8,
|
name: []const u8,
|
||||||
src: []const u8,
|
src: []const u8,
|
||||||
target: CrossTarget,
|
target: CrossTarget,
|
||||||
|
|
@ -188,7 +190,8 @@ pub const App = struct {
|
||||||
/// 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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue