Update readme for tests.

This commit is contained in:
David Reid
2025-08-22 12:33:01 +10:00
parent 733a3e3ec0
commit e094807b46
+13 -1
View File
@@ -22,4 +22,16 @@ like this:
emrun ./bin/emscripten.html
If you want to see stdout on the command line when running from emrun, add `--emrun` to your emcc command.
If you want to see stdout on the command line when running from emrun, add `--emrun` to your emcc command.
To use with CMake, you can do something like this:
emcmake cmake -S ../../ -B cmake-emcc -DCMAKE_BUILD_TYPE=Debug -DMINIAUDIO_NO_LIBVORBIS=Yes -DMINIAUDIO_NO_LIBOPUS=Yes -DMINIAUDIO_BUILD_TESTS=Yes -DMINIAUDIO_BUILD_EXAMPLES=No
Then to compile with CMake:
cmake --build cmake-emcc -j
To do a clean rebuild:
cmake --build cmake-emcc -j --clean-first