You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
imgui_impl_glfw.cpp + imgui_impl_wgpu.cpp ( with examples/libs/emscripten/shell_minimal.html modifications )
Compiler, OS:
Linux + Emscripten
Full config/build information:
No response
Details:
Suggestion for builds with Emscripten to use Makefile linker flag: LDFLAGS += -sSINGLE_FILE which will result in single html file output (EXE = $(WEB_DIR)/index.html).
Goals of single output file:
no need for http server, file could be opened directly by Web browser;
no Web browser security restrictions for hardware use requests (serial port in my condition and should be the same for gamepad / usb / audio / camera / etc );
easy to redistribute.
Negative aspect:
output file is bigger then sum of all files of split build because of included binary files got converted to BASE64 format.
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
No response
The text was updated successfully, but these errors were encountered:
ocornut
changed the title
[Feature request] Emscripten builds to single file, no need for http server, no browser security restrictions.
Emscripten builds to single file, no need for http server, no browser security restrictions
Nov 15, 2024
Version/Branch of Dear ImGui:
Version: any , Branch: any
Back-ends:
Compiler, OS:
Linux + Emscripten
Full config/build information:
No response
Details:
Suggestion for builds with Emscripten to use Makefile linker flag:
LDFLAGS += -sSINGLE_FILE
which will result in single html file output (EXE = $(WEB_DIR)/index.html
).Goals of single output file:
Negative aspect:
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
No response
The text was updated successfully, but these errors were encountered: