mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Updated Working for Web (HTML5) (markdown)
@ -57,6 +57,8 @@ After the path configuration, just execute the following command:
|
||||
|
||||
`make PLATFORM=PLATFORM_WEB -B`
|
||||
|
||||
_If you get "emcc: command not found" or a similar error when running `make` but the paths are correct, add `-e` to the end of the make command._
|
||||
|
||||
Generated `libraylib.a` is placed in `raylib\src\libraylib.a` directory.
|
||||
|
||||
#### Using CMake
|
||||
@ -135,6 +137,8 @@ Once `Makefile` has been reviewed, to compile raylib source code, just execute t
|
||||
|
||||
make PLATFORM=PLATFORM_WEB -B
|
||||
|
||||
_If you get "emcc: command not found" or a similar error when running `make` but the paths are correct, add `-e` to the end of the make command._
|
||||
|
||||
_Note that required resources should be embedded into a `.data` file using the compiler parameter `--preload-file filename.ext` or `--preload-file folder` (already configured in the `Makefile` to use `resources` directory)._
|
||||
|
||||
Compilation will generate several output files:
|
||||
|
||||
Reference in New Issue
Block a user