Content-Length: 307265 | pFad | http://github.com/zig-gamedev/zig-gamedev/pull/309/commits/d5a0cd2860fce2658e4dd8632e80a0874e7b5f7d

4B Emscripten support: wasm & webgpu in browser by Deins · Pull Request #309 · zig-gamedev/zig-gamedev · GitHub
Skip to content

Emscripten support: wasm & webgpu in browser #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'fork/main' into emscripten
  • Loading branch information
Deins committed Aug 6, 2023
commit d5a0cd2860fce2658e4dd8632e80a0874e7b5f7d
14 changes: 8 additions & 6 deletions libs/zgui/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ pub fn package(
zgui_c_cpp.disable_stack_probing = true;
}

zgui_c_cpp.addIncludePath(thisDir() ++ "/libs");
zgui_c_cpp.addIncludePath(thisDir() ++ "/libs/imgui");
zgui_c_cpp.addIncludePath(.{ .path = thisDir() ++ "/libs" });
zgui_c_cpp.addIncludePath(.{ .path = thisDir() ++ "/libs/imgui" });

if (!emscripten) {
zgui_c_cpp.linkLibC();
Expand Down Expand Up @@ -119,11 +119,13 @@ pub fn package(
const emscripten_include = b.pathJoin(&.{ emsdk_path, "upstream", "emscripten", "cache", "sysroot", "include" });
zgui_c_cpp.addSystemIncludePath(emscripten_include);
} else {
zgui_c_cpp.addIncludePath(thisDir() ++ "/../zglfw/libs/glfw/include");
zgui_c_cpp.addIncludePath(thisDir() ++ "/../zgpu/libs/dawn/include");
zgui_c_cpp.addIncludePath(.{ .path = thisDir() ++ "/../zglfw/libs/glfw/include" });
zgui_c_cpp.addIncludePath(.{ .path = thisDir() ++ "/../zgpu/libs/dawn/include" });
}
zgui_c_cpp.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_glfw.cpp", cflags);
zgui_c_cpp.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_wgpu.cpp", cflags);
zgui_c_cpp.addCSourceFiles(&.{
thisDir() ++ "/libs/imgui/backends/imgui_impl_glfw.cpp",
thisDir() ++ "/libs/imgui/backends/imgui_impl_wgpu.cpp",
}, cflags);
},
.win32_dx12 => {
zgui_c_cpp.addCSourceFiles(&.{
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/zig-gamedev/zig-gamedev/pull/309/commits/d5a0cd2860fce2658e4dd8632e80a0874e7b5f7d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy