mirror of https://github.com/libsdl-org/SDL.git
Tweaked emscripten introduction
This commit is contained in:
parent
74536243dd
commit
c806c271c5
|
|
@ -34,13 +34,14 @@ add_executable(hello WIN32 hello.c)
|
|||
target_link_libraries(hello PRIVATE SDL3::SDL3)
|
||||
```
|
||||
|
||||
Build:
|
||||
```sh
|
||||
emcmake cmake -S . -B build
|
||||
cd build
|
||||
emmake make
|
||||
```
|
||||
|
||||
You can now run your app by pointing a webserver at your build directory and connecting a web browser to it, opening hello.html.
|
||||
You can now run your app by pointing a webserver at your build directory and connecting a web browser to it, opening hello.html
|
||||
|
||||
A more complete example is available at:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue