porting web to emcmake

This commit is contained in:
Vladislav Khorev committed 2026-01-09 23:19:39 +03:00
1 parent d1cab1f3b3
commit 8089bcc0f3
5 files changed
+177 -1

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
# how to build
Activate the environment:
```
C:\Work\Projects\emsdk\emsdk.bat activate latest
C:\Work\Projects\emsdk\emsdk_env.bat
```
Optionally clear cache:
```
emcc --clear-cache
embuilder build sdl2 sdl2_ttf sdl2_image sdl2_image_jpg sdl2_image_png
```
Build:
```
mkdir build
cd build
emcmake cmake -G Ninja -DCMAKE_MAKE_PROGRAM="../thirdparty/ninja.exe" ..
cmake --build .
```
Optionally install:
```
cmake --install .
```
Run:
```
emrun --no_browser --port 8080 public
```