build: fix wasm32-freestanding build
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c004ea1b06
commit
3a81f35b8b
1 changed files with 8 additions and 5 deletions
|
|
@ -163,12 +163,15 @@ pub const App = struct {
|
||||||
sysaudio.link(app.b, app.step, options.sysaudio);
|
sysaudio.link(app.b, app.step, options.sysaudio);
|
||||||
if (app.use_freetype) |_| freetype.link(app.b, app.step, options.freetype);
|
if (app.use_freetype) |_| freetype.link(app.b, app.step, options.freetype);
|
||||||
|
|
||||||
|
// TODO: basisu support in wasm
|
||||||
|
if (app.platform != .web) {
|
||||||
const mach_basisu = app.b.dependency("mach_basisu", .{
|
const mach_basisu = app.b.dependency("mach_basisu", .{
|
||||||
.target = app.step.target,
|
.target = app.step.target,
|
||||||
.optimize = app.step.optimize,
|
.optimize = app.step.optimize,
|
||||||
});
|
});
|
||||||
app.step.linkLibrary(mach_basisu.artifact("mach-basisu"));
|
app.step.linkLibrary(mach_basisu.artifact("mach-basisu"));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn install(app: *const App) void {
|
pub fn install(app: *const App) void {
|
||||||
app.core.install();
|
app.core.install();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue