ocornut / imgui

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
MIT License
61.15k stars 10.3k forks source link

Emscripten builds to single file, no need for http server, no browser security restrictions #8153

Open Pe3ucTop opened 6 hours ago

Pe3ucTop commented 6 hours ago

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

ocornut commented 6 hours ago

You are free to build your app however you like. I don’t think there is value in us providing example apps that use this build method.