floooh / cimgui-sokol-starterkit

A minimal self-contained Dear ImGui starter project for Windows, Linux and macOS.
MIT License
213 stars 19 forks source link

WASM Build on windows #13

Closed phcreery closed 10 months ago

phcreery commented 10 months ago

https://github.com/floooh/cimgui-sokol-starterkit#build-and-run-wasmhtml-version-via-emscripten-linux-macos Regarding the uncertainty of the Windows build, I want to confirm it does work on Windows.

PS C:\Users\phcre\Documents\c\cimgui-sokol-starterkit\build> emcc --version
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.44 (bec42dac7873903d09d713963e34020c22a8bd2d)

PS C:\Users\phcre\Documents\c\cimgui-sokol-starterkit\build> emcmake cmake -DCMAKE_BUILD_TYPE=MinSizeRel ..
configure: cmake -DCMAKE_BUILD_TYPE=MinSizeRel .. -DCMAKE_TOOLCHAIN_FILE=C:\Users\phcre\Documents\c\emsdk\upstream\emscripten\cmake\Modules\Platform\Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=C:/Users/phcre/Documents/c/emsdk/node/16.20.0_64bit/bin/node.exe -G Ninja
-- Configuring done (1.7s)
-- Generating done (0.0s)
-- Build files have been written to: C:/Users/phcre/Documents/c/cimgui-sokol-starterkit/build
PS C:\Users\phcre\Documents\c\cimgui-sokol-starterkit\build> cmake --build .
[11/11] Linking C executable demo.html
cache:INFO: generating system asset: symbol_lists/a460b8c467a6274ccfd29a4196fa5b9e3f688a91.json... (this will be cached in "C:\Users\phcre\Documents\c\emsdk\upstream\emscripten\cache\symbol_lists\a460b8c467a6274ccfd29a4196fa5b9e3f688a91.json" for subsequent builds)
cache:INFO:  - ok
floooh commented 10 months ago

Thanks! I should have tested this myself in the meantime. I'll just remove that part from the readme.