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)
|
target_link_libraries(hello PRIVATE SDL3::SDL3)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Build:
|
||||||
```sh
|
```sh
|
||||||
emcmake cmake -S . -B build
|
emcmake cmake -S . -B build
|
||||||
cd build
|
cd build
|
||||||
emmake make
|
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:
|
A more complete example is available at:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue